Giter Site home page Giter Site logo

Comments (4)

kamdh avatar kamdh commented on May 22, 2024

I also have the same problem using this function

from allensdk.

kamdh avatar kamdh commented on May 22, 2024

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.

kamdh avatar kamdh commented on May 22, 2024

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.

dyf avatar dyf commented on May 22, 2024

Thanks! That change is in 0.11.0.

from allensdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.