You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From this stackoverflow post. If I try to modify the characterization matrix via an interface I get an IconsistentGlobalIndex error when I try to calculate the lca score.
importbw2dataasbdimportbw_processingasbwpimportnumpyasnpimportbw2calcasbcbd.projects.set_current("bw25")
mobility_db=bd.Database('Mobility example')
combustion_car_driving=mobility_db.get(name='Driving an combustion car')
co2=mobility_db.get(name='CO2')
# create datapackage with alternative values for the GWP of CO2indices_array=np.array([(co2.id,
bd.geomapping[bd.config.global_location])],
dtype=bwp.INDICES_DTYPE)
values_array=np.array([list(range(1,10))])
dp_c=bwp.create_datapackage(sequential=True)
dp_c.add_dynamic_array(
matrix='characterization_matrix',
indices_array=indices_array,
interface=values_array,
)
If I set the global_index using the default global_location then it works. But this is not very intuitive. I guess this should be done by default. I am not sure where it the right place.
From this stackoverflow post. If I try to modify the characterization matrix via an interface I get an IconsistentGlobalIndex error when I try to calculate the lca score.
If I set the
global_index
using the default global_location then it works. But this is not very intuitive. I guess this should be done by default. I am not sure where it the right place.The text was updated successfully, but these errors were encountered: