Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ensemble/ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,16 +376,16 @@ def _ext_prior_info(self):
if isinstance(limits[0], list) and len(limits) < nz or \
not isinstance(limits[0], list) and len(limits) < 2 * nz:
# Check if it is more than one entry and give error
assert (isinstance(limits[0], list) and len(limits) == 1), \
'Information from LIMITS has been given for {0} layers, whereas {1} is needed!' \
.format(len(limits), nz)
#assert (isinstance(limits[0], list) and len(limits) == 1), \
# 'Information from LIMITS has been given for {0} layers, whereas {1} is needed!' \
# .format(len(limits), nz)
assert (not isinstance(limits[0], list) and len(limits) == 2), \
'Information from LIMITS has been given for {0} layers, whereas {1} is needed!' \
.format(len(limits) / 2, nz)

# Only 1 entry; copy this to all layers
print(
'\033[1;33mSingle entry for RANGE will be copied to all {0} layers\033[1;m'.format(nz))
'\033[1;33mSingle entry for LIMITS will be copied to all {0} layers\033[1;m'.format(nz))
self.prior_info[name]['limits'] = [limits] * nz

else: # 2D grid only, or optimization case
Expand Down
Loading