Skip to content

Commit

Permalink
Making name shortening in MFP name generation configurable in `SimaPr…
Browse files Browse the repository at this point in the history
…oBlockCSVImporter`
  • Loading branch information
cmutel committed Dec 16, 2024
1 parent aea438e commit 1a00464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bw2io/importers/simapro_block_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ def __init__(
database_name: Optional[str] = None,
biosphere_database_name: Optional[str] = None,
separate_products: bool = True,
shorten_names: bool = True,
):
spcsv = SimaProCSV(path_or_stream=path_or_stream, database_name=database_name)
data = spcsv.to_brightway(separate_products=separate_products)
data = spcsv.to_brightway(separate_products=separate_products, shorten_names=shorten_names)

self.db_name = spcsv.database_name
self.default_biosphere_database_name = biosphere_database_name
Expand Down

0 comments on commit 1a00464

Please sign in to comment.