Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsean committed Aug 30, 2024
1 parent 7622a5f commit 1db3b01
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions andes_migrate/biometrie_petoncle.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,21 @@ def populate_data(self):
secteur = "Centre"
if self.collection_name == 'Conserver le spécimen (Biométrie Ouest)':
secteur = "Ouest"
# if self.collection_name == 'Conserver un specimen':
# secteur = "16E"
# secteur = "16E"

# print(self.collection_name)
sexe_dict={'0':"I",
'1':'M',
'2':'F',
}
self.data["id_specimen"] = self._get_current_row_pk()
self.data["secteur"] = secteur
self.data["trait"] = self.get_ident_no_trait()
self.data["no"] = int(self.get_observation("Code Collection coquille").strip().split("-")[-1])
self.data["taille"] = self.get_observation("Longueur (non officiel)").replace(".",",")
self.data["no"] = self.get_observation("Code Collection coquille").strip().split("-")[-1]
self.data["taille"] = self.get_observation("Longuer (biométrie)").replace(".",",")
self.data["taille (old)"] = self.get_observation("Longueur").replace(".",",")
self.data["poids_vif"] = self.get_observation("Poids vif").replace(".",",")
self.data["poids_muscle"] = self.get_observation("Poids du muscle").replace(".",",")
self.data["poids_gonade"] = self.get_observation("Poids des gonades").replace(".",",")
Expand Down Expand Up @@ -141,7 +147,7 @@ def get_observation(self, name_fr):
self._assert_one(result)
to_return = result[0][0]
except ValueError:
print(specimen_pk, name_fr,result)
# print('error:', specimen_pk, name_fr,result)
to_return = None
if to_return is None:
to_return=""
Expand Down

0 comments on commit 1db3b01

Please sign in to comment.