src_files.wreader.wreader Class Reference

Public Member Functions

def __init__ (self, path, silent=False)
 
def template (self)
 
def is_crashed (self)
 
def A (self)
 
def Z (self)
 
def N (self)
 
def check_existence (self, entry)
 
def nr_of_snaps (self)
 
def tracked_nuclei (self)
 
def Y (self)
 
def X (self)
 
def snapshot_time (self)
 
def tau (self)
 
def nuloss (self)
 
def mainout (self)
 
def energy (self)
 
def finab (self)
 
def finabsum (self)
 
def finabelem (self)
 
def flow_entry (self, iteration, flow_group='flows')
 
def __getitem__ (self, key)
 
def __init__ (self, path, silent=False)
 
def is_crashed (self)
 
def A (self)
 
def Z (self)
 
def N (self)
 
def check_existence (self, entry)
 
def nr_of_snaps (self)
 
def tracked_nuclei (self)
 
def Y (self)
 
def X (self)
 
def snapshot_time (self)
 
def tau (self)
 
def nuloss (self)
 
def mainout (self)
 
def energy (self)
 
def finab (self)
 
def finabsum (self)
 
def finabelem (self)
 
def out_data (self)
 
def flow_entry (self, iteration, flow_group='flows')
 
def __getitem__ (self, key)
 

Public Attributes

 path
 
 silent
 
 filename
 

Private Member Functions

def __read_is_crashed (self)
 
def __read_A_Z_N (self)
 
def __read_snapshots (self)
 
def __check_files (self, ascii_file_path, hdf5_key)
 
def __read_nr_of_snaps (self)
 
def __read_tracked_nuclei (self)
 
def __read_nuloss (self)
 
def __read_timescales (self)
 
def __read_mainout (self)
 
def __read_energy (self)
 
def __read_finab (self)
 
def __read_finabsum (self)
 
def __read_finabelem (self)
 
def __read_is_crashed (self)
 
def __read_A_Z_N (self)
 
def __read_snapshots (self)
 
def __check_files (self, ascii_file_path, hdf5_key)
 
def __read_nr_of_snaps (self)
 
def __read_tracked_nuclei (self)
 
def __read_nuloss (self)
 
def __read_timescales (self)
 
def __read_mainout (self)
 
def __read_energy (self)
 
def __read_finab (self)
 
def __read_finabsum (self)
 
def __read_out (self)
 
def __read_finabelem (self)
 

Private Attributes

 __snapshot_path
 
 __template_path
 
 __template
 
 __is_crashed
 
 __Z
 
 __A
 
 __N
 
 __snapshots_time
 
 __snapshots_Y
 
 __snapshots_X
 
 __nr_of_snaps
 
 __tracked_nuclei
 
 __nuloss
 
 __timescales
 
 __mainout
 
 __energy
 
 __finab
 
 __finabsum
 
 __finabelem
 
 __out_data
 

Detailed Description

   Minimalistic class to lazily read WinNet data.

Definition at line 12 of file wreader.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def src_files.wreader.wreader.__init__ (   self,
  path,
  silent = False 
)
Initialize the class
   - path: Path to the WinNet data

Definition at line 17 of file wreader.py.

◆ __init__() [2/2]

def src_files.wreader.wreader.__init__ (   self,
  path,
  silent = False 
)
Initialize the class
   - path: Path to the WinNet data

Definition at line 16 of file wreader.py.

Here is the call graph for this function:

Member Function Documentation

◆ __check_files() [1/2]

def src_files.wreader.wreader.__check_files (   self,
  ascii_file_path,
  hdf5_key 
)
private
  Check if something exists in hdf5 or ascii

Definition at line 174 of file wreader.py.

Here is the call graph for this function:

◆ __check_files() [2/2]

def src_files.wreader.wreader.__check_files (   self,
  ascii_file_path,
  hdf5_key 
)
private
  Check if something exists in hdf5 or ascii

Definition at line 186 of file wreader.py.

