Skip to content

Downhole collection intervals - #325

Open
sergiopeixoto-seequent wants to merge 32 commits into
SeequentEvo:mainfrom
sergiopeixoto-seequent:AD2052323-dhc-intervals
Open

Downhole collection intervals#325
sergiopeixoto-seequent wants to merge 32 commits into
SeequentEvo:mainfrom
sergiopeixoto-seequent:AD2052323-dhc-intervals

Conversation

@sergiopeixoto-seequent

Copy link
Copy Markdown
Contributor

Description

Implemented typed interval and indexed DownholeCollection support in evo-objects, including polymorphic collection handling, hole-index validation, DataFrame read APIs, prefetching, attribute-description round-tripping, and static-context creation. The branch also bumps evo-objects to 0.6.2

Checklist

  • I have read the contributing guide and the code of conduct

@sergiopeixoto-seequent
sergiopeixoto-seequent requested review from a team as code owners August 5, 2026 08:44
# Conflicts:
#	packages/evo-objects/src/evo/objects/typed/downhole_collection.py
#	packages/evo-objects/tests/typed/test_downhole_collection.py
@sergiopeixoto-seequent sergiopeixoto-seequent changed the title Ad2052323 dhc intervals Downhole collection intervals Aug 6, 2026
Comment thread packages/evo-objects/src/evo/objects/typed/_model.py
Comment thread packages/evo-objects/src/evo/objects/typed/downhole_collection.py Outdated
Comment thread packages/evo-objects/src/evo/objects/typed/downhole_collection.py Outdated
Comment thread packages/evo-objects/src/evo/objects/typed/_prefetch.py Outdated
Comment thread packages/evo-objects/src/evo/objects/typed/attributes.py Outdated
Comment thread packages/evo-objects/src/evo/objects/typed/downhole_collection.py
Comment thread packages/evo-objects/src/evo/objects/typed/downhole_collection.py Outdated
Comment thread packages/evo-objects/src/evo/objects/utils/downhole.py Outdated
Comment thread packages/evo-objects/src/evo/objects/utils/downhole.py Outdated
Comment thread packages/evo-objects/src/evo/objects/utils/data.py
…_index is the integer key in the object's hole_id lookup table, not a positional categorical code. DownholeCollectionData and DownholeCollection no longer assume it is zero-based or contiguous.
"""Run-length encode contiguous hole IDs into ``[hole_index, offset, count]`` chunks.

``hole_indices`` maps hole IDs to their lookup-table keys. When omitted, this
creation helper assigns dense zero-based keys in sorted ID order. Persisted

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment is out of date now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated on ea86f6e

for hole_index, offset, count in self.holes[["hole_index", "offset", "count"]].itertuples(
index=False, name=None
):
coordinates = collars_by_index.loc[int(hole_index), _COORDINATE_COLUMNS].to_numpy(dtype=np.float64)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mapping from hole_index to properties (which is called "collars" in this function) doesn't look like what I was expecting. I thought hole_index was a straight lookup into properties.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix on 032b3e1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants