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

MAINT: update pysat compatibility #67

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ markers = [
"download",
"no_download",
"load_options",
"new_tests",
"first",
"second"
]
6 changes: 2 additions & 4 deletions pysatCDAAC/instruments/cosmic_gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@

_test_dates = {'': {tag: dt.datetime(2014, 5, 1) for tag in inst_ids['']}}

# TODO(#51): Remove when compliant with multi-day load tests
# TODO(#66): Remove when compliant with multi-day load tests
_new_tests = {'': {tag: False for tag in inst_ids['']}}

# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -277,9 +277,7 @@ def list_files(tag=None, inst_id=None, data_path=None, format_str=None):
stored = futils.parse_fixed_width_filenames(files, format_str)

# Process info
# Check on length for backward compat with pysat 3.1.0
# TODO(#51): Can be removed after 3.2.0 release and minimum version is set.
if stored['year'] is not None and len(stored['year']) > 0:
if stored['year'] is not None:
year = np.array(stored['year'])
day = np.array(stored['day'])
hour = np.array(stored['hour'])
Expand Down
Loading