◆ __getitem__() [1/2]

def src_files.wreader.wreader.__getitem__ (   self,
  key 
)
  Get the value of a specific key.

Definition at line 595 of file wreader.py.

Here is the call graph for this function:

◆ __getitem__() [2/2]

def src_files.wreader.wreader.__getitem__ (   self,
  key 
)
  Get the value of a specific key.

Definition at line 630 of file wreader.py.

Here is the call graph for this function:

◆ __read_A_Z_N() [1/2]

def src_files.wreader.wreader.__read_A_Z_N (   self)
private
Read the mass number A

Definition at line 67 of file wreader.py.

Here is the call graph for this function:

◆ __read_A_Z_N() [2/2]

def src_files.wreader.wreader.__read_A_Z_N (   self)
private
Read the mass number A

Definition at line 79 of file wreader.py.

Here is the call graph for this function:

◆ __read_energy() [1/2]

def src_files.wreader.wreader.__read_energy (   self)
private
Read the energy

Definition at line 433 of file wreader.py.

Here is the call graph for this function:

◆ __read_energy() [2/2]

def src_files.wreader.wreader.__read_energy (   self)
private
Read the energy

Definition at line 441 of file wreader.py.

Here is the call graph for this function:

◆ __read_finab() [1/2]

def src_files.wreader.wreader.__read_finab (   self)
private
Reader of the finab

Definition at line 466 of file wreader.py.

Here is the call graph for this function:

◆ __read_finab() [2/2]

def src_files.wreader.wreader.__read_finab (   self)
private
Reader of the finab

Definition at line 474 of file wreader.py.

Here is the call graph for this function:

◆ __read_finabelem() [1/2]

def src_files.wreader.wreader.__read_finabelem (   self)
private
Reader of the finabsum

Definition at line 534 of file wreader.py.

Here is the call graph for this function:

◆ __read_finabelem() [2/2]

def src_files.wreader.wreader.__read_finabelem (   self)
private
Reader of the finabsum

Definition at line 569 of file wreader.py.

Here is the call graph for this function:

◆ __read_finabsum() [1/2]

def src_files.wreader.wreader.__read_finabsum (   self)
private
Reader of the finabsum

Definition at line 497 of file wreader.py.

Here is the call graph for this function:

◆ __read_finabsum() [2/2]

def src_files.wreader.wreader.__read_finabsum (   self)
private
Reader of the finabsum

Definition at line 505 of file wreader.py.

Here is the call graph for this function:

◆ __read_is_crashed() [1/2]

def src_files.wreader.wreader.__read_is_crashed (   self)
private
Read if the run has crashed

Definition at line 45 of file wreader.py.

Here is the call graph for this function:

◆ __read_is_crashed() [2/2]

def src_files.wreader.wreader.__read_is_crashed (   self)
private
Read if the run has crashed

Definition at line 58 of file wreader.py.

Here is the call graph for this function:

◆ __read_mainout() [1/2]

def src_files.wreader.wreader.__read_mainout (   self)
private
Read the mainout

Definition at line 398 of file wreader.py.

Here is the call graph for this function:

◆ __read_mainout() [2/2]

def src_files.wreader.wreader.__read_mainout (   self)
private
Read the mainout

Definition at line 406 of file wreader.py.

Here is the call graph for this function:

◆ __read_nr_of_snaps() [1/2]

def src_files.wreader.wreader.__read_nr_of_snaps (   self)
private
   Read the number of snapshots

Definition at line 208 of file wreader.py.

Here is the call graph for this function:

◆ __read_nr_of_snaps() [2/2]

def src_files.wreader.wreader.__read_nr_of_snaps (   self)
private
   Read the number of snapshots

Definition at line 216 of file wreader.py.

Here is the call graph for this function:

◆ __read_nuloss() [1/2]

def src_files.wreader.wreader.__read_nuloss (   self)
private
Read the neutrino losses and gains

