brightway-lca / brightway2-io

Importing and exporting for the Brightway LCA framework
BSD 3-Clause "New" or "Revised" License
26 stars 41 forks source link

don't remove \x7f but convert to newline #265

Closed ccomb closed 3 months ago

ccomb commented 3 months ago

The comments in a simapro csv files contain several sentences separated with \x7f This character is removed during import and the comment are not well separated. I guess this char can be converted to a newline. This allows to then convert it easily to a <br/> in an HTML output.

As an example here is a comment :

Comment: Included processes: The inventory includes : undefined Cut-off rule, exclusion : undefined Remark: Functional unit:Produce 268 t of kiwifruits during 19 years on 1 Ha Academic publications and agricultural publications ILCD – Overall data quality : Technological representativeness (TeR) = undefined Geographical representativeness (GR) = undefined

There is no wy to separate the elements. By keeping a separator it can then be displayed as :

Comment:
Included processes: 
The inventory includes : undefined
Cut-off rule, exclusion : undefined 
Remark: 
Functional unit:Produce 268 t of kiwifruits during 19 years on 1 Ha 
Academic publications and agricultural publications ILCD – 
Overall data quality : Technological representativeness (TeR) = undefined 
Geographical representativeness (GR) = undefined
cmutel commented 3 months ago

SimaPro extraction has shifted to https://github.com/brightway-lca/bw_simapro_csv, which treats \x7f correctly.