comet.pyhed 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.

load(name)[source]

Load config from ASCII file format.

save(name)[source]

Saves config in ASCII file format.

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.

load(name)[source]

Load config from ASCII file format.

save(name)[source]

Saves config in ASCII file format.

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).
comet.pyhed.addLogFile(name=None, new_log=True)[source]