Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G geoarray
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Daniel Scheffler
  • geoarray
  • Issues
  • #24
Closed
Open
Issue created May 09, 2019 by Daniel Scheffler@danschefOwner

TypeError: function takes exactly 1 argument (0 given)

gA = GeoArray(path_2d_image)
gA[row, col]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-26-21f390dd2654> in <module>
      1 gA = GeoArray(path_cmap)
----> 2 gA[row, col]

~/scheffler/python_deployed/geoarray/geoarray/baseclasses.py in __getitem__(self, given)
    603         else:
    604             getitem_params = [given] if isinstance(given, slice) else given
--> 605             return self.from_path(self.arg, getitem_params)
    606 
    607     def __setitem__(self, idx, array2set):

~/scheffler/python_deployed/geoarray/geoarray/baseclasses.py in from_path(self, path, getitem_params)
    907                 del ds
    908 
--> 909             out_arr = _ensure_np_shape_consistency_3D_2D(out_arr)
    910 
    911             # only set self.arr if the whole cube has been read (in order to avoid sudden shape changes)

~/scheffler/python_deployed/geoarray/geoarray/baseclasses.py in _ensure_np_shape_consistency_3D_2D(arr)
    871                         outshape.append(sh)
    872 
--> 873                 arr = arr.reshape(*outshape)
    874 
    875             return arr

TypeError: function takes exactly 1 argument (0 given
Assignee
Assign to
Time tracking