Skip to content

Commit

Permalink
BUG: removed '8105' tag
Browse files Browse the repository at this point in the history
Removed the Van Allen probe data because the file handling requires additional support.
  • Loading branch information
aburrell committed Aug 2, 2022
1 parent e7f5272 commit 9ce2721
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pysatMadrigal/instruments/madrigal_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@
name = 'pandas'
tags = dict()
pandas_format = True
excluded_tags = ['8105'] # Pandas-style data that requires special support

# Assign only tags with pysat-compatible file format strings
pandas_codes = general.known_madrigal_inst_codes(pandas_format=True)
for tag in pandas_codes.keys():
try:
general.madrigal_file_format_str(tag, strict=True)
tags[tag] = pandas_codes[tag]
if tag not in excluded_tags:
tags[tag] = pandas_codes[tag]
except ValueError:
pass

Expand All @@ -102,7 +104,7 @@
tag_dates = {'120': dt.datetime(1963, 11, 27), '170': dt.datetime(1998, 7, 1),
'180': dt.datetime(2000, 1, 1), '210': dt.datetime(1950, 1, 1),
'211': dt.datetime(1978, 1, 1), '212': dt.datetime(1957, 1, 1),
'7800': dt.datetime(2009, 11, 10), '8105': dt.datetime(2017, 9, 1)}
'7800': dt.datetime(2009, 11, 10)}
_test_dates = {'': {tag: tag_dates[tag] if tag in tag_dates.keys()
else tag_dates['7800'] for tag in tags.keys()}}
_test_download = {'': {tag: True for tag in tags.keys()}}
Expand Down

0 comments on commit 9ce2721

Please sign in to comment.