stilt.Project#
- class stilt.Project(path: 'str | Path', *, output: 'str | Path | None' = None) 'None'[source]#
A STILT project: receptors, settings, and the simulations they define.
Project(path)opens a project directory and reads it. It is every receptor under every variant, and a view of their results: list the simulations, see which have finished, load particles and footprints. The results are in the output directoryconfig.yamlnames (./outputby default), which several projects can share.Make a new project with
init()(orstilt init). After that,config.yamlis yours to edit; PYSTILT never rewrites it.
Parameters
pathstr or PathProject directory.
outputstr or Path, optionalRead and write results here instead of the output directory
config.yamlnames: a path, or a URL such ass3://bucket/output. For a container whose output is somewhere else than the project’s.
Attributes#
The settings, read from |
|
The project's |
|
The project's name, which is the name of its directory. |
|
The output directory. |
|
Plotting methods, such as |
|
The receptors, one row per receptor, in file order. |
|
The project's |
|
Every receptor under every variant, one row per simulation. |
|
Each variant, resolved, by name, in config order. |
Methods#
|
Add receptors to |
|
Add rows to one of the project's input tables, and return its path. |
|
Return what would stop the project's simulations, found before any run. |
|
Get the met files the unfinished simulations need, and return them. |
|
Return every settings folder in the output directory, and which variants use it. |
|
Open the footprints of the selected simulations as one dataset. |
|
Return the selected simulations that are missing an expected result. |
|
Make a new project and return it. |
|
Sum the selected footprints onto a target, per time bin, as one sparse matrix. |
|
Load the particles of every selected simulation that has them, as one table. |
|
Return one receptor by id, built from its rows. |
|
Run every simulation that has not finished, and wait for it. |
|
Return one simulation: a receptor under a variant, and a realization of an ensemble. |
|
Return the selected simulations with what each has, and where it stands. |
|
Submit every simulation that has not finished to Slurm, and return at once. |
|
Return where the project's table name is kept: |
|
Return the transport error of each selected simulation's modeled enhancement. |