in lib/metric-config-parser/metric_config_parser/analysis.py [0:0]
def merge(self, other: "DefinitionSpecSub"):
"""Merges another analysis spec into the current one."""
if isinstance(other, AnalysisSpec):
self.experiment.merge(other.experiment)
self.metrics.merge(other.metrics)
self.data_sources.merge(other.data_sources)
if isinstance(other, AnalysisSpec) or hasattr(other, "segments"):
self.segments.merge(other.segments) # type: ignore