Skip to content

Commit 39f2640

Browse files
authored
Merge pull request #81 from VIDA-NYU/fix/enricher Cheers to @fabiofelix for this catch!
fix(enricher): Using wrong configuration when many enrichers exist
2 parents 0d5653b + d13be12 commit 39f2640

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/urban_mapper/modules/enricher/enricher_factory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import pkgutil
1717
from pathlib import Path
1818
from thefuzz import process
19+
import copy
1920

2021

2122
@beartype
@@ -303,7 +304,7 @@ def build(self) -> EnricherBase:
303304
self._instance = enricher_class(
304305
aggregator=aggregator,
305306
output_column=self.config.enricher_config["output_column"],
306-
config=self.config,
307+
config=copy.deepcopy(self.config),
307308
)
308309
if self._preview:
309310
self.preview(format=self._preview["format"])

0 commit comments

Comments
 (0)