comet.pyhed package¶
Subpackages¶
- comet.pyhed.IO package
- comet.pyhed.hed package
- comet.pyhed.loop package
- comet.pyhed.misc package
- Submodules
- comet.pyhed.misc.console_call module
- comet.pyhed.misc.load_save module
- comet.pyhed.misc.matrixWrapper module
- comet.pyhed.misc.mesh_tools module
- comet.pyhed.misc.mpi_tools module
- comet.pyhed.misc.para_lib module
- comet.pyhed.misc.poly_tools module
- comet.pyhed.misc.test_class module
- comet.pyhed.misc.timer module
- comet.pyhed.misc.toolbox module
- comet.pyhed.misc.vec module
- Module contents
- comet.pyhed.plot package
Submodules¶
comet.pyhed.config module¶
Part of comet/pyhed
-
class
comet.pyhed.config.
SecondaryConfig
(name=None, mod_name=None, mesh_name=None, m_dir='.', r_dir='.', pf_name='__default__prim_fields', p2=False, approach='E_s', pf_EH_flag='E', sigma_ground=[0.001], procs_per_proc=1, frequency=2000)[source]¶ Bases:
object
-
load
(filename)[source]¶ Load config from file.
Parameters: filename (sting) – Relative or absolute path to file. None
-
save
(filename)[source]¶ Save secondary config in ASCII file format.
Parameters: Filename (string) – Filename for saving. Sub directories are created on the fly if code execution has the proper rights.
-
setAnomalies
(sigma_anom, layer_markers=None)[source]¶ Set anomalie vector.
Parameters: - sigma_anom (np.ndarray) – Array with sigma values for each cell marked as anomaly.
- layer_markers (np.ndarray [ None ]) – Array containing the cell marker for each anomaly value (cell) to calculate the sigma anomalies with respect to the 1d background model. None indicates a homogenous background and all marker are set to 1 (0 is airspace).
-
-
class
comet.pyhed.config.
config
(name=None, rho=[1000.0], d=[], f=2000.0, mode='te', ftype='B', current=1.0, forceNew=False)[source]¶ Bases:
object
Basic 1d configuration file.
Contents the values for layer parameters rho and d, the mode (te or tm), the fieldtype that will be calculated and the current of the loop.
Held by instances of the loop class.
Module contents¶
Module comet/pyhed
-
class
comet.pyhed.
config
(name=None, rho=[1000.0], d=[], f=2000.0, mode='te', ftype='B', current=1.0, forceNew=False)[source]¶ Bases:
object
Basic 1d configuration file.
Contents the values for layer parameters rho and d, the mode (te or tm), the fieldtype that will be calculated and the current of the loop.
Held by instances of the loop class.
-
class
comet.pyhed.
SecondaryConfig
(name=None, mod_name=None, mesh_name=None, m_dir='.', r_dir='.', pf_name='__default__prim_fields', p2=False, approach='E_s', pf_EH_flag='E', sigma_ground=[0.001], procs_per_proc=1, frequency=2000)[source]¶ Bases:
object
-
load
(filename)[source]¶ Load config from file.
Parameters: filename (sting) – Relative or absolute path to file. None
-
save
(filename)[source]¶ Save secondary config in ASCII file format.
Parameters: Filename (string) – Filename for saving. Sub directories are created on the fly if code execution has the proper rights.
-
setAnomalies
(sigma_anom, layer_markers=None)[source]¶ Set anomalie vector.
Parameters: - sigma_anom (np.ndarray) – Array with sigma values for each cell marked as anomaly.
- layer_markers (np.ndarray [ None ]) – Array containing the cell marker for each anomaly value (cell) to calculate the sigma anomalies with respect to the 1d background model. None indicates a homogenous background and all marker are set to 1 (0 is airspace).
-