-
Notifications
You must be signed in to change notification settings - Fork 50
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
Issue with running the example spike inference code #219
Comments
Do these changes work for you? # Jointly estimate gamma on traces concatenated together
[joint_gamma_est, joint_sigma_est] = spikes.estimate_parameters(
- FLUORS.reshape(FLUORS.size), mode="correct")
+ FLUORS, mode="correct")
for x in range(NTRACE):
# Estimate noise and decay parameters
[gamma_est, sigma_est] = spikes.estimate_parameters(
- FLUORS[x, ], mode="correct", gamma=joint_gamma_est)
+ [FLUORS[x]], mode="correct", gamma=joint_gamma_est)
print("tau = {tau}, sigma = {sigma}".format(
tau=DELTAT / (1 - gamma_est), sigma=sigma_est)) |
Thanks @pkaifosh That did solve the issue I raised. However, I now have a different problem, associated with MOSEK. I had installed it after I had the previous issues. So I don't know if this is a new issue; it likely is. Line 67 now gives the following error that looks like some missing setting for MOSEK based on their error codes. Do you know how I can fix it? Thanks again!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey guys,
I was trying to get the spike inference example working and it was giving me a bunch of errors. The version as is gave me a
TypeError: object of type 'numpy.float64' has no len()
. This seemed to be because the code was expecting a 2d array here. I tried putting the argument inside a list and that error went away but then a bunch of other errors popped up. I didn't want to post all the errors here since it is easily reproducible. I tried to work through them all but the final output I got made no sense as I just got no spikes detected. Could you please help me with it?Thanks a lot!
Vijay
The text was updated successfully, but these errors were encountered: