- Timestamp:
- Jul 19, 2018 12:41:44 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- f64b154, 012cd34, 63602b1, 1a8b91c
- Parents:
- 58a34f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
example/slurm_batch.py
r58a34f1 r1d9998c 6 6 file, with the data file specified as a command line argument, run the 7 7 bumps fit as a batch over a set of different datafiles independently. 8 An example model is given in example/model_ellipsoid_hayter_msa.py,9 which fits the data in example/09319*.dat.10 11 To run the fit, use: 8 An example model is given in model_ellipsoid_hayter_msa.py, which fits 9 the data in 09319*.dat. 10 11 To run the fit, use:: 12 12 13 13 slurm_batch.py [--slurm_opts] model.py *.dat --store=T1 [--bumps_opt ...] 14 15 For example:: 16 17 slurm_batch.py model_ellipsoid_hayter_msa.py 09319*.dat --store=T1 14 18 15 19 This creates the T1 subdirectory to hold the fit results and … … 20 24 in T1/##/*. The file T1/files.dat contains the list 21 25 of "subdirectory filename" pairs indicating which ## directory 22 contains the resuls for which file. Check for errors using 26 contains the resuls for which file. Check for errors using:: 23 27 24 28 cat T1/slurm*_1.out 25 29 26 Bumps options are described at bumps.readthedocs.org, with 27 running time (--time=T) defaulting to 2 hours maximum. The 28 following slurm options are used:: 30 The following slurm options are used:: 29 31 30 32 --array=1-#files batch size comes from the file list … … 33 35 --output=... log into T1/slurm-job_##.out 34 36 --chdir=... run fit from store directory 37 --time=2 time as number of hours (can override) 35 38 36 39 To receive an email on job completion or failure, add the following … … 38 41 39 42 --mail-type=END,FAIL --mail-user=user@mail.domain 43 44 Bumps options are described at bumps.readthedocs.org, with the 45 following set automatically:: 46 47 --batch run in batch mode, without output to .mon 48 --view=log SAS fits want log plots 49 --time=2-0.1 slurm time minus 6 minutes for cleanup 50 51 The --store and --resume options indicate the parent directory for 52 the output. These are modified to store the results in a separate 53 subdirectory for each file. Keep in mind that the fit is run from 54 the store directory, so any files or modules referenced from the 55 model file will need to use a full path to the original location. 40 56 41 57 After submitting the job a job id will be printed to the console.
Note: See TracChangeset
for help on using the changeset viewer.