-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imprecise Component flagging #159
Comments
Updated/tested code to reproduce: `import matplotlib.pyplot as plt csv_string = """MD_M,Pay,Por df=pd.read_csv(StringIO(csv_string)) comps = [ s = Striplog.from_log(df['Pay'].values, components=comps, basis=df['MD_M'].values) por = Curve(data=df.Por.values, index=df.MD_M.values) s = s.extract(por.values, basis=df.MD_M.values, name='POR') s[0] s[1] |
The problem appears to be with ` |
continuing pulling the thread, I'm now looking at the behavior of |
PR 163 |
When I create a striplog from binary values (i.e. Non-Pay = 0, Pay = 1] and then extract well logs, it always carries over the first value of the next unit.
s = Striplog.from_log(df['Pay'].values, components=comps, basis=df['MD_M'].values)
por = Curve(data=df.por.values, index=df.MD_M.values)
s = s.extract(por.values, basis=df.MD_M.values, name='POR')
so for example if my df looked like this:
MD_M Pay Por
1.0 0 nan
1.5 0 nan
2.0 0 nan
2.5 0 nan
3.0 1 0.3
3.5 1 0.2
4.0 1 0.1
4.5 1 0.25
5.0 0 nan
s[0] would have por values [nan, nan, nan, nan, 0.3]
s[1] would have por values [0.2, 0.1, 0.25, nan]
The text was updated successfully, but these errors were encountered: