Comments (3)
@russelljjarvis
This and some of the code in the few dozen lines above it are still model specific (referring to LEMS_2007One and such). Can this section be made model-independent by having it determine the name of that directory from some other attribute of the model (like the orig_lems_file_path, for example).
from neuronunit.
The problem in this specific case is that the path self.orig_lems_file_path
looks like:
/neuronunit/tests/NeuroML2/LEMS_2007One.xml/x86_64
but we actually just want:
/neuronunit/tests/NeuroML2/x86_64
Maybe instead of using the commands stated below, I can find a command that simply takes an absolute file path and returns just the directory that contains that file, then /x86_64
should be appended to this path.
This is generalizable for different NEURON models generated from NeuroML, xml file paths, but checking for x86_64
obviously won't be helpful for pyNN, NEST, or GENESIS etc.
sort_file_path, _ = self.orig_lems_file_path.split("/LEMS_2007One")
sort_file_path, _ = os.path.splitext(sort_file_path)
Alternatively we could check for the x86_64
subdirectory by recursively searching, but I think the above option is better. I
/neuronunit/tests/NeuroML2/LEMS_2007One.xml/x86_64
from neuronunit.
Just ignore this thread. I think some of my confusion comes from a git merge I completed. There is old code that you wrote that used to find the directory that contains the file, but it got buried somehow. I will check older commits.
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.