()
| 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): |