Skip to content

Commit

Permalink
Moved test directory and fixed path issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
djgagne committed Feb 10, 2024
1 parent d5ac217 commit 56ce5bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hagelslag
channels:
- conda-forge
dependencies:
- python<=3.10
- python<=3.11
- numpy
- scipy
- s3fs
Expand All @@ -22,12 +22,12 @@ dependencies:
- arrow
- cython
- sphinx
- mock
- dask
- numba
- jasper
- flake8
- zarr
- pyarrow
- pip:
- sphinx-book-theme
- .
9 changes: 2 additions & 7 deletions hagelslag/test/test_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@

class TestTracking(unittest.TestCase):
def setUp(self):
current_dir_files = os.listdir("/")
if "testdata" not in current_dir_files:
start_path = "../../"
else:
start_path = "/"
self.model_path = start_path + "testdata/spring2015_unidata/"
self.model_path = "testdata/spring2015_unidata/"
self.ensemble_name = "SSEF"
self.member ="wrf-s3cn_arw"
self.run_date = datetime(2015, 6, 4)
Expand All @@ -23,7 +18,7 @@ def setUp(self):
self.end_hour = 24
self.start_date = self.run_date + timedelta(hours=self.start_hour)
self.end_date = self.run_date + timedelta(hours=self.end_hour)
self.map_file = start_path + "mapfiles/ssef2015.map"
self.map_file = "mapfiles/ssef2015.map"
self.model_grid = ModelOutput(self.ensemble_name,
self.member,
self.run_date,
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ dependencies = [
"pygrib",
"pyproj",
"pyarrow",
"pyshp"
"pyshp",
"sphinx",
"sphinx-book-theme"
]
classifiers = ["Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
Expand Down

0 comments on commit 56ce5bf

Please sign in to comment.