Comments (7)
@russelljjarvis
Are you just noting that you corrected it, or do you want me to correct it?
from neuronunit.
Both. I corrected it my branch and remote, but it may still exist in scidash.
from neuronunit.
@russelljjarvis
i.e. the fixed version is in the russell_dev branch but not the dev branch at scidash?
from neuronunit.
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.
@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.
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.
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)
- Use Allen Features to optimize HOT 11
- newer test class for passive elephant tests breaks parallelism in dask, in the case of brian2 backend. HOT 4
- Documenting all Score edge cases that break optimization gradients HOT 3
- A document Notice to debug set PARALLEL_CONFIDENT=False
- Test Suites should be dictionaries not lists. HOT 7
- Use standardized units throughout
- Sciunit judge no longer works with static Models. How can I opt of using the ProtocolToFeaturesTest? HOT 8
- Druckmann Tests are not proper tests
- Confirm that NeuronUnits jNeuromLB backend really can be regarded as a ground truth. HOT 7
- NU test.protocol should be flat or more predictable to traverse.
- Major NU interface redesigns could come with interface diagrams.
- documentation chapters of NeuronUnit should be upgraded to Unit Tests via pytest-ipynb
- 2.5 different code locations that determine sim_length need to be collapsed into one.
- Duplicated content injected current test protocol/parameter
- Installation Fails on Windows HOT 1
- create branch optimization based on dev, that I can merge pull requests into. HOT 2
- Migrate away from travis HOT 2
- Merge error in backend __init__.py HOT 2
- Missing closing ' HOT 1
- Relax constraints on install requirements HOT 1
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 neuronunit.