Skip to content

Commit

Permalink
docs: add a comment to explain the determination* fields use of clean…
Browse files Browse the repository at this point in the history
…=False
  • Loading branch information
jrdh committed Oct 31, 2023
1 parent 433e9e1 commit 6782b7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dataimporter/emu/views/specimen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 6782b7a

Please sign in to comment.