-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file_min_digits: 5->6 #2385
file_min_digits: 5->6 #2385
Conversation
Found a couple of scripts that need updates:
|
The replacement for
Simple regex that is matching trailing digits if we introduce |
To fix the tests
|
I for now just overwrote the 4 checkpoint-restart tests we have to use 5 digits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
3bc0ae5
to
4146970
Compare
4146970
to
8848601
Compare
6fd31af
to
f33647f
Compare
100k+ step runs are quite common in WarpX. To simplify post-processing scripts, increase the default to pad to 6 digits. This might break some hand-written scripts that use `?????` wild-cards over `*` wildcards in regex and thus need to be updated. But it at the same time simplifies regexes for analysis of data series and listing of such file series.
for more information, see https://pre-commit.ci
`regtest.py` in `regression_testing` hard-codes 5 digits: ```diff --- a/regtest.py +++ b/regtest.py @@ -734,7 +734,7 @@ def test_suite(argv): shutil.move(test.diffDir, orig_diff_dir) # get the file number to restart from - restart_file = "%s_chk%5.5d" % (test.name, test.restartFileNum) + restart_file = "%s_chk%6.6d" % (test.name, test.restartFileNum) ```
8479f0e
to
abe3c45
Compare
Same as other CI restart tests: hard-coded value in regression suite makes this necessary. X-ref: AMReX-Codes/regression_testing#119
abe3c45
to
8b35a0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, looks great to me!
100k+ step runs are quite common in WarpX. To simplify post-processing scripts, increase the default to pad to 6 digits.
This might break some hand-written scripts that use
?????
wild-cards over*
wildcards in regex and thus need to be updated. But it at the same time simplifies regexes for analysis of data series and listing of such file series.Notes:
<diag_name><step>
with<diag_name>_<step>
. Reason: no regex can differentiatediag10004
from step4
or10'004
? -> another time, too much to change yet again