Open rckwzrd opened 3 years ago
keep getting this error when trying to build a thickness quantity from the difference between two bed markers. it is very possible that I am doing something incorrectly. the error is thrown when trying to display the mlt
quantity.
found a work around or correct approach. accessed the value attribute of the of mlt_
and passed as a f string to Q_
to build a thickness quantity.
In [1]: from quantities import quantitymaker, Limits, Q ...: from pint import DimensionalityError, UnitRegistry ...: from uncertainties import ufloat ...: from typeguard import typechecked ...: ...: import numpy as np
In [2]:
...: # MLT = bed_top - bed_bot = log thickness of bed in deviated hole ...: # TVT = MLTcos(psi) = true vertical thickness of bed from hole dip ...: # TST = TVTcos(delta) = true stratigraphic thickness of bed from bed dip ...: ...: MeasuredDepth = quantity_maker("MD", "ft") ...: Thickness = quantity_maker("Thickness", "ft") ...: ...: bedtop = MeasuredDepth(name=r"bed{top}", quantity=Q_("8000 ft")) ...: bedbot = MeasuredDepth(name=r"bed{bot}", quantity=Q("8050 ft")) ...: ...: # how to convert from MD to thickness? ...: mlt = bed_bot - bedtop ...: mlt = Thickness(name="MLT", quantity=mlt) ...: ...: display(bed_top) ...: display(bed_bot) ...: display(mlt) ...: