Skip to content

Commit

Permalink
further fix to external_id
Browse files Browse the repository at this point in the history
  • Loading branch information
m-elio committed Jan 18, 2024
1 parent 5da1c63 commit bc321b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions clayrs/utils/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ 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)
ca_dict['exogenous_representations'][name_exo] = exo_parameters_dict
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

# FIELD REPRESENTATIONS
ca_dict['field_representations'] = dict()
Expand All @@ -159,8 +162,9 @@ 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 bc321b5

Please sign in to comment.