NSF-Swift / satellite-overhead

An open-source tool for calculating satellite interference to radio astronomy observations.
https://pypi.org/project/sopp/
GNU Affero General Public License v3.0
0 stars 2 forks source link

read_datetime_string_as_utc() fails if microseconds are not included #98

Closed 0xeb-bp closed 10 months ago

0xeb-bp commented 11 months ago

If a datetime string like 2023-11-15T08:00:00 is provided read_datetime_string_as_utc() fails because the time format string is currently TIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%f'.

Modify read_datetime_string_as_utc() so that it can also handle datetime strings without microseconds.