Changeset 1d9998c in sasmodels


Ignore:
Timestamp:
Jul 19, 2018 12:41:44 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

update docs for the slurm batch program

File:
1 edited

Legend:

Unmodified
Added
Removed
  • example/slurm_batch.py

    r58a34f1 r1d9998c  
    66file, with the data file specified as a command line argument, run the 
    77bumps 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: 
     8An example model is given in model_ellipsoid_hayter_msa.py, which fits  
     9the data in 09319*.dat. 
     10 
     11To run the fit, use:: 
    1212 
    1313    slurm_batch.py [--slurm_opts] model.py *.dat --store=T1 [--bumps_opt ...] 
     14 
     15For example:: 
     16 
     17    slurm_batch.py model_ellipsoid_hayter_msa.py 09319*.dat --store=T1 
    1418 
    1519This creates the T1 subdirectory to hold the fit results and  
     
    2024in T1/##/*.  The file T1/files.dat contains the list  
    2125of "subdirectory filename" pairs indicating which ## directory  
    22 contains the resuls for which file.  Check for errors using 
     26contains the resuls for which file.  Check for errors using:: 
    2327 
    2428    cat T1/slurm*_1.out 
    2529 
    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:: 
     30The following slurm options are used:: 
    2931 
    3032    --array=1-#files     batch size comes from the file list 
     
    3335    --output=...         log into T1/slurm-job_##.out 
    3436    --chdir=...          run fit from store directory 
     37    --time=2             time as number of hours (can override) 
    3538 
    3639To receive an email on job completion or failure, add the following 
     
    3841 
    3942    --mail-type=END,FAIL --mail-user=user@mail.domain 
     43 
     44Bumps options are described at bumps.readthedocs.org, with the 
     45following 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 
     51The --store and --resume options indicate the parent directory for 
     52the output.  These are modified to store the results in a separate 
     53subdirectory for each file.  Keep in mind that the fit is run from 
     54the store directory, so any files or modules referenced from the 
     55model file will need to use a full path to the original location. 
    4056 
    4157After submitting the job a job id will be printed to the console. 
Note: See TracChangeset for help on using the changeset viewer.