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 Jan 22, 2025
1 parent 3472502 commit 9958076
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/xscen/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,7 @@ def __init__(
for datecol in ["date_start", "date_end"]:
if datecol in self.df.columns and self.df[datecol].dtype == "O":
# Missing values in object columns are np.nan, which numpy can't convert to datetime64 (what's up with that numpy???)
self.df[datecol] = (
self.df[datecol]
.dropna()
.astype("datetime64[ms]")
)
self.df[datecol] = self.df[datecol].dropna().astype("datetime64[ms]")

if check_valid:
self.check_valid()
Expand Down

0 comments on commit 9958076

Please sign in to comment.