feat(SIMPL-24642): consolidate all code locations into template-code-location

- Rename src/template-code-location to src/template_code_location
- Copy data-processing jobs/ops/config_models
- Copy dataframe-level-anonymisation jobs/ops/utils/config_models
- Copy field-level-pseudo-anonymisation jobs/ops/techniques/config_models
- Update all imports to template_code_location namespace
- Merge all jobs into unified repository.py with sensors/resources/loggers
- Update pyproject.toml with all dependencies
- Update Dockerfile for consolidated image
This commit is contained in:
ILay
2026-04-24 18:38:12 +02:00
parent 0d2802e6f5
commit 4e0b216410
42 changed files with 2071 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
import numpy as np
def parse_value_list(values):
return [int(v) if isinstance(v, str) and v.isdigit() else v for v in values]
# Hierarchy normalization for Anjana
def normalize_hierarchy_levels(hierarchy_dict):
normalized = {}
for column, levels in hierarchy_dict.items():
normalized[column] = {}
for level_str, mapping_list in levels.items():
level = int(level_str)
if level == 0:
normalized[column][level] = np.array(parse_value_list(mapping_list))
else:
normalized[column][level] = mapping_list
return normalized