Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Update to latest pysat standards #43

Merged
merged 1 commit into from
Feb 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pysatMadrigal/tests/test_instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def setup_class(self):
# Make sure to use a temporary directory so that the user's setup is
# not altered
self.tempdir = tempfile.TemporaryDirectory()
self.saved_path = pysat.data_dir
pysat.utils.set_data_dir(self.tempdir.name, store=False)
self.saved_path = pysat.params['data_dirs']
pysat.params.data['data_dirs'] = [self.tempdir.name]

# Developers for instrument libraries should update the following line
# to point to their own subpackage location, e.g.,
Expand All @@ -66,6 +66,6 @@ def setup_class(self):
def teardown_class(self):
"""Runs after every method to clean up previous testing
"""
pysat.utils.set_data_dir(self.saved_path, store=False)
pysat.params.data['data_dirs'] = self.saved_path
self.tempdir.cleanup()
del self.inst_loc, self.saved_path, self.tempdir