Comments (4)
yea I think a general solution would be:
$import:
ref: path/to/file#/
include:
- connectivity
- placement/B
exclude:
- connectivity/A
right? Where you have generic fine grained access to the nested keys you want to include and exclude?
from bsb-core.
there's a keys
kind of thing for $import
already, which can serve as a workaround. If you could source dive and clarify that mechanism here? :D should be:
$import:
ref: ...
keys: A, B, C
and then only the A, B and C key will be copied over.
You could rename that to include(_keys)
, exclude(_keys)
from bsb-core.
I should have put more description: if I want to import every key from a file but one, then I have to specify all the other key.
For instance, if I want to import every connectivity strategies from the connectivity
field but the key A
, I will have to list all the other keys from the connectivity
field.
connectivity:
$import:
ref: path/to/file#/connectivity
values:
- B
- C
- D
- ...
Now it does not matter if I want to override A
: I can import it and have it modified by a local field:
connectivity:
A:
...
$import:
ref: path/to/file#/
values:
- connectivity
But if I do not want A anymore, I do not think there is an alternative. With the exclude
field:
$import:
ref: path/to/file#/
values:
- connectivity
exclude:
- connectivity/A
from bsb-core.
I think the behaviour should be:
include
:- not given: include everything
- given: include only the given
include
keys.
exclude
: remove these keys from what has beeninclude
d
from bsb-core.
Related Issues (20)
- Formalize linking between `ConnectionStrategy` output, and `ConnectivitySet` naming.
- Remove `_queued_jobs`
- Node name not working in `RequirementError` during `Configuration.default`
- ref in config added to resolved scaffold is not casted. HOT 1
- Add compilation test that uses `depends_on`
- Swap axes for morphologies points
- assert_samelen does not properly check sizes
- H5py issue during simulation HOT 1
- Reference and imports in configuration files
- Configuration Packages are not JSON serializable HOT 2
- Add recursion to Configuration File parsing HOT 1
- Add documentation to files, code and package dependencies to BSB
- Merging dictionaries breaks referrencing.
- Loadting positions from ConnectivitySet HOT 1
- SSL error unittest
- Obscure documentation on hooks HOT 1
- Conventional commits: Automated changelog and semantic versioning HOT 5
- Create a FixedOutdegree strategy for connectivity
- Long lived pool cache
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 bsb-core.