We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 071f167 commit a1ee11aCopy full SHA for a1ee11a
nwbinspector/checks/icephys.py
@@ -6,5 +6,5 @@
6
@register_check(importance=Importance.BEST_PRACTICE_VIOLATION, neurodata_type=IntracellularElectrode)
7
def check_intracellular_electrode_cell_id_exists(intracellular_electrode: IntracellularElectrode):
8
"""Check if the IntracellularElectrode contains a cell_id."""
9
- if getattr(intracellular_electrode, "cell_id", "") is None: # Will only be None with PyNWB>=2.1.0
+ if hasattr(intracellular_electrode, "cell_id") and intracellular_electrode.cell_id is None:
10
return InspectorMessage(message="Please include a unique cell_id associated with this IntracellularElectrode.")
0 commit comments