Skip to main content

Helper to run Lyman-α analyses using picca

Project description

picca_bookkeeper is a tool designed to help running analyses using the package picca. It allows for the computation of all the steps necessary for the Lyman-alpha 3D analysis using a unified configuration file, appropriately chaining all the jobs.

Installation

The few needed requirements can be installed by using:

pip install -r requirements.txt

Use:

pip install .

File structure

picca_bookkeeper relies in a particular file structure to work as intended. The parent folder is chosen by the user using the data/bookkeeper dir option in the config file.

Inside this folder, the internal structure is the following:

├── configs # Location of bookkeeper configuration file and defaults files
│   ├── bookkeeper_config.yaml 
│   └── defaults.yaml
├── correlations # Location of the different correlations
│   ├── configs # Configuration used for the correlation (usually empty)
│   ├── logs # Log output from slurm runs
│   ├── results # Correlations
│   └── scripts # Scripts to run the correlations
├── deltas
│   ├── configs
│   ├── logs
│   ├── results
│   └── scripts
└── fits
    ├── configs
    ├── logs
    ├── results
    └── scripts

Configuration file

All the information needed to reproduce each of the run is (and should be) contained in the bookkeeper_config.yaml file. An example of a config file is stored under picca_bookkeeper.resources.example_config.yaml or can be retrieved in console by running picca_bookkeeper_show_example anywhere.

Scripts

There are multiple scripts associated with the package that are installed with the application, the most relevant are:

  • picca_bookkeeper_run_full_analysis: Can be used to run the full analysis. It can skip some of the steps if needed.
  • picca_bookkeeper_run_delta_extraction: Can be used to run deltas.
  • picca_bookkeeper_run_cf and picca_bookkeeper_run_xcf: Can be used to run correlations.
  • picca_bookkeeper_run_fit: Run fit.

For more information on how to run each of them use the --help command. (the scripts can be run directly from shell, e.g. picca_bookkeeper_run_full_analysis --help.).

Examples

¡¡Always check the terminal log to ensure the bookkeeper does what it is expected to do!! The bookkeeper is designed to avoid rerunning something twice, this is done by checking sent jobs to slurm and preliminarily writing job ids in output files. This is very convenient, but the user needs to verify (especially in runs with shared parts) that everything is done as expected.

Run full analysis

picca_bookkeeper_run_full_analysis config.yaml

Run full analysis if some steps where already computed (skipping them)

This will also check sent jobs, if they failed, they will be rerun automatically.

picca_bookkeeper_run_full_analysis config.yaml --skip-sent

Run two different correlations

If one wants to run two different correlation measurements for the same set of deltas, they can use the delta extraction/use existing option for the second set of correlations. The second set of correlations has to be run with the --skip-sent option, and it is not needed to wait for the first set to finish before launching the second one.

Run two different fits

Similarly as in the case of correlations, one can use the same deltas and correlations using the option delta extraction/use existing and correlations/use existing at the same time.

Run on mocks

To run on mocks, use as a defulat file quickquasars, raw or True. Then use one of the examples as a base and modify it. Remember to run without distortion and metals, removing them in the fits section:

picca_bookkeeper_run_full_analysis mock_config.yaml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picca_bookkeeper-5.1.2.tar.gz (104.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picca_bookkeeper-5.1.2-py3-none-any.whl (153.1 kB view details)

Uploaded Python 3

File details

Details for the file picca_bookkeeper-5.1.2.tar.gz.

File metadata

  • Download URL: picca_bookkeeper-5.1.2.tar.gz
  • Upload date:
  • Size: 104.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for picca_bookkeeper-5.1.2.tar.gz
Algorithm Hash digest
SHA256 d14b04a423ab17b69379e420e73a9a48e3453de23d540969f81e830cb349f5d7
MD5 c0a28bc458a347166dbc6c9a54c6f282
BLAKE2b-256 75aa0dc8a82913d31d435c4950e5bfef1ebadb2392eb850920eccac3541c2a38

See more details on using hashes here.

File details

Details for the file picca_bookkeeper-5.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for picca_bookkeeper-5.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fa35657935f2a14635b648b61f9b02de329df51167d23f851ac47e6c136c32e
MD5 2ff5160a264aa29a61ef8c88c59e4124
BLAKE2b-256 13358239db5acc4eae5bce4ffdbc4017f0ab0d2cbf92d1af7ebcc5be09c08339

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page