Skip to content
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

Error with pulling down on connectivity experiment #23

Closed
lydiang opened this issue Sep 1, 2016 · 1 comment
Closed

Error with pulling down on connectivity experiment #23

lydiang opened this issue Sep 1, 2016 · 1 comment
Assignees
Labels

Comments

@lydiang
Copy link

lydiang commented Sep 1, 2016

Error report from one of the student at Dynamic Brain Workshop

Student reports that script work for all other experiment except 278181912

FYI. i'm getting an error when i try to pull down this experiment.

pdf, pd_info = mcc.get_projection_density(278181912)


ValueError Traceback (most recent call last)
in ()
----> 1 pdf, pd_info = mcc.get_projection_density(cre_ids[i])

/Users/evadyer/anaconda/envs/py27/lib/python2.7/site-packages/allensdk/core/mouse_connectivity_cache.pyc in get_projection_density(self, experiment_id, file_name)
176 file_name, experiment_id, self.resolution)
177
--> 178 return nrrd.read(file_name)
179
180 def get_injection_density(self, experiment_id, file_name=None):

/Users/evadyer/anaconda/envs/py27/lib/python2.7/site-packages/nrrd.pyc in read(filename)
390 with open(filename,'rb') as filehandle:
391 header = read_header(filehandle)
--> 392 data = read_data(header, filehandle, filename)
393 return (data, header)
394

/Users/evadyer/anaconda/envs/py27/lib/python2.7/site-packages/nrrd.pyc in read_data(fields, filehandle, filename, seek_past_header)
280 decompressed_data += decompobj.decompress(chunk)
281 # byteskip applies to the decompressed byte stream
--> 282 data = np.fromstring(decompressed_data[byteskip:], dtype)
283

@tfliss tfliss self-assigned this Sep 1, 2016
@dyf dyf added the bug label Sep 7, 2016
@dyf
Copy link
Contributor

dyf commented Oct 26, 2016

This was due to a partial file download. This is being tracked separately in issue 28.

@dyf dyf closed this as completed Oct 26, 2016
tfliss pushed a commit that referenced this issue Jun 13, 2017
* commit '60121c5aae995d9ae344e0081e875c43607d58da':
  temporarily disabling json test until better replacement test found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants