Skip to content

Commit c83b74e

Browse files
leoberhelmanatteggiani
authored andcommitted
Update perturbIC.py
Update perturbIC.py
1 parent 70d772f commit c83b74e

6 files changed

+6
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
**/__pycache__/
2+
**/*.pyc
23
.hypothesis/
34
.*_cache/
45
.vscode/
@@ -8,4 +9,4 @@
89
*~
910
*.egg-info
1011
coverage_html
11-
*.code-workspace
12+
*.code-workspace
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/umfile_utils/perturbIC.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ def main():
199199
# Create the random generator.
200200
random_generator = create_random_generator(args.seed)
201201

202-
# Skip mule validation if the "--validate" option is provided
203-
if not args.validate:
204-
ff.validate = void_validation
205202
ff_raw = mule.DumpFile.from_file(args.ifile)
206203

207-
208204
# Remove the time series from the data to ensure mule will work
209205
ff = remove_timeseries(ff_raw)
210206

207+
# Skip mule validation if the "--validate" option is provided
208+
if not args.validate:
209+
ff.validate = void_validation()
210+
211211
# loop through the fields
212212
for ifield, field in enumerate(ff.fields):
213213
if is_field_to_perturb(field, STASH_THETA):

src/umfile_utils~e4371c9 (Create umfile_utils)

-1
This file was deleted.

0 commit comments

Comments
 (0)