Skip to content

Commit

Permalink
fixed gen data
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoelles committed Sep 21, 2023
1 parent b571a14 commit cef0488
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def _save_image_ndarray(prefix=""):
"""Test saving an ENVI formated image from a numpy.ndarray."""
wavelengths = pd.read_csv(thisdir / "wavelengths.csv")
wavelengths = pd.read_csv(testdatadir / "wavelengths.csv")
wavelengths = list(wavelengths["wavelengths (nm)"].values)
if prefix == "":
data = xr.open_dataset(testdatadir / "capture.nc")["capture"]
Expand All @@ -40,10 +40,9 @@ def gen_data():
# rename all files from .img to .raw
for f in testdatadir1.glob("*.img"):
f.rename(f.with_suffix(".raw"))
shutil.copy(testdatadir1, thisdir / "specim_data_no_darkref")


gen_data
gen_data()


@pytest.fixture()
Expand Down

0 comments on commit cef0488

Please sign in to comment.