Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • scenes scenes
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 9
    • Issues 9
    • 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
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

En prévision de l'arrivée de la forge institutionnelle INRAE, nous vous invitons à créer vos nouveaux projets sur la forge MIA.

  • umr-tetisumr-tetis
  • scenesscenes
  • Issues
  • #22
Something went wrong while setting issue due date.
Closed
Open
Issue created 2 years ago by Narcon Nicolas@nicolas.narconDeveloper
  • New related issue

  • New related issue

Pyotb 1.4.1 has introduced a bug

Closed

Pyotb 1.4.1 has introduced a bug

from scenes import spot

sc = spot.Spot67Scene(dimap_file_xs='DIM_SPOT6_MS_201503261014386_ORT_SPOT6_20170524_1422391k0ha487979cy_1.XML', dimap_file_pan='DIM_SPOT6_P_201503261014386_ORT_SPOT6_20170524_1422391k0ha487979cy_1.XML')
xs = sc.get_xs()
print(hasattr(xs, 'shape'))  # prints False
xs.shape  # Raises exception

Exception raised:

Traceback (most recent call last):
  File "/home/otbuser/.local/lib/python3.8/site-packages/pyotb/core.py", line 245, in __getattr__
    res = getattr(self.app, name)
  File "/opt/otbtf/lib/otb/python/otbApplication.py", line 2833, in __getattr__
    raise AttributeError("'%s' object has no attribute '%s'" % (Application.__name__, name))
AttributeError: 'Application' object has no attribute 'shape'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "tmp_bug_pyotb_dans_scenes.py", line 20, in <module>
    print(xs.shape)  ## Ceci fait planter le code 
  File "/home/otbuser/.local/lib/python3.8/site-packages/pyotb/core.py", line 248, in __getattr__
    raise AttributeError(f'{self.name}: Could not find attribute `{name}`') from e
AttributeError: Output out from ExtractROI: Could not find attribute `shape`
Edited 2 years ago

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Related merge requests

    1

    When this merge request is accepted, this issue will be closed automatically.

    • FIX: change Input to pyotb_app as input of Output
      !44

    Activity


    • Narcon Nicolas created branch 22-pyotb-1-4-1-regression to address this issue 2 years ago

      created branch 22-pyotb-1-4-1-regression to address this issue

    • Narcon Nicolas mentioned in merge request !44 (merged) 2 years ago

      mentioned in merge request !44 (merged)

    • Narcon Nicolas changed the description 2 years ago

      changed the description

    • Cresson Remi mentioned in commit 3aa233dd 2 years ago

      mentioned in commit 3aa233dd

    • Cresson Remi closed via merge request !44 (merged) 2 years ago

      closed via merge request !44 (merged)

    Please register or sign in to reply
    0 Assignees
    None
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    0
    0 Participants
    Reference:

    Menu

    Explore Projects Groups Topics Snippets