Closed PascalLesage closed 6 years ago
Problem definition not correct: 'sequential' should have been passed in presample package, not LCA object. In fact, a seed at the level of the LCA object is not relevant. That said, there is still an issue with use of 'sequential' in LCA, but this is another issue.
The following did not yield expected results:
excs = [*act.technosphere()]
sample_array = np.eye(len(excs))
indices = [(exc['input'], exc['output'], 'technosphere') for exc in excs]
_, fp = create_presample_matrix(sample_array, indices, 'technosphere')
lca = LCA({act:1}, presamples=[fp], seed='sequential')
lca.lci()
#expect first exc to be==1, others 0: not the caselca.lci()
#expect second exc to be==1, others 0: not the case ... Samples are in fact returned in random order.