Skip to content

Commit

Permalink
fixes for usg support
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwhite79 committed Jun 13, 2024
1 parent c26424f commit 56e8cb0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autotest/pst_from_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3837,7 +3837,7 @@ def usg_freyberg_test(tmp_path):
zone_array_k2 = np.ones((1, len(sr_dict_by_layer[3])))
zone_array_k2[:, 200:420] = 2
zone_array_k2[:, 500:1000:3] = 3
zone_array_k2[:,:100] = 0
zone_array_k2[:,:100] = 4

#gen up some fake pp locs
np.random.seed(pyemu.en.SEED)
Expand Down
13 changes: 12 additions & 1 deletion pyemu/utils/pst_from.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,21 @@ def draw(self, num_reals=100, sigma_range=6, use_specsim=False, scale_offset=Tru
return
# precondition {geostruct:{group:df}} dict to {geostruct:[par_dfs]}
struct_dict = self._pivot_par_struct_dict()
delr = None
delc = None
try:
delr = self.spatial_reference.delr
except Exception as e:
pass
try:
delc = self.spatial_reference.delc
except Exception as e:
pass

# method moved to helpers
pe = pyemu.helpers.draw_by_group(self.pst, num_reals=num_reals, sigma_range=sigma_range,
use_specsim=use_specsim, scale_offset=scale_offset, struct_dict=struct_dict,
delr=self.spatial_reference.delr, delc=self.spatial_reference.delc,
delr=delr, delc=delc,
logger=self.logger)
return pe

Expand Down

0 comments on commit 56e8cb0

Please sign in to comment.