brightway-lca / brightway2-data

Tools for the management of inventory databases and impact assessment methods. Part of the Brightway LCA framework.
https://docs.brightway.dev/
BSD 3-Clause "New" or "Revised" License
11 stars 24 forks source link

projects.report() - path problem #133

Closed Stew-McD closed 1 year ago

Stew-McD commented 1 year ago

bd.projects.report()

gives: TypeError: unsupported operand type(s) for /: 'str' and 'str'

this is from line 389:

sum(os.path.getsize(root / name) for name in files)

it works if I change to:

sum(os.path.getsize(os.path.join(root, name)) for name in files)

or

sum(os.path.getsize(Path(root).joinpath(Path(name))) for name in files)


bw2data.version = (4, 0, 'DEV18') OS = Ubuntu 22.10

cmutel commented 1 year ago

Thanks Stewart. I am marking this as wont fix, as we will soon be integrating a completely new projects library and removing this code.