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)

Module contentsยถ