diff --git a/gem2caom2/gem_name.py b/gem2caom2/gem_name.py index 1728f1ae..90be6c33 100644 --- a/gem2caom2/gem_name.py +++ b/gem2caom2/gem_name.py @@ -244,6 +244,10 @@ def external_urls(self): def product_id(self): return self._product_id + @property + def product_id(self): + return self._file_id + @property def thumb_uri(self): """Note the 'ad' scheme - the thumbnail is generated at CADC, diff --git a/gem2caom2/tests/data/multi_plane/GN-2020A-Q-132-0-0.in.xml b/gem2caom2/tests/data/multi_plane/GN-2020A-Q-132-0-0.in.xml new file mode 100644 index 00000000..53385ed3 --- /dev/null +++ b/gem2caom2/tests/data/multi_plane/GN-2020A-Q-132-0-0.in.xml @@ -0,0 +1,14 @@ + + GEMINI + GN-2020A-Q-132-0-0 + + exposure + + + + N20191219A0004 + 1990-01-01T00:00:00.000 + + + + diff --git a/gem2caom2/tests/test_gem_obs_file_relationship.py b/gem2caom2/tests/test_gem_obs_file_relationship.py index e96be2be..a754a41b 100644 --- a/gem2caom2/tests/test_gem_obs_file_relationship.py +++ b/gem2caom2/tests/test_gem_obs_file_relationship.py @@ -240,6 +240,10 @@ def test_repair_data_label(): test_result = external_metadata.gofr.repair_data_label('N20181217S0266') assert test_result is not None, 'no result' assert test_result == 'GN-2018B-Q-133-20-001', 'wrong result' + test_result = external_metadata.repair_data_label( + 'rS20050916S0159', 'GS-2003B-Q-23-17-001-G') + assert test_result is not None, 'no result' + assert test_result == 'GS-2003B-Q-23-17-001', 'wrong result' def test_repair_data_label_247():