Newer
Older
self.independentVariable = None
self.independentBoundedVariable = None
self.auxiliaryVariables = {}
self.dependentVariables = {}
self.specialComments = []
self.normalComments = StandardNormalComments()
# Standard v2.0 for normal comments requires all keywords present,
# might not be the case - then reading data will fail
if isinstance(f, (str, pathlib.Path)):
Christoph Knote
committed
self.inputFhandle = open(f, "r", encoding="utf-8")
if not self.isValidFileName(pathlib.Path(f).name):
warnings.warn(f"{pathlib.Path(f).name} is not a valid ICARTT filename")
self.readHeader(delimiter)
self.readData(delimiter)