Code Monkey home page Code Monkey logo

Comments (7)

rgerkin avatar rgerkin commented on July 29, 2024

@russelljjarvis
Are you just noting that you corrected it, or do you want me to correct it?

from neuronunit.

russelljjarvis avatar russelljjarvis commented on July 29, 2024

Both. I corrected it my branch and remote, but it may still exist in scidash.

from neuronunit.

rgerkin avatar rgerkin commented on July 29, 2024

@russelljjarvis
i.e. the fixed version is in the russell_dev branch but not the dev branch at scidash?

from neuronunit.

russelljjarvis avatar russelljjarvis commented on July 29, 2024

Oh I see you are trying to get a reference to where it is fixed in code, where as I have only given reference to where it is broken.
To be clear its broken on scidash /dev, and master:
https://github.com/scidash/neuronunit/blob/dev/neuronunit/tests/__init__.py#L215
https://github.com/scidash/neuronunit/blob/master/neuronunit/tests/__init__.py#L180

Its only reverted to my old fix in the following remote as of presently:

https://github.com/russelljjarvis/neuronunit/blob/dev/neuronunit/tests/__init__.py#L215

from neuronunit.

rgerkin avatar rgerkin commented on July 29, 2024

@russelljjarvis I looked more closely at this and there are some other bugs. For example, it makes no sense that y is being multiplied by pq.ms because y is a voltage.

So I've developed a recipe for making sure that the time constant is calculated correctly, shown here. If you replace the methods in TestPulseTest with the corresponding methods in Dummy then it should work. Try it out and see if it gives sensible results for your application.

If it does, then I can go back and eliminate Dummy from that notebook and just instantiate TimeConstantTest instead, and the notebook will serve as a unit test for the functionality of TimeConstantTest.

from neuronunit.

russelljjarvis avatar russelljjarvis commented on July 29, 2024

Sounds good. Some of my fixes are based on satisfying syntax requirements without much understanding of the purpose of the function and what it is trying to solve. So my first step will probably involve using ipython notebook convert, to wrangle the json into regular ascii encoded .py file. I like it that there is a unit test directory now.

from neuronunit.

rgerkin avatar rgerkin commented on July 29, 2024

I think this is not a bug. However, the code has also been substantially revised and I don't think this problem still exists, at least not in its current form. You can see that there is a version of this which is working with correct units, which I documented as part of 02d0a37.

from neuronunit.

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.