in3Utils.fileHandlerUtils

Directory and file handling helper functions

Functions

checkCommonSims

Check which files are common between local and full ExpLog

checkIfFileExists

test if file exists if not throw error

checkPathlib

check if pathlib.PurePath if not convert to

exportcom1DFAOrigOutput

Export the simulation results from com1DFA output to desired location

extractLogInfo

read log file and extract info on time, mass stop criterion

extractParameterInfo

Extract info about simulation parameters from the log file

fetchFlowFields

fetch paths to all desired flow fields within folder

fileNotFoundMessage

throw error if file not found with message and path

getFilterDict

Create parametersDict from ini file, for filtering simulations

makeADir

Check if a directory exists, if not create directory

makeSimDF

Create a dataFrame that contains all info on simulations

makeSimFromResDF

Create a dataFrame that contains all info on simulations in output/comModule/peakFiles

readLogFile

Read experiment log file and make dictionary that contains general info on all simulations

splitIniValueToArraySteps

read values in ini file and return numpy array or list if the items are strings; values can either be separated by | or provided in start:end:numberOfSteps format if separated by : or $ also optional add one additional value using & if format of refVal$percent$steps is used - an array is created with +- percent of refVal in nsteps

splitTimeValueToArrayInterval

read save time step info from ini file and return numpy array of values