pymhf.core.importing module#
- class pymhf.core.importing.ModInfo(name: str, disabled: bool)#
Bases:
NamedTupleDetails of a mod class which can be determined without importing the file it’s defined in.
- pymhf.core.importing.get_mod_infos(data: str) list[ModInfo]#
Parse the provided data and return the details of every mod class defined in it.
This allows the name of each mod, and whether it has been decorated with
@disable, to be determined without importing the file they are defined in.
- pymhf.core.importing.import_file(fpath: str) ModuleType | None#