Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jan 22, 2025
1 parent 228a00f commit 6fe02cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ docs = [
"sphinx-intl",
"sphinx-mdinclude",
"sphinx-rtd-theme >=1.0",
"sphinxcontrib-napoleon",
"sphinxcontrib-napoleon"
]
extra = [
"xesmf>=0.7, <0.8.8" # FIXME: 0.8.8 currently creates segfaults on ReadTheDocs.
Expand Down
5 changes: 4 additions & 1 deletion src/xscen/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ def __init__(
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].infer_objects(copy=False).to_numpy().astype("datetime64[ms]")
self.df[datecol]
.infer_objects(copy=False)
.to_numpy()
.astype("datetime64[ms]")
)

if check_valid:
Expand Down

0 comments on commit 6fe02cc

Please sign in to comment.