Comments (8)
In GitLab by @manuelma on Jan 3, 2019, 20:07
I believe this is intentional, but of course if there's doubt we should open it for discussion. What do you think @juha_k @DillonJ should we allow the same object to appear twice in one relationship?
from spine-database-api.
In GitLab by @PvPer on Jan 4, 2019, 08:32
So for me the reason I wanted to insert a relationship with one object twice was when i had a unit water_turbine
with input water
and output water
and electricity
. In this case I want to constraint the input water
to be the same as the output water
so I needed to use the unit__commodity_group_in__commodity_group_out
where the commodity_group
was the same object.
I don't really see why we should forbid to use the same object twice, what's the reasoning behind that?
from spine-database-api.
In GitLab by @manuelma on Jan 4, 2019, 13:17
Thanks @PvPer I believe your use case makes a lot of sense. I had decided to forbid that just to help the user not do something stupid. We can allow it if everybody is on board.
from spine-database-api.
In GitLab by @manuelma on Jan 24, 2019, 16:10
The more I think about it, the more it makes sense to release that constraint (i.e., allow the same object to appear more than once in one relationship) Any thoughts @spine ?
from spine-database-api.
In GitLab by @mihlema on Jan 24, 2019, 16:27
I do agree @manuelma
from spine-database-api.
In GitLab by @jkiviluo on Jan 25, 2019, 10:11
I also think it should be allowed (and is needed in some cases).
from spine-database-api.
In GitLab by @manuelma on Jan 25, 2019, 21:40
Check removed in last dev.
from spine-database-api.
In GitLab by @manuelma on Jan 25, 2019, 21:40
closed
from spine-database-api.
Related Issues (20)
- Restablish unique key 'name' for entity_class
- Parameter values as Apache Arrow objects HOT 4
- Can't trust legacy tool/feature/method for compatibility transformations
- Write type information for simple types as well HOT 7
- Rollback purge HOT 1
- Add Toolbox tests to GitHub actions? HOT 3
- Parameter value format documentation is missing index_name
- Wrong results after changing a filter
- Make sure TempId travel safely across the socket (DB server)
- The tool filter only works with 1 tool activated
- No entity can pass its tool filter when there are multiple `tool_feature_method`s HOT 1
- Fix broken example in parameter_value API documentation
- Guidelines on what to import in __init__.py
- Improve parsing performance by accepting only ISO 8601 time stamps HOT 2
- Check that CHANGELOG.md is up-to-date for 0.8-dev HOT 1
- Compatibility transformation should keep working after the first time HOT 1
- Alternative filter does not filter by entity alternatives
- Trying to get a parameter value that does not exist Tracebacks
- Mention the difference between entity_byname and element_name_list in documentation HOT 2
- Support EPS Value in GDX Exporter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spine-database-api.