Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pgierz committed Nov 22, 2024
1 parent 902ad39 commit 4c74678
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pymorize/cmorizer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import copy
from pathlib import Path

import dask # noqa: F401
Expand Down Expand Up @@ -261,7 +262,8 @@ def _post_init_create_rules(self):

def _post_init_attach_pymorize_config_rules(self):
for rule in self.rules:
rule._pymorize_cfg = self._pymorize_cfg
# NOTE(PG): **COPY** (don't assign) the configuration to the rule
rule._pymorize_cfg = copy.deepcopy(self._pymorize_cfg)

def _post_init_inherit_rules(self):
for rule_attr, rule_value in self._inherit_cfg.items():
Expand Down

0 comments on commit 4c74678

Please sign in to comment.