Skip to content

Commit

Permalink
Fix issue 8: csv files not generated for tables without datapoints (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-olleros authored Nov 27, 2024
1 parent 1d54d4e commit 9d599f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ input/instances/95980020140005310927.CON_ES_COREP030100_COREPOF_2023-06-30_20231
input/instances/
**/_build/
**/build/
poetry.lock
4 changes: 3 additions & 1 deletion xbridge/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ def _convert_tables(self, temp_dir_path, mapping_dict):
if dim_name and not datapoints.empty:
datapoints[open_key] = dim_name + ":" + datapoints[open_key].astype(str)
datapoints = datapoints.sort_values(by=["datapoint"], ascending=True)
output_path_table = temp_dir_path / table.url
output_path_table = temp_dir_path / table.url
if datapoints.empty:
continue
datapoints.to_csv(output_path_table, index=False)

def _convert_filing_indicator(self, temp_dir_path):
Expand Down

0 comments on commit 9d599f1

Please sign in to comment.