Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johenglisch committed Mar 1, 2024
1 parent 11e6906 commit 1343ab0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cldfbench_barlownumeralsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def cmd_makecldf(self, args):
(row['Parameter_ID'], row['Original_Name']): row
for row in self.etc_dir.read_csv('codes.csv', dicts=True)}

for parameter in parameter_table.values():
for parameter in parameter_table:
if parameter.get('Closed_Value_Set') == 'yes':
possible_values = {
value
Expand Down Expand Up @@ -88,14 +88,14 @@ def cmd_makecldf(self, args):
'Value': value,
}
for row in raw_data
for parameter in parameter_table.values()
for parameter in parameter_table
if (value := row.get(parameter['Original_Name']))]

args.writer.cldf.add_component('LanguageTable')
args.writer.cldf.add_component('ParameterTable')
args.writer.cldf.add_component('CodeTable', 'Map_Icon')

args.writer.objects['LanguageTable'] = language_table
args.writer.objects['ParameterTable'] = parameter_table.values()
args.writer.objects['ParameterTable'] = parameter_table
args.writer.objects['CodeTable'] = code_table.values()
args.writer.objects['ValueTable'] = value_table

0 comments on commit 1343ab0

Please sign in to comment.