Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
O
openmc
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 70
    • Issues 70
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Shikhar Kumar
  • openmc
  • Merge Requests
  • !782

Closed
Opened Feb 07, 2017 by Shikhar Kumar@shikhark
  • Report abuse
Report abuse

mesh.Mesh.__eq__()

  • Overview 10
  • Commits 3
  • Changes 1

Created by: tjlaboss

In openmc/mesh.py, the method Mesh.__eq__() contains the following statement:

elif self._lower_left != mesh2.lower_left and self._upper_right != mesh2.upper_right:

This results in a ValueError: "The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()". Using .all() for the comparison of these lists fixes the error.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: shikhark/openmc!782