runtraj.Project.status#
- Project.status(sel=None)[source]#
Return the selected simulations with what each has, and where it stands.
Whether a result exists comes from a listing of the date folders, so no result file is opened; only the failure records of failed simulations are read.
- Parameters:
sel (
Any) – The simulations: rows ofsimulations, any table withreleaseandvariantcolumns (pandas, polars, pyarrow), or a boolean mask oversimulations. All of them by default.- Returns:
The selection with more columns.
particles(and a column for each other result type a variant makes, such asconcentration), and one column named for each stage the project has, areTruewhen the result exists,Falsewhen it is missing, andNAwhen the variant does not make it.stateiscompletewhen every expected result exists (runtraj.simulation.Simulation.is_complete),failedwhen the last run failed,interruptedwhen a run of its particles started and stopped before it finished (a time limit, preemption, or a killed process), andpendingwhen nothing has run.stage(particles, the other result type, or the stage that failed),reason, andmessagesay why a failed simulation failed (runtraj.simulation.Simulation.failure), and areNAfor the others.- Return type:
Examples
>>> st = project.status() >>> st.state.value_counts() >>> st[st.state == "failed"][["release", "variant", "reason"]]