Definition at line 336 of file wreader.py.

Here is the call graph for this function:

◆ __read_nuloss() [2/2]

def src_files.wreader.wreader.__read_nuloss (   self)
private
Read the neutrino losses and gains

Definition at line 344 of file wreader.py.

Here is the call graph for this function:

◆ __read_out()

def src_files.wreader.wreader.__read_out (   self)
private
   Read the OUT file

Definition at line 527 of file wreader.py.

◆ __read_snapshots() [1/2]

def src_files.wreader.wreader.__read_snapshots (   self)
private
Read the snapshots

Definition at line 107 of file wreader.py.

Here is the call graph for this function:

◆ __read_snapshots() [2/2]

def src_files.wreader.wreader.__read_snapshots (   self)
private
Read the snapshots

Definition at line 119 of file wreader.py.

Here is the call graph for this function:

◆ __read_timescales() [1/2]

def src_files.wreader.wreader.__read_timescales (   self)
private
Read the timescales

Definition at line 360 of file wreader.py.

Here is the call graph for this function:

◆ __read_timescales() [2/2]

def src_files.wreader.wreader.__read_timescales (   self)
private
Read the timescales

Definition at line 368 of file wreader.py.

Here is the call graph for this function:

◆ __read_tracked_nuclei() [1/2]

def src_files.wreader.wreader.__read_tracked_nuclei (   self)
private
Read the tracked nuclei

Definition at line 236 of file wreader.py.

Here is the call graph for this function:

◆ __read_tracked_nuclei() [2/2]

def src_files.wreader.wreader.__read_tracked_nuclei (   self)
private
Read the tracked nuclei

Definition at line 244 of file wreader.py.

Here is the call graph for this function:

◆ A() [1/2]

def src_files.wreader.wreader.A (   self)
Mass number

Definition at line 59 of file wreader.py.

Here is the call graph for this function:

◆ A() [2/2]

def src_files.wreader.wreader.A (   self)
Mass number

Definition at line 71 of file wreader.py.

Here is the call graph for this function:

◆ check_existence() [1/2]

def src_files.wreader.wreader.check_existence (   self,
  entry 
)
Check whether an entry is in the hdf5 format (return 1),
or in the ascii format (return 2), or does not exist (return 0)

Definition at line 142 of file wreader.py.

Here is the call graph for this function:

◆ check_existence() [2/2]

def src_files.wreader.wreader.check_existence (   self,
  entry 
)
Check whether an entry is in the hdf5 format (return 1),
or in the ascii format (return 2), or does not exist (return 0)

Definition at line 154 of file wreader.py.

Here is the call graph for this function:

◆ energy() [1/2]

def src_files.wreader.wreader.energy (   self)
Get the energy

Definition at line 425 of file wreader.py.

Here is the call graph for this function:

◆ energy() [2/2]

def src_files.wreader.wreader.energy (   self)
Get the energy

Definition at line 433 of file wreader.py.

Here is the call graph for this function:

◆ finab() [1/2]

def src_files.wreader.wreader.finab (   self)
Get the final abundances from the finab.dat file

Definition at line 458 of file wreader.py.

Here is the call graph for this function:

◆ finab() [2/2]

def src_files.wreader.wreader.finab (   self)
Get the final abundances from the finab.dat file

Definition at line 466 of file wreader.py.

Here is the call graph for this function:

◆ finabelem() [1/2]

def src_files.wreader.wreader.finabelem (   self)
Get the final abundances from the finabelem.dat file

Definition at line 518 of file wreader.py.

Here is the call graph for this function:

◆ finabelem() [2/2]

def src_files.wreader.wreader.finabelem (   self)
Get the final abundances from the finabelem.dat file

Definition at line 526 of file wreader.py.

Here is the call graph for this function:

◆ finabsum() [1/2]

def src_files.wreader.wreader.finabsum (   self)
Get the final abundances from the finabsum.dat file

Definition at line 489 of file wreader.py.

