Skip to content

Commit

Permalink
DOC: added comments
Browse files Browse the repository at this point in the history
Added inline and block comments to show filtering motivation.
  • Loading branch information
aburrell authored Sep 5, 2024
1 parent bd5980e commit f3f1e35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pysatMadrigal/instruments/madrigal_dst.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
madrigal_tag = {'': {'': "30006"}}
madrigal_start = dt.datetime(1957, 1, 1)
madrigal_end = pysat.utils.time.filter_datetime_input(
dt.datetime.now(tz=dt.timezone.utc))
dt.datetime.now(tz=dt.timezone.utc)) # Filters out timezone

# Local attributes
#
Expand Down
2 changes: 1 addition & 1 deletion pysatMadrigal/instruments/madrigal_geoind.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
madrigal_tag = {'': {'': "30007"}}
madrigal_start = dt.datetime(1950, 1, 1)
madrigal_end = pysat.utils.time.filter_datetime_input(
dt.datetime.now(tz=dt.timezone.utc))
dt.datetime.now(tz=dt.timezone.utc)) # Filters out timezone

# Local attributes
#
Expand Down
2 changes: 2 additions & 0 deletions pysatMadrigal/instruments/methods/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,8 @@ def get_remote_filenames(inst_code=None, kindat='', user=None, password=None,

if stop is None:
stop = dt.datetime.now(tz=dt.timezone.utc)

# Ensure the end time does not have timezone information
stop = pysat.utils.time.filter_datetime_input(stop)

# If start and stop are identical, increment
Expand Down

0 comments on commit f3f1e35

Please sign in to comment.