carpentries-incubator / python-intermediate-development-earth-sciences

Intermediate Research Software Development Skills In Python for Earth Sciences
https://carpentries-incubator.github.io/python-intermediate-development-earth-sciences/
Other
4 stars 3 forks source link

Object Oriented Programming -- Encapsulating Behaviour #2

Closed AnjaLeBlanc closed 1 year ago

AnjaLeBlanc commented 1 year ago

(e.g. a patient who has a name and a list of inflammation observations) Needs to be updated to NERC data

AnjaLeBlanc commented 1 year ago

in class Site function add measurement in case measurment_id is already a key in dictionary you do not need line: self.measurements[measurement_id].name = measurement_id as this was set to the same value when measurment_id was first added.