fgen.data_models.module_requirement#
Data model of module requirements
ModuleRequirement#
- class ModuleRequirement(provides, fortran_module, python_module)[source]#
Bases:
object
Data model of a module requirement
These specifications are used to define the requirements of a module, i.e. the other modules it depends on.
We don’t currently validate these at generation-time. If they are wrong, the module will fail to compile or, in the case of an incorrect
python_module
, will raise an ImportError at run-time.