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