mispr.hybrid.firetasks packageยถ
Submodulesยถ
mispr.hybrid.firetasks.nmr_from_md moduleยถ
- class mispr.hybrid.firetasks.nmr_from_md.NMRFromMD(*args, **kwargs)[source]ยถ
Bases:
FiretaskBase
- run_task(fw_spec)[source]ยถ
This method gets called when the Firetask is run. It can take in a Firework spec, perform some task using that data, and then return an output in the form of a FWAction.
- Parameters:ยถ
- fw_spec : dictยถ
A Firework spec. This comes from the master spec. In addition, this spec contains a special โ_fw_envโ key that contains the env settings of the FWorker calling this method. This provides for abstracting out certain commands or settings. For example, โfooโ may be named โfoo1โ in resource 1 and โfoo2โ in resource 2. The FWorker env can specify { โfooโ: โfoo1โ}, which maps an abstract variable โfooโ to the relevant โfoo1โ or โfoo2โ. You can then write a task that uses fw_spec[โ_fw_envโ][โfooโ] that will work across all these multiple resources.
- Returns:ยถ
(FWAction)