Comments (4)
I also have the same problem using this function
from allensdk.
And when I pass a list, it wants a number:
TypeError Traceback (most recent call last)
in ()
----> 1 mcc.get_structure_mask([315.])
/home/kameron/local/anaconda/lib/python2.7/site-packages/allensdk-0.10.1-py2.7.egg/allensdk/core/mouse_connectivity_cache.pyc in get_structure_mask(self, structure_id, file_name, annotation_file_name)
597 """
598
--> 599 file_name = self.get_cache_path(file_name, self.STRUCTURE_MASK_KEY, structure_id)
600
601 if os.path.exists(file_name):
/home/kameron/local/anaconda/lib/python2.7/site-packages/allensdk-0.10.1-py2.7.egg/allensdk/api/cache.pyc in get_cache_path(self, file_name, manifest_key, *args)
61 return file_name
62 elif self.manifest:
---> 63 return self.manifest.get_path(manifest_key, *args)
64
65 return None
/home/kameron/local/anaconda/lib/python2.7/site-packages/allensdk-0.10.1-py2.7.egg/allensdk/config/manifest.pyc in get_path(self, path_key, *args)
213
214 if args != None and len(args) != 0:
--> 215 path = path_spec % args
216 else:
217 path = path_spec
TypeError: %d format: a number is required, not list
from allensdk.
Nile and I were able to fix this by changing the get_structure_mask function in one line:
structure_ids = ont.get_descendant_ids([structure_id])
from allensdk.
Thanks! That change is in 0.11.0.
from allensdk.
Related Issues (20)
- Add 'quality' column to VBN units metadata table HOT 1
- how can I get the brain surface dorsal-ventral ccf coordinates for different probes?
- Issue with statsmodels in allensdk install HOT 1
- `hdmf` requirement is not compatible with latest `pynwb`
- How to access Neuropixels session end time?
- KeyError: 'sweeps_by_type'
- Simultaneously importing `ecephys_project_cache` and `behavior_ecephys_session` breaks nwb file reading HOT 3
- incorrect task parameter value in session metadata for TRAINING_0 and TRAINING_1 HOT 1
- Cannot load both VisualCoding and VisualBehavior caches in the same Jupyter Notebook HOT 1
- DriftingGratings.get_response() does not explain what the ncells+1'th response corresponds to
- Error: pg_config executable not found. - Installing on Compute Canada HOT 2
- Update conda-forge package HOT 2
- Missing channels in LFP data, also is the LFP pre-scaled? HOT 1
- Broken .get_performance_metrics() method in VisualBehaviorNeuropixelsProjectCache.from_s3_cache(cache_dir=neuropixel_dataset_behavior) HOT 2
- The link to the latest source documentation is broken (google chrome, windows 11) HOT 1
- Does the Allen_sdk require openssl to be 3.1.4 or can it use a newer version as well?
- Creating drifting gratings (frame by frame)
- FIlenote FOUnd error for LFP data HOT 2
- Unable to download cache files
- Retrieving Shuffled Frame IDs
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 allensdk.