Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 28, 2024
1 parent 8128dee commit a282504
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions satip/filenames.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
""" Function to do with filenames """
import pandas as pd


def get_datetime_from_filename(filename: str) -> pd.Timestamp:
"""Extract time from filename
Expand Down
1 change: 0 additions & 1 deletion tests/unit_test/test_filenames.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ def test_get_time_from_filename():

datetime = get_datetime_from_filename("folder/15_hrv_202408261815.zarr.zip")
assert datetime == pd.Timestamp("2024-08-26 18:15", tz="UTC")

0 comments on commit a282504

Please sign in to comment.