示例#1
0
 def rms_vol2df(kwargs):
     """Example function for bridging with fmu.tools to parse volumetrics"""
     fullpath = os.path.join(kwargs["realization"].runpath(), kwargs["filename"])
     # The supplied callback should not fail too easy.
     if os.path.exists(fullpath):
         return volumetrics.rmsvolumetrics_txt2df(fullpath)
     return pd.DataFrame()
示例#2
0
 def rms_vol2df(kwargs):
     """Callback function to be sent to ensemble objects"""
     fullpath = os.path.join(kwargs["realization"].runpath(), kwargs["filename"])
     # The supplied callback should not fail too easy.
     if os.path.exists(fullpath):
         return volumetrics.rmsvolumetrics_txt2df(fullpath)
     return pd.DataFrame()
示例#3
0
 def rms_vol2df(kwargs):
     fullpath = os.path.join(kwargs["realization"].runpath(), kwargs["filename"])
     # The supplied callback should not fail too easy.
     if os.path.exists(fullpath):
         return volumetrics.rmsvolumetrics_txt2df(fullpath)
     else:
         return pd.DataFrame()
示例#4
0
 def rms_vol2df(kwargs):
     return volumetrics.rmsvolumetrics_txt2df(
         os.path.join(kwargs["realization"].runpath(), kwargs["filename"]))
示例#5
0
 def rms_vol2df(kwargs):
     """Small function that is to be supplied to .apply()"""
     return volumetrics.rmsvolumetrics_txt2df(
         os.path.join(kwargs["realization"].runpath(), kwargs["filename"])
     )