Code Monkey home page Code Monkey logo

Comments (13)

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @DillonJ on Mar 12, 2019, 13:06

Yes, this appears to be needed when trying to add multiple results for the same object in add_var_to_result() to_spine.jl as in spine-tools/SpineOpt.jl#91

Is this for @manuelma ?

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 12, 2019, 13:16

I can work on that.

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 13, 2019, 23:28

I'm now changing the default behaviour of all add_ and update_ methods to 'let pass'. If you want integrity errors to be raised you need to pass the argument strict=True (default is False).

Will commit soon.

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 13, 2019, 23:36

mentioned in commit toolbox@e7c6d271589e11f14141fce62d390c3b0e0a4088

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 13, 2019, 23:37

mentioned in commit 46cd198

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 14, 2019, 20:18

mentioned in commit b205a72

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 14, 2019, 22:24

mentioned in commit cae60c3

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 14, 2019, 22:45

mentioned in commit b5ebbe4

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 14, 2019, 22:47

mentioned in commit toolbox@ddaa42691d8656a375545ff9498fdf9ab7b3c462

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 14, 2019, 23:08

This was advanced in those last commits. Finally I went with a keyword argument approach. Now you can pass the argument return_dups=True to the add_ methods, which combined with strict=False results in the method returning also items that couldn't be inserted because of duplication issues.

Seems complex, but I think it really isn't and allows for great flexibility.

Thoughts?

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 14, 2019, 23:08

assigned to @manuelma

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 25, 2019, 12:44

This is implemented so I'm closing this now. Please reopen if needed.

from spine-database-api.

spine-o-bot avatar spine-o-bot commented on July 1, 2024

In GitLab by @manuelma on Mar 25, 2019, 12:44

closed

from spine-database-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.