Replies: 2 comments 3 replies
-
I took the liberty of converting this to a discussion as it looks more like that, not an issue. |
Beta Was this translation helpful? Give feedback.
-
I would suggest not to mix the two ways of specifying filters. The reason is, if you specify the filters argument to using_spinedb, all filters will be cleared afterwards (including those specified in the arrow in Spine Toolbox). This is so each call to using_spinedb leaves the DB unfiltered, so the next call can apply their own filters. Ideally, each call to using_spinedb should leave the DB in the state it found it (say, with arrow filters from Spine Toolbox) but that's not implemented. |
Beta Was this translation helpful? Give feedback.
-
I wonder could someone clarify the behaviour of Julia and Python tools that directly access SpineDBs using SpineDB_api
If I specify a scenario filter in an arrow from a SpineDB to a Julia tool for example, and then the Julia tool uses SpineInterface and specifies the
filters
argument in the call tousing_spinedb()
are both filters applied? In what order?My understanding is that the url argument the tool sees has the filter embedded... so SpineInterface sees a url with a filter embedded and also an explicit "filters" argument. What does it do?
What are the rules?
If I specify a scenario filter in the arrow to the tool and don't specify the filters argument in the call to
using_spinedb()
I presume the arrow filter is applied as it's in the url?If I specify no scenario filter in the arrow but do supply the filters argument, I presume this filter is applied?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions