scifysim.parsefile module

scifysim.parsefile.getarray(self, section, key, dtype=<class 'numpy.float64'>)[source]

An extra get method to parse arrays

Parameters:

  • section : (str) The section to get the data from

  • key : (str) The key of the data

  • dtype : A data type for the array conversion

scifysim.parsefile.getdate(self, section, key, mode=None)[source]

An extra get method to parse dates in the GENIE .prm format

Parameters:

  • section : (str) The section to get the data from

  • key : (str) The key of the data

  • mode : In case we need other formats

scifysim.parsefile.list_all(self)[source]

An extra get method list all the values in the file

scifysim.parsefile.parse_file(file)[source]

Just a quick macro to parse the config file

Parameters:

  • file : The path to a file