MCPcopy Create free account
hub / github.com/comaps/comaps / get_map_series

Method get_map_series

tools/python/maps_generator/generator/env.py:580–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

578
579 @staticmethod
580 def get_map_series() -> AnyStr:
581 # the line format is
582 #define MAP_SERIES "2026.02.09"
583 try:
584 with open(os.path.join(settings.OMIM_PATH, 'private.h'), 'r') as f:
585 lines = f.readlines()
586 for line in lines:
587 if "MAP_SERIES" in line:
588 return line.split('"')[1]
589 except Exception as e:
590 logger.error(f"Error parsing private.h for MAP_SERIES: {e}")
591 return ''
592
593
594 def setup_borders(self):

Callers 1

__init__Method · 0.95

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected