Skip to content

Commit

Permalink
Merge branch 'develop' into guvi_imaging_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing authored Mar 5, 2024
2 parents eaaef3b + 0b7d9b9 commit 236cb98
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
* Fixed a bug when data fails to load for CDF pandas objects
* Allow graceful failure with no files in jhuapl load functions
* New window needs to be integer for calculate_imf_steadiness
* Fixed a bug where cdas_download may drop the requested end date file
* Documentation
* Added example of how to export data for archival
* Updated documentation refs
Expand All @@ -32,6 +33,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
* Added tests for OMNI HRO routines
* Use standard clean routine for C/NOFS VEFI mag data
* Added version cap for sphinx_rtd_theme
* Include standard tests for ICON IVM-B

## [0.0.5] - 2023-06-27
* New Instruments
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Source = "https://github.com/pysat/pysatNASA"
omit = ["*/instruments/templates/"]

[tool.pytest.ini_options]
addopts = "-vs --cov=pysatNASA"
addopts = "--cov=pysatNASA"
markers = [
"all_inst",
"download",
Expand Down
2 changes: 2 additions & 0 deletions pysatNASA/instruments/cnofs_plp.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
# Instrument test attributes

_test_dates = {'': {'': dt.datetime(2009, 1, 1)}}
# TODO(#222): Remove when compliant with multi-day load tests
_new_tests = {'': {'': False}}

# ----------------------------------------------------------------------------
# Instrument methods
Expand Down
2 changes: 2 additions & 0 deletions pysatNASA/instruments/icon_euv.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
# Instrument test attributes

_test_dates = {'': {'': dt.datetime(2020, 1, 1)}}
# TODO(#218, #222): Remove when compliant with multi-day load tests
_new_tests = {'': {'': False}}
_test_load_opt = {'': {'': {'keep_original_names': True}}}

# ----------------------------------------------------------------------------
Expand Down
4 changes: 1 addition & 3 deletions pysatNASA/instruments/icon_ivm.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@
# Instrument test attributes

_test_dates = {'a': {'': dt.datetime(2020, 1, 1)},
'b': {'': dt.datetime(2020, 1, 1)}} # IVM-B not yet engaged
_test_download = {'b': {kk: False for kk in tags.keys()}}
_password_req = {'b': {kk: True for kk in tags.keys()}}
'b': {'': dt.datetime(2021, 6, 15)}}
_test_load_opt = {jj: {'': {'keep_original_names': True}}
for jj in inst_ids.keys()}

Expand Down
2 changes: 2 additions & 0 deletions pysatNASA/instruments/maven_insitu_kp.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
# Instrument test attributes

_test_dates = {'': {'': dt.datetime(2020, 1, 1)}}
# TODO(#218, #222): Remove when compliant with multi-day load tests
_new_tests = {'': {'': False}}

# ----------------------------------------------------------------------------
# Instrument methods
Expand Down
9 changes: 6 additions & 3 deletions pysatNASA/instruments/methods/cdaweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,12 @@ def cdas_list_remote_files(tag='', inst_id='', start=None, stop=None,
elif start == stop:
stop = start + dt.timedelta(days=1)

if isinstance(start, pds._libs.tslibs.timestamps.Timestamp):
start = start.tz_localize('utc')
stop = stop.tz_localize('utc')
# Ensure that valid date types are used.
start = pysat.utils.time.filter_datetime_input(start)
stop = pysat.utils.time.filter_datetime_input(stop)

# cdasws needs a time for the stop date.
stop += dt.timedelta(seconds=86399)

og_files = cdas.get_original_files(dataset=dataset, start=start, end=stop)

Expand Down
7 changes: 5 additions & 2 deletions pysatNASA/instruments/timed_guvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@
13) for tag in inst_ids[iid]}
for iid in inst_ids.keys()}
_test_load_opt = {iid: {tag: {'combine_times': True}
for tag in inst_ids[iid]} for iid in ['high_res',
'low_res']}
for tag in inst_ids[iid]}
for iid in ['high_res', 'low_res']}
# TODO(#218): Remove when compliant with multi-day load tests
_new_tests = {iid: {tag: False for tag in inst_ids[iid]}
for iid in ['high_res', 'low_res']}
_clean_warn = {inst_id: {tag: mm_nasa.clean_warnings
for tag in inst_ids[inst_id] if tag != 'sdr-imaging'}
for inst_id in inst_ids.keys()}
Expand Down

0 comments on commit 236cb98

Please sign in to comment.