-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement LFPy backend #385
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setup.py needs to be updated to include LFPy.
Also we will need tests to maintain the test coverage above 90%.
It was not added on purpose to make the LFPy dependency weak. All LFPy imports are local so one can still run normal BPO without having LFPy installed |
LFP needs to be in an extra require then:
|
yeah that could work! |
So it seems LFPy requires mpi4py? Installation seems to fail during the tests. Can we disable mpi4py in LFPy, since I assume we don't need it? |
Unfortunately it's a requirement: https://github.com/LFPy/LFPy/blob/master/requirements.txt |
Could we ask to get it removed from the hard requirements (or to make an extra that doesn't require it?). I'm a bit reluctant to make mpi4py a requirement for the bpopt tests if it is not required. |
|
@alejoe91 If you agree, I will rollback the changes to parameters,py and parameterscalers.py. |
@alejoe91 thinking about it more, it might be useful for someone else some day. I am not sure what should be done. |
bluepyopt/ephys/protocols.py
Outdated
"""Instantiate""" | ||
|
||
for stimulus in self.stimuli: | ||
stimulus.instantiate(sim=sim, icell=icell) | ||
if isinstance(stimulus, LFPStimulus): | ||
stimulus.instantiate(lfpy_cell=cell_model.lfpy_cell) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be sim, lfpy_cell
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AurelienJaquier can you take care of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AurelienJaquier can you take care of it?
actually I'm on it ;)
* turn print statements in eFELFeature into logger.info * change docstring description of exp_mean and exp_std in extraFELFeature * remove MEA dependency in setup * use custom lfpy from fork in setup * use lfpy from extras in tox * add test function for masked_cosine_distance
Small changes
Hi @alejoe91, @wvangeit; as |
There are just some formatting issues at the moment. |
I think the formatting issues have been solved in the |
…lfpy Conflicts: bluepyopt/ephys/parameterscalers.py
Codecov Report
@@ Coverage Diff @@
## master #385 +/- ##
==========================================
- Coverage 89.53% 88.84% -0.70%
==========================================
Files 34 35 +1
Lines 2361 2977 +616
==========================================
+ Hits 2114 2645 +531
- Misses 247 332 +85
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Should we merge this, @alejoe91 @DrTaDa @AurelienJaquier ? |
Yes ! |
LFPy-related changes
Other changes
param_dependancies
in parameters**morhp_modifiers_kwargs
to MorphologyNrnSegmentSectionDistanceScaler
(base class also forNrnSegmentSomaDistanceScaler
)