cd67dba10273d0d9c3d7ab331fcc3580efdd4d9c,framework/CodeInterfaces/MELCOR/MELCORdata.py,MELCORdata,returnControlFunctions,#MELCORdata#Any#,65

Before Change


    startRegex = re.compile("\s*CONTROL\s*FUNCTION\s*NUMBER\s*CURRENT\s*VALUE")
    regex = re.compile("^\s*(?P<name>( ?([0-9a-zA-Z-]+))*)\s+([0-9]+)\s*(?P<value>((([0-9.-]+)E(\+|-)[0-9][0-9])|((T|F))))\s*.*$")
    for time,listOfLines in timeBlock.items():
      functionValues = {}
      start = -1
      for lineNumber, line in enumerate(listOfLines):
        if re.search(startRegex, line):
          start = lineNumber + 1

After Change


          match = re.match(regex, line)
          if match is not None:
            if match.groupdict()["name"] not in functionValuesForEachTime:
              functionValuesForEachTime[match.groupdict()["name"]] = []
            functionValuesForEachTime[match.groupdict()["name"]].append(float(match.groupdict()["value"]))
      elif start == -2:
        for lineNumber, line in enumerate(listOfLines):
          fcnName = re.match(timeOneRegex_name, line)
          if fcnName is not None:
            fcnValue = re.match(timeOneRegex_value, listOfLines[lineNumber+1])
            if fcnValue is not None:
              if fcnName.groupdict()["name"] not in functionValuesForEachTime:
                functionValuesForEachTime[fcnName.groupdict()["name"]] = []
              functionValuesForEachTime[fcnName.groupdict()["name"]].append(float(fcnValue.groupdict()["value"]))
    for parameter in functionValuesForEachTime:
      functionValuesForEachTime[parameter] = np.asarray(functionValuesForEachTime[parameter])
    return functionValuesForEachTime

  def returnVolumeHybro(self,timeBlock):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: idaholab/raven
Commit Name: cd67dba10273d0d9c3d7ab331fcc3580efdd4d9c
Time: 2020-12-08
Author: andrea.alfonsi@inl.gov
File Name: framework/CodeInterfaces/MELCOR/MELCORdata.py
Class Name: MELCORdata
Method Name: returnControlFunctions


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 8d4958cf59ef5d0372e495a310908eced205a009
Time: 2019-01-22
Author: jonas.rothfuss@gmx.de
File Name: cde/density_estimator/LSCDE.py
Class Name: LSConditionalDensityEstimation
Method Name: _param_grid


Project Name: idaholab/raven
Commit Name: cd67dba10273d0d9c3d7ab331fcc3580efdd4d9c
Time: 2020-12-08
Author: andrea.alfonsi@inl.gov
File Name: framework/CodeInterfaces/MELCOR/MELCORdata.py
Class Name: MELCORdata
Method Name: returnVolumeHybro


Project Name: MIC-DKFZ/trixi
Commit Name: f04c2384c98e80b37ac442f5e0fb6152d4ee059e
Time: 2019-03-01
Author: t.adler@dkfz-heidelberg.de
File Name: trixi/logger/visdom/numpyvisdomlogger.py
Class Name: NumpyVisdomLogger
Method Name: show_progress