Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 4
0
 def rms_vol2df(kwargs):
     return volumetrics.rmsvolumetrics_txt2df(
         os.path.join(kwargs["realization"].runpath(), kwargs["filename"]))
Esempio n. 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"])
     )