Slurmjobs

Latest version: v1.1.3

Safety actively analyzes 638346 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.2.0

-------

Oops - TODO - fill in. This was changes to adapt to NYU Greene and Singularity containers.

0.1.7

-------
- added JSON metadata that can be stored in the receipt. Currently, adds `duration_secs` and `time`
- added more receipt logging (on successful write, on skip, on error)
- Set `slurmjobs.Receipt.TEST` instead of `slurmjobs.use_receipt.TEST`

0.1.2

-------

- Added a receipt utility to avoid re-running functions `slurmjobs.use_receipt(func)(*a, **kw)`
- Added `Batch().generate(expand_grid=False)` option to avoid expanding parameters and passing explicit grids
- fixed json encoding error in run templates
-

0.1.1

-------

- commands can now access the original values (without command line flag attached) by using the variable name preceded with an underscore. e.g.
- `'{year}' -> '--year 2016'`
- `'{_year}' -> '2016'`
- specifying `cli=False` will disable any formatting and will just pass them sequentially.
- weird things were happening when `shlex.quote`-ing `repr` so changed to `json.dumps`

0.1.0

-------

- expanded support to handle multi-line commands.
- added more tests
- moved `init_script` so it happens after activating conda
- added `source ~/.bashrc` to job
- added `run_init_script` so scripts can run code before you submit the jobs
- removed hard coded `nodes` sbatch arg. It is now changeable (not sure why it was hardcoded..)

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.