-
8000
-
Notifications
You must be signed in to change notification settings - Fork 186
handle no datum id #380
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
base: main
Are you sure you want to change the base?
handle no datum id #380
Conversation
b847ff1
to
affdc46
Compare
tb = feather.read_table( | ||
self.projection.tile_destination / Path(key).with_suffix(".datum_id.feather"), memory_map=True | ||
) | ||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DRY: Repeated try/except blocks for reading datum id feather files. Consider extracting a helper to avoid duplicating fallback logic.
@@ -675,7 +721,7 @@ def __init__(self, projection: "AtlasProjection", auto_cleanup: Optional[bool] = | |||
try: | |||
self.projection._download_sidecar("datum_id") | |||
except Exception: | |||
raise ValueError("Failed to fetch datum ids which is required to load tags.") | |||
id_sidecar = self.projection._get_sidecar_from_field(self.id_field) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review fallback behavior in AtlasMapTags.__init__
: In the exception block, only id_sidecar
is assigned without using it to download the sidecar. Should this mirror the approach used elsewhere?
Important
Adds exception handling and fallback logic for missing 'datum_id' in
nomic/data_operations.py
and updates version insetup.py
._load_duplicates()
,_load_topics()
,tb()
,df()
,get_datums_in_tag()
, and_load_data()
innomic/data_operations.py
to handle missing.datum_id.feather
files..datum_id.feather
is missing.setup.py
from3.4.1
to3.4.2
.This description was created by
for affdc46. It will automatically update as commits are pushed.