stilt.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 withreceptorandvariantcolumns (pandas, polars, pyarrow), or a boolean mask oversimulations. All of them by default.- Returns:
The selection with six more columns.
particlesandfootprintareTruewhen the result exists,Falsewhen it is missing, andNAwhen the variant does not make it.stateiscompletewhen every expected result exists (stilt.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.step,reason, andmessagesay why a failed simulation failed (stilt.Simulation.failure), and areNAfor the others.- Return type:
Notes
An empty footprint (no particle reached the grid) is complete: its
sim.footprintisNonewhilesim.has_footprintis true, andjacobian()lists the empty ones.Examples
>>> st = project.status() >>> st.state.value_counts() >>> st[st.state == "failed"][ ... ["receptor", "variant", "reason"] ... ]