Open PascalLesage opened 6 years ago
Just to clarify - you would want the list of resources, but are not asking for us to determine which resources could (potentially) overwrite previous ones, right?
Also, I think you want extend instead of append :)
Just to clarify - you would want the list of resources, but are not asking for us to determine which resources could (potentially) overwrite previous ones, right?
Indeed. The idea is to pass the list of presamples filepaths in the correct order to e.g. MonteCarloLCA instantiation.
Multiple presample packages can be passed to e.g. MonteCarloLCA If an element (a parameter, a matrix index) is part of more than one package, the value in the package that is later in the list is the one that is used. Knowing this, there should be a way to generate a list of presample resources from campaign that is ordered thus:
Currently, Campaign.ancestors will list ancestors in the reverse of the desired order (from direct parent to furthest ancestor). It also does not list presample resources, just campaigns.
The solution should be a class method that looks something like this:
@cmutel I tag you in case this is already implemented somewhere and I just can't find it.