Skip to content

Commit

Permalink
fix isna bug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Dec 28, 2023
1 parent 432beeb commit 56088d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pedon/soil.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from typing import Type

from numpy import abs as npabs
from numpy import append, array2string, exp, full, isnan, log
from pandas import DataFrame, read_csv
from numpy import append, array2string, exp, full, log
from pandas import DataFrame, isna, read_csv
from scipy.optimize import least_squares

from ._params import get_params
Expand Down Expand Up @@ -447,7 +447,7 @@ def from_name(
sersm = sersm[sersm["source"] == source]

serd = sersm.squeeze().to_dict()
if isnan(serd["description"]):
if isna(serd["description"]):
serd["description"] = serd["soil type"]
self.__setattr__("source", serd.pop("source"))
self.__setattr__("description", serd.pop("description"))
Expand Down

0 comments on commit 56088d4

Please sign in to comment.