Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
G
geoarray
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Daniel Scheffler
  • geoarray
  • Issues
  • #24

Closed
Open
Created May 09, 2019 by Daniel Scheffler@danschefMaintainer

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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None