def test_set_survey_metadata(self):
""" Test that we can change a value in the survey metadata and this is written to mth5"""
survey_metadata = self.mth5_obj.survey_group.metadata
assert survey_metadata.id is None
new_survey_id = "MT Survey"
survey_metadata.id = new_survey_id
assert survey_metadata.id == new_survey_id
self.mth5_obj.survey_group.metadata = survey_metadata
assert self.mth5_obj.survey_group.metadata.id == new_survey_id
The last line fails and I'm not sure why. This sort of setting seems to work in v0.2.0, but the syntax is different.
I added a test to tests/version_1/test_mth5.py
The last line fails and I'm not sure why. This sort of setting seems to work in v0.2.0, but the syntax is different.
Actually, the solution was to use
as the last two lines. I'll commit this test for future reference