This question is somewhat related to this one.
I am attempting to validate the data for a new impact assessment method, prior to writing the method. The method data contains characterization factors for both global and regional interventions. I created a small toy example here.
I am trying to validate the data as follows:
my_method = Method(('my method', 'a method', 'oh what a method'))
method_data = [
(('biosphere', 'global intervention'),1, u'GLO'),
(('biosphere', 'regional intervention'),1, u'REG')
]
my_method.validate(method_data)
The following error occurs:
MultipleInvalid: expected a list @ data[0]
No errors occur when attempting the write the method without validation. The error can be avoided by storing data in lists rather than tuples.
Is this a bug in the package or am I doing something wrong?
Furthermore, I am testing specifying regional identifiers for each characterization factors (as shown in the data above). This does not seem required, but when specifying an identifier other than u'GLO'
the impacts are not accounted for in subsequent lca calculations. I test this in my example notebook.
Should one avoid specifying regional identifiers for characterization factors?