Skip to content

Commit

Permalink
Revert "further fix to external_id"
Browse files Browse the repository at this point in the history
This reverts commit bc321b5.
  • Loading branch information
m-elio committed Jan 18, 2024
1 parent bc321b5 commit 6df4fbe
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions clayrs/utils/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ def _report_ca_module(self, content_analyzer: ContentAnalyzer):
for exo_config in exo_list:
string_exo = repr(exo_config.exogenous_technique)
name_exo, exo_parameters_dict = self._extract_arguments(string_exo)
single_representation_dict = dict()
single_representation_dict[name_exo] = exo_parameters_dict
single_representation_dict['external_id'] = exo_config.id
ca_dict['exogenous_representations'][name_exo] = single_representation_dict
ca_dict['exogenous_representations'][name_exo] = exo_parameters_dict

# FIELD REPRESENTATIONS
ca_dict['field_representations'] = dict()
Expand All @@ -162,9 +159,8 @@ def _report_ca_module(self, content_analyzer: ContentAnalyzer):
string_technique = repr(field_config.content_technique)

name_technique, parameter_dict_technique = self._extract_arguments(string_technique)

single_representation_dict[name_technique] = parameter_dict_technique
single_representation_dict['external_id'] = field_config.id

single_representation_dict['preprocessing'] = dict() if len(field_config.preprocessing) != 0 else None
for preprocessing in field_config.preprocessing:
Expand Down

0 comments on commit 6df4fbe

Please sign in to comment.