Skip to content

Commit 0827646

Browse files
kjeirolfjl
authored andcommitted
Remove flipping of dimensions for data to be compressed
Input files might need to be changed (change dim or order in the compress keyword)
1 parent 8304340 commit 0827646

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pipt/misc_tools/extract_tools.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def organize_sparse_representation(info: Union[dict,list]) -> dict:
241241
info : dict or list
242242
Input configuration for sparse representation. If a list, it will be converted
243243
to a dictionary. Expected keys include:
244-
- 'dim': list of 3 ints, the dimensions of the data grid.
244+
- 'dim': list of ints, the dimensions of the data to be compressed
245245
- 'mask': list of filenames for mask arrays.
246246
- 'level', 'wname', 'threshold_rule', 'th_mult', 'order', 'min_noise',
247247
'colored_noise', 'use_hard_th', 'keep_ca', 'inactive_value', 'use_ensemble'.
@@ -266,9 +266,7 @@ def organize_sparse_representation(info: Union[dict,list]) -> dict:
266266
# Intial dict
267267
sparse = {}
268268

269-
# Flip dim to align with flow/eclipse
270-
dim = [int(x) for x in info['dim']]
271-
sparse['dim'] = [dim[2], dim[1], dim[0]]
269+
sparse['dim'] = [int(x) for x in info['dim']]
272270

273271
# Read mask_files
274272
sparse['mask'] = []

0 commit comments

Comments
 (0)