-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using mappings with multiple input datasets. #14
Comments
With respect to the handling of multiple input datasets, in addition to constraint mapping we also need to think about metadata handling (see #31). |
@captainceramic I've posted two new workflows:
I think the fundamental problem is the handling of |
@captainceramic Thinking about this more, there are essentially two different use cases:
Perhaps in the wrapper for any particular module the user should have to specify whether it is an intra-model or inter-model module? (at the moment those test workflows I produced were inter-model modules - I wanted to subtract one model from another to get the difference - we probably need an example of an intra-model) |
@DamienIrving I've had a look at these, and can reproduce your problems. As written, your first workflow is behaving wrong, but as I would expect. What is happening is that the There is nothing to tell the system that you want to combine The second workflow is showing a bug, but it is more subtle. When running the workflow I get this output that looks like:
etc... The system seems to recognize that there are two inputs for each output, but then it doesn't know whether the value of The way that this has been dealt with in earlier versions of the software is by 'mapping' or 'renaming' constraints from the input Your other idea is quite promising - combining constraints on the input into a single constraint on the output. I think that is worth following up. In both these cases, any VT module wrapper that combines multiple models needs to overwrite the |
@captainceramic I think combining constraints from the input into a single constraint on the output is definitely the way to go. This kind of relates to my other suggestion about designating modules that take more than one input file as
|
As written at the moment, the default is that any If the As for the At the moment, my preference would be to add a new keyword argument to the
Meaning that the output value of model should be constructed from a combination of the values of 'model' from the input datasets. The same with the institute. I will start writing up some tests, but I think I might need some help with this. |
@captainceramic I like the look of that solution with the new keyword argument to the If I can be of any assistance with this just say the word. I'd be happy to drop by your office again if need be (tomorrow or Wed or Fri next week would work), or we could chat over the phone or gitter? |
I have pushed some new code to the devel branch to start fixing this problem - at the moment, the I have also committed a test for the |
|
In a situation when you have multiple input datasets (which comes up when calculating the change between two time periods) the mapping of input constraint names to output constraint names is not working.
For example, if both input datasets have a constraint 'date', you might want to use the 'date' from the first input as 'start_date' and the 'date' from the second should be called 'end_date'.
The text was updated successfully, but these errors were encountered: