Skip to content

Commit

Permalink
adjust tests to point to moved demo file locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Ranalli committed Aug 19, 2024
1 parent b50c51c commit b7602b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,7 @@ site itself.
# Version 0.4.3 & 0.4.4
- Fixes to GitHub deployment issues, no functional changes
# Version 0.4.5
-
- Improvements to documentation
- Simplification of github actions
- Added matplotlib dependency
- Move demos back to the parent directory using nblink
6 changes: 3 additions & 3 deletions tests/test_cmv.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_cmv_artificial(theta_deg, velocity, mode):


def test_cmv_gagne_data():
datafile = "../docs/sphinx/source/demos/data/sample_plant_1.h5"
datafile = "../demos/data/sample_plant_1.h5"
pos_utm = pd.read_hdf(datafile, mode="r", key="utm")
df = pd.read_hdf(datafile, mode="r", key="data_a")

Expand All @@ -115,7 +115,7 @@ def test_cmv_gagne_data():


def test_cmv_jamaly_data():
datafile = "../docs/sphinx/source/demos/data/sample_plant_1.h5"
datafile = "../demos/data/sample_plant_1.h5"
pos_utm = pd.read_hdf(datafile, mode="r", key="utm")
df = pd.read_hdf(datafile, mode="r", key="data_a")

Expand All @@ -133,7 +133,7 @@ def test_cmv_jamaly_data():
def test_cmv_jamaly_data_ref():
# A test using a reference when we calculate the CMV

datafile = "../docs/sphinx/source/demos/data/sample_plant_1.h5"
datafile = "../demos/data/sample_plant_1.h5"
pos_utm = pd.read_hdf(datafile, mode="r", key="utm")
df = pd.read_hdf(datafile, mode="r", key="data_a")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_compute_predicted_position_static(refdat):
ref = refdat[2][0]
expect = refdat[2][1]

datafile = "../docs/sphinx/source/demos/data/sample_plant_2.h5"
datafile = "../demos/data/sample_plant_2.h5"
cmv_a = spatial.pol2rect(9.52, 0.62)
cmv_b = spatial.pol2rect(8.47, 2.17)

Expand Down

0 comments on commit b7602b5

Please sign in to comment.