Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

mimic.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import logging
  2. from dataladmetadatamodel.mapper.gitmapper.objectreference import flush_object_references
  3. from tools.metadata_creator.mrrcreator import create_mrrs_from_dataset
  4. from tools.metadata_creator.treeversionlistcreator import create_tree_version_list_for_mrrs
  5. from tools.metadata_creator.uuidsetcreator import create_uuid_set_for_mrrs
  6. mdc_logger = logging.getLogger("metadata_creator")
  7. def create_metadata_from_dataset(mapper: str,
  8. realm: str,
  9. dataset_path: str,
  10. parameter_set_count: int
  11. ):
  12. metadata_root_records = create_mrrs_from_dataset(
  13. mapper,
  14. realm,
  15. dataset_path,
  16. parameter_set_count)
  17. uuid_set = create_uuid_set_for_mrrs(
  18. mapper,
  19. realm,
  20. metadata_root_records)
  21. mdc_logger.info(f"saving uuid set: {uuid_set}")
  22. uuid_set.save()
  23. mdc_logger.info(f"done saving uuid set: {uuid_set}")
  24. tree_version_list = create_tree_version_list_for_mrrs(
  25. mapper,
  26. realm,
  27. metadata_root_records)
  28. mdc_logger.info(f"saving tree version list: {tree_version_list}")
  29. tree_version_list.save()
  30. mdc_logger.info(f"done saving tree version list: {tree_version_list}")
  31. flush_object_references(Path(realm))