Open michaelweinold opened 3 weeks ago
The issue is with the parameters.recalculate()
function in combination with the overwrite=True
option of the bi.add_example_database()
function not clearing/deleting parameters.
@cmutel, since I did not find a function to clear/delete all parameters, how about this:
bd.parameters.new_project_parameters(data=[])
as part of the overwrite=True
functionality?
I ran into the same issue, though I'm not sure that #272 resolves this.
That is, if starting from scratch, 'Mobility example' is not in databases, and thus we do not enter the else
statement in line 451.
However, I still get the same error message.
Moreover, I ran bd.parameters.new_project_parameters(data=[])
in my main script before running bi.add_example_database()
, and this did not resolve the error message.
Lastly, I ran bi.add_example_database(overwrite=False)
and this also gave the same error message.
I'm using version '0.9.DEV37' on Windows 11 Business.
we may need to specify that bw2data needs bw2parameters>=1.1.0
bw2parameters is 1.1.0 on my machine
with bw2data 4.0.dev51 , bw2parameters 1.1.0 and bw2io 0.9.dev30 it is working in my machine.. maybe there breaking changes are in bw2io
In a fresh virtual environment with
And the simple command:
I get:
Interestingly, this seems to work find on Brightway Live with the same package versions.