Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccreight committed Sep 26, 2024
1 parent 223994d commit 767d498
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions pywatershed/utils/mmr_to_mf6_dfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,6 @@ def _set_disv1d(self):
if "idomain" not in self._disv1d_options.keys():
self._disv1d_options["idomain"] = 1

# if "length" not in self._disv1d_options.keys():
# # meters
# # unit-ed quantities
# segment_units = self._units(meta.parameters["seg_length"]["units"])
# self._segment_length = parameters["seg_length"]
# self._segment_length = self._segment_length * segment_units
# self._disv1d_options[
# "length"
# ] = self._segment_length.to_base_units().magnitude

if "width" not in self._disv1d_options.keys():
# meters, per metadata
self._disv1d_options["width"] = parameters["seg_width"]
Expand Down Expand Up @@ -674,14 +664,12 @@ def read_inflow(vv, start_time, end_time):

if len(time_prms) > 0 and len(time_prms) != len(time_mf6):
for iseg in range(lat_inflow_prms.shape[1]):
lat_inflow[
:, iseg
] = mpsplines.MeanPreservingInterpolation(
yi=lat_inflow_prms[:, iseg].magnitude,
xi=time_prms,
periodic=False,
)(
time_mf6
lat_inflow[:, iseg] = (
mpsplines.MeanPreservingInterpolation(
yi=lat_inflow_prms[:, iseg].magnitude,
xi=time_prms,
periodic=False,
)(time_mf6)
)
else:
lat_inflow = lat_inflow_prms.magnitude
Expand Down

0 comments on commit 767d498

Please sign in to comment.