Comments (4)
Original comment by Andrew Tritt (Bitbucket: ajtritt, GitHub: ajtritt):
@nicholashcain Are you trying to add an attribute to the 'data' dataset? Or, are you trying to add an attribute to your new type? If you are trying to do the former you should do something like this:
nwb_ds = NWBDatasetSpec('a spec to add an attribute to TimeSeries.data',
name='data',
attributes=[
NWBAttributeSpec('gid', 'int', 'the group_id for the neuron')
])
from pynwb.
Original comment by [email protected] (Bitbucket: nicholashcain, GitHub: Unknown):
OK, I tried your suggestion, and hit a different snag:
https://gist.github.com/nicain/9f03154823678fc74fed674913fb08ee
Before I make an issue, can you confirm that I am not doing something silly? "data" was defined on line 30. Just hit me with a comment and Ill make and issue if I'm not just being clumsy. Also @ajtritt, did we come across a version of this at the hackathon?
from pynwb.
Original comment by [email protected] (Bitbucket: nicholashcain, GitHub: Unknown):
Thanks Oliver, Im following through on your suggestion now.
from pynwb.
Original comment by Oliver Ruebel (Bitbucket: oruebel, GitHub: oruebel):
In your script, please replace NWBDatasetSpec with NWBGroupSpec. You are creating an extension that inherits from TimeSeries which is a specification of a group, not a dataset. I gave it a quick test, and once I replace NWBDatasetSpec with NWBGroupSpec, it works.
I'll add an issue that we need to add a check for this problem when creating the spec.
from pynwb.
Related Issues (20)
- [Documentation]: Improve docs around setting "name" for a neurodata_type
- [Feature]: Warn on read rather than error HOT 1
- `electrodes` column in `misc.Units.add_unit()` doesn't adhere to nwb-schema HOT 1
- [Bug]: OSError: [Errno 5] Unable to synchronously open file HOT 2
- [Documentation]: Streaming NWB files - recommend using remfile as the preferred method HOT 10
- [Bug]: `get_data_in_units` fails for ElectricalSeries with `channel_conversion`
- [Feature]: Add new.processing.ImageSementation.PlaneSegmentation remove feature (function) HOT 1
- [Bug]: `TypeError: `dumps_kwargs` keyword arguments are no longer supported.` when running tests on pynwb 2.5.0 HOT 4
- [Bug]: One more test error for `=pynwb-2.5.0` — `AssertionError: UserWarning not triggered` HOT 1
- [Feature]: a way to disable all tests requiring dynamic downloads OR a static archive for test data HOT 4
- [Feature]: Migrate to only use pytest HOT 1
- [Feature]: Test read of dandisets systematically in CI
- [Feature]: Change pynwb.validate(io=...) to match pynwb.validate(paths=[path])
- [Umbrella Feature]: Upgrade validation methods
- [Feature]: load nwb file without initial preload step HOT 3
- [Feature]: Notify user if python package for extension exists and is recommended
- [Bug]: Invalidation of typical session ID HOT 2
- Run streaming benchmarks over time
- [Documentation]: claim of fsspec out-of-the-box faster than ros3 should be backed by some evidence HOT 1
- [Bug]: 2-photon series movie not appearing in file. HOT 15
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 pynwb.