Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 4.24 KB

File metadata and controls

69 lines (46 loc) · 4.24 KB

Design Survey Workflow

Using the aplc_optimization toolkit, the workflow for producing a design survey proceeds as follows:

1. Create a new launcher script

Within aplc_optimization, Launcher scripts are the format by which coronagraph design surveys are defined and executed. Template launcher scripts are provided for HiCAT-, LUVOIR- and GPI-like instruments (named :mod:`do_hicat_template.py`, :mod:`do_luvour_template.py` and :mod:`do_gpi_template.py``, respectively).

In order to initiate a new survey, make a copy of the appropriate launcher template and re-name the file with the following naming convention:

  • do_<instrument>_<survey>_<machine>.py

where <instrument> is the name of the APLC instrument for which you are are performing the survey; '<survey>' is a name descriptive of the survey that you intend to run; and '<machine>' is the name of the machine on which the survey will be run on. For example, a launcher file named ':mod:`do_luvoir_BW10_small_telserv3.py`' designates the BW10 small design run on telserv3 for a LUVOIR-like instrument.

2. Define a set of design parameters to survey

Inside the launcher script define a set of design parameters to survey. Any unspecified parameters are set to reasonable default values.

3. Run the launcher script

Run the launcher script using the following command in terminal:

(aplc_optimization) $ python do_<instrument>_<survey>_<machine>.py

If all goes well, this should provide you with the following output:

This survey has # design parameter combinations.
# parameter are varied:

File organization:
{'analysis_dir': '../aplc_optimization/surveys/<instrument>_<survey>_<machine>/analysis',
 'drivers_dir': '../aplc_optimization/surveys/<instrument>_<survey>_<machine>/drivers',
 'input_files_dir': '../aplc_optimization/masks',
 'log_dir': '../aplc_optimization/surveys/<instrument>_<survey>_<machine>/logs',
 'solution_dir': '../aplc_optimization/surveys/<instrument>_<survey>_<machine>',
 'survey_dir': '../aplc_optimization/surveys/<instrument>_<survey>_<machine>'}


All input files exist? False
All drivers exist? False
All solutions exist? False

4. Inspect the products

5. Run the Analysis notebook

In addition to the analysis :mod:`.pdf` file created automatically created for each design survey, the toolkit also provides a Python notebook interface with which more in-depth analyses can be performed for each apodizer solution.