Skip to content

Commit

Permalink
Adapt the script to the new B-Fabric representation of empty values i…
Browse files Browse the repository at this point in the history
…n datasets

Package version 0.13.2
  • Loading branch information
Maria dErrico authored and mariaderrico committed Jun 7, 2023
1 parent f4682f7 commit 38b3743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bfabric/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.13.1"
__version__ = "0.13.2"
2 changes: 1 addition & 1 deletion bfabric/scripts/bfabric_save_dataset2csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def dataset2csv(ds, outputfile, sep=","):
for i in ds.item:
# sort values based on the columns order in attributeposition
for x in i.field:
if not hasattr(x,"value"):
if not hasattr(x,"value") or x.value == None:
x.value = ''
fields = [(x.value, x.attributeposition) for x in i.field]
fields.sort(key=lambda y: int(y[1]))
Expand Down

0 comments on commit 38b3743

Please sign in to comment.