Here is the call graph for this function:

◆ finabsum() [2/2]

def src_files.wreader.wreader.finabsum (   self)
Get the final abundances from the finabsum.dat file

Definition at line 497 of file wreader.py.

Here is the call graph for this function:

◆ flow_entry() [1/2]

def src_files.wreader.wreader.flow_entry (   self,
  iteration,
  flow_group = 'flows' 
)
Get the flow entry

Definition at line 552 of file wreader.py.

Here is the call graph for this function:

◆ flow_entry() [2/2]

def src_files.wreader.wreader.flow_entry (   self,
  iteration,
  flow_group = 'flows' 
)
Get the flow entry

Definition at line 587 of file wreader.py.

Here is the call graph for this function:

◆ is_crashed() [1/2]

def src_files.wreader.wreader.is_crashed (   self)
Check if the run has crashed

Definition at line 36 of file wreader.py.

Here is the call graph for this function:

◆ is_crashed() [2/2]

def src_files.wreader.wreader.is_crashed (   self)
Check if the run has crashed

Definition at line 49 of file wreader.py.

Here is the call graph for this function:

◆ mainout() [1/2]

def src_files.wreader.wreader.mainout (   self)
Get an entry from the mainout

Definition at line 390 of file wreader.py.

Here is the call graph for this function:

◆ mainout() [2/2]

def src_files.wreader.wreader.mainout (   self)
Get an entry from the mainout

Definition at line 398 of file wreader.py.

Here is the call graph for this function:

◆ N() [1/2]

def src_files.wreader.wreader.N (   self)
Neutron number

Definition at line 98 of file wreader.py.

Here is the call graph for this function:

◆ N() [2/2]

def src_files.wreader.wreader.N (   self)
Neutron number

Definition at line 110 of file wreader.py.

Here is the call graph for this function:

◆ nr_of_snaps() [1/2]

def src_files.wreader.wreader.nr_of_snaps (   self)
Number of snapshots

Definition at line 200 of file wreader.py.

Here is the call graph for this function:

◆ nr_of_snaps() [2/2]

def src_files.wreader.wreader.nr_of_snaps (   self)
Number of snapshots

Definition at line 208 of file wreader.py.

Here is the call graph for this function:

◆ nuloss() [1/2]

def src_files.wreader.wreader.nuloss (   self)
Get the neutrino losses and gains

Definition at line 327 of file wreader.py.

Here is the call graph for this function:

◆ nuloss() [2/2]

def src_files.wreader.wreader.nuloss (   self)
Get the neutrino losses and gains

Definition at line 335 of file wreader.py.

Here is the call graph for this function:

◆ out_data()

def src_files.wreader.wreader.out_data (   self)
Get the data from the OUT file

Definition at line 560 of file wreader.py.

Here is the call graph for this function:

◆ snapshot_time() [1/2]

def src_files.wreader.wreader.snapshot_time (   self)
Get time at snapshot idx

Definition at line 308 of file wreader.py.

Here is the call graph for this function:

◆ snapshot_time() [2/2]

def src_files.wreader.wreader.snapshot_time (   self)
Get time at snapshot idx

Definition at line 316 of file wreader.py.

Here is the call graph for this function:

◆ tau() [1/2]

def src_files.wreader.wreader.tau (   self)
Get the timescale of "tau", e.g., "tau_ag"

Definition at line 317 of file wreader.py.

Here is the call graph for this function:

◆ tau() [2/2]

def src_files.wreader.wreader.tau (   self)
Get the timescale of "tau", e.g., "tau_ag"

Definition at line 325 of file wreader.py.

Here is the call graph for this function:

◆ template()

def src_files.wreader.wreader.template (   self)
Check if the run has crashed

Definition at line 39 of file wreader.py.

◆ tracked_nuclei() [1/2]

def src_files.wreader.wreader.tracked_nuclei (   self)
Get the tracked nuclei

Definition at line 228 of file wreader.py.

