SainsburyWellcomeCentre / aeon_mecha

Project Aeon's main library for interfacing with acquired data. Contains modules for raw data file io, data querying, data processing, data qc, database ingestion, and building computational data pipelines.
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

Find nested key breaks if inner value is None #419

Closed glopesdev closed 1 month ago

glopesdev commented 1 month ago

It's unclear why this does not reproduce using my remote CEPH environment (maybe a python version issue), but while running a local environment I started seeing None object errors in the following line while reading SLEAP pose data using the Pose reader object:

https://github.com/SainsburyWellcomeCentre/aeon_mecha/blob/7812b4fbbda6fd679fae26c926be2f09baaae781/aeon/util.py#L13

This seems to be because of various entries which are indeed None in the confmap_config.json. One alternative might be to simply continue if v is None but we should investigate the whole issue a bit better to understand what is the underlying root cause.