ebysus_infer_snapname_here
- PlasmaCalcs.hookups.ebysus.ebysus_io_tools.ebysus_infer_snapname_here(dir='.', *, exclude=['mhd_init_[0-9*]{4}_[0-9*]{6}.idl'])
infer Ebysus snapname based on files in directory, if possible.
For files like snapname_NNN.idl, if all have same snapname, return it.If no such files, raise FileNotFoundError; if multiple implied snapnames, raise FileAmbiguityError.NNN can be any integer, doesn’t need to be 3 digits.exclude: str or list of stringsregular expressions; exclude filenames matching any such expressions.(by default, excludes files matching mhd_init_NNNN_NNNNNN.idl,since that just tells params at startup / upon resuming run.)