Here is the call graph for this function:

◆ tracked_nuclei() [2/2]

def src_files.wreader.wreader.tracked_nuclei (   self)
Get the tracked nuclei

Definition at line 236 of file wreader.py.

Here is the call graph for this function:

◆ X() [1/2]

def src_files.wreader.wreader.X (   self)
Get mass fraction at snapshot idx

Definition at line 299 of file wreader.py.

Here is the call graph for this function:

◆ X() [2/2]

def src_files.wreader.wreader.X (   self)
Get mass fraction at snapshot idx

Definition at line 307 of file wreader.py.

Here is the call graph for this function:

◆ Y() [1/2]

def src_files.wreader.wreader.Y (   self)
Get abundance at snapshot idx

Definition at line 290 of file wreader.py.

Here is the call graph for this function:

◆ Y() [2/2]

def src_files.wreader.wreader.Y (   self)
Get abundance at snapshot idx

Definition at line 298 of file wreader.py.

Here is the call graph for this function:

◆ Z() [1/2]

def src_files.wreader.wreader.Z (   self)
Atomic number

Definition at line 89 of file wreader.py.

Here is the call graph for this function:

◆ Z() [2/2]

def src_files.wreader.wreader.Z (   self)
Atomic number

Definition at line 101 of file wreader.py.

Here is the call graph for this function:

Member Data Documentation

◆ __A

src_files.wreader.wreader.__A
private

Definition at line 89 of file wreader.py.

◆ __energy

src_files.wreader.wreader.__energy
private

Definition at line 452 of file wreader.py.

◆ __finab

src_files.wreader.wreader.__finab
private

Definition at line 493 of file wreader.py.

◆ __finabelem

src_files.wreader.wreader.__finabelem
private

Definition at line 550 of file wreader.py.

◆ __finabsum

src_files.wreader.wreader.__finabsum
private

Definition at line 522 of file wreader.py.

◆ __is_crashed

src_files.wreader.wreader.__is_crashed
private

Definition at line 65 of file wreader.py.

◆ __mainout

src_files.wreader.wreader.__mainout
private

Definition at line 418 of file wreader.py.

◆ __N

src_files.wreader.wreader.__N
private

Definition at line 94 of file wreader.py.

◆ __nr_of_snaps

src_files.wreader.wreader.__nr_of_snaps
private

Definition at line 226 of file wreader.py.

◆ __nuloss

src_files.wreader.wreader.__nuloss
private

Definition at line 354 of file wreader.py.

◆ __out_data

src_files.wreader.wreader.__out_data
private

Definition at line 533 of file wreader.py.

◆ __snapshot_path

src_files.wreader.wreader.__snapshot_path
private

Definition at line 32 of file wreader.py.

◆ __snapshots_time

src_files.wreader.wreader.__snapshots_time
private

Definition at line 131 of file wreader.py.

◆ __snapshots_X

src_files.wreader.wreader.__snapshots_X
private

Definition at line 133 of file wreader.py.

◆ __snapshots_Y

src_files.wreader.wreader.__snapshots_Y
private

Definition at line 132 of file wreader.py.

◆ __template

src_files.wreader.wreader.__template
private

Definition at line 44 of file wreader.py.

◆ __template_path

src_files.wreader.wreader.__template_path
private

Definition at line 35 of file wreader.py.

◆ __timescales

src_files.wreader.wreader.__timescales
private

Definition at line 376 of file wreader.py.

◆ __tracked_nuclei

src_files.wreader.wreader.__tracked_nuclei
private

Definition at line 250 of file wreader.py.

◆ __Z

src_files.wreader.wreader.__Z
private

Definition at line 87 of file wreader.py.

◆ filename

src_files.wreader.wreader.filename

Definition at line 29 of file wreader.py.

◆ path

src_files.wreader.wreader.path

Definition at line 23 of file wreader.py.

◆ silent

src_files.wreader.wreader.silent

Definition at line 26 of file wreader.py.