Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A Alex_Project
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Zhang, Yuanpeng
  • Alex_Project
  • Issues
  • #19

Closed
Open
Created Jun 21, 2021 by Zhang, Yuanpeng@y8z⭐Owner

[Task] Solve the issue with unit changing in Rietveld tab

  1. Load in some sample data (as attached here, NOM161121tof.gsa, NOM161122tof.gsa, NOM161123tof.gsa) in Rietveld tab and select nothing in Bragg Workspaces tree and click on any of the item in the unit change dropdown menu will crash ADDIE.

    • According to the error message, we need to go to the switch_bragg_unit function definition in addie/rietveld/event_handler.py and search for the line containing At least 1 GSS file must be selected.. We want to replace such an assertion operation with the following codes to throw out warning message instead of crashing ADDIE in such a situation,

      if len(ws_group_list) == 0:
          print("[Warning] At least 1 GSS file must be selected.")
          return
  2. Load in some sample data (as attached here, NOM161121tof.gsa, NOM161122tof.gsa, NOM161123tof.gsa) in Rietveld tab and select workspaces in Bragg Workspaces tree and click on any of the item in the unit change dropdown menu will crash ADDIE.

    • According to the error message, we need to go to the switch_bragg_unit function definition in addie/rietveld/event_handler.py and search for the line containing if 'workspaces' in ws_group_list. We see that workspaces is intended to be removed from workspaces list but we have a typo here - workspace needs to be changed to workspaces.
Edited Jun 21, 2021 by Zhang, Yuanpeng
Assignee
Assign to
Time tracking