Code Monkey home page Code Monkey logo

Comments (4)

ajtritt avatar ajtritt commented on May 20, 2024

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.

ajtritt avatar ajtritt commented on May 20, 2024

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.

ajtritt avatar ajtritt commented on May 20, 2024

Original comment by [email protected] (Bitbucket: nicholashcain, GitHub: Unknown):


Thanks Oliver, Im following through on your suggestion now.

from pynwb.

ajtritt avatar ajtritt commented on May 20, 2024

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)

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.