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
Drillhole.get_data() doesn't return values #275
Comments
JIRA issue [GEOPY-723] was created. |
@cardinalgeo thanks for raising this. I agree the behaviour is not ideal. We are getting rid of the data after closing the file to force a refresh on re-opening. It has to do with how drillhole store data in the background. We can re-think this for sure, but for now, just leave your workspace opened (or within context) to access the data values. |
Got it, thanks @domfournier! But why does the behavior differ between the two scenarios run in the example (i.e., the data are not returned for |
Hi @cardinalgeo , Just getting back to this, sorry for the obnoxiously long silence. So turns out that you did something that we didn't see coming. In your example, The behavior of Drillholes and DrillholeConcatenated is quite different in terms of storage of attributes and values and can't be mixed. The simplest fix will be to prevent you from assigning a Drillhole to a Hope this makes sense. |
Got it, thanks for clarifying @domfournier! |
Hi everyone! I'm enjoying using geoh5py so far, though I've found a potential bug (described below). Any idea what's going on?
Best, Robert Collar
Environment data
OS (Windows | Mac | Linux distro) and version: Darwin arm64 21.3.0
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
python version: 3.9.13
geoh5py version: 0.4.0
Expected behavior
When I create a
Drillhole
object using, for example,well = Drillhole.create(workspace)
, add attributes (e.g.,well.name = "Drillhole"
) and interval data, close the workspace, and then reopen the workspace (e.g., in a different jupyter notebook), I expect the interval data values to be retrievable.Actual behavior
Instead, when I follow the steps above, the interval data values are
None
. Interestingly, if I initialize aDrillhole
object and its attributes all at once (and then subsequently add the interval data like before), the interval data values are retrievable.Steps to reproduce
In the example below, after closing and reopening the workspaces, the
interval_data
values are only printed for the first well.The text was updated successfully, but these errors were encountered: