From 6782b7a859ced7e8924c8b717b83fc44445757ee Mon Sep 17 00:00:00 2001 From: Josh Humphries Date: Tue, 31 Oct 2023 14:45:14 +0000 Subject: [PATCH] docs: add a comment to explain the determination* fields use of clean=False --- dataimporter/emu/views/specimen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dataimporter/emu/views/specimen.py b/dataimporter/emu/views/specimen.py index fddd9ae..d040be0 100644 --- a/dataimporter/emu/views/specimen.py +++ b/dataimporter/emu/views/specimen.py @@ -233,6 +233,9 @@ def make_data(self, record: SourceRecord) -> dict: "recoveryWeight": get_first("MinMetRecoveryWeight"), "registeredWeight": get_first("MinMetWeightAsRegistered"), "registeredWeightUnit": get_first("MinMetWeightAsRegisteredUnit"), + # these need clean=False because each should return a tuple of the same + # length where the values at each index align across all three tuples, + # therefore we need to keep empty values "determinationTypes": get_all("IdeCitationTypeStatus", clean=False), "determinationNames": get_all("EntIdeScientificNameLocal", clean=False), "determinationFiledAs": get_all("EntIdeFiledAs", clean=False),