Skip to content

Commit

Permalink
fix(mp7particledata): update dtype comparison for unstructured partlo…
Browse files Browse the repository at this point in the history
…cs (#1071)

change dtypein comparison against dtype variable. dtypein was being compared against itself thus partlocs dtype didn't update

Co-authored-by: rodrperezi <rodrperezi@gmail.com>
  • Loading branch information
rodrperezi and rodrperezi committed Mar 19, 2021
1 parent b6092cb commit 44ebec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flopy/modpath/mp7particledata.py
Expand Up @@ -173,7 +173,7 @@ def __init__(
partlocs = np.array(partlocs, dtype=dtype)
elif isinstance(partlocs, np.ndarray):
dtypein = partlocs.dtype
if dtypein != partlocs.dtype:
if dtypein != dtype:
partlocs = np.array(partlocs, dtype=dtype)
else:
msg = (
Expand Down

0 comments on commit 44ebec2

Please sign in to comment.