Opened 13 years ago

Closed 10 years ago

#310 closed cleanup (duplicate)

potentially confusing behavior of I3Double when used with operators ">" and "<"

Reported by: Claudio Kopper Owned by: Kevin Meagher
Priority: normal Milestone:
Component: dataclasses Keywords:
Cc:

Description

Currently, the ">" and "<" operators work on I3Double in python:

In [5]: dataclasses.I3Double(5) > 6
Out[5]: True

In [6]: dataclasses.I3Double(5).value > 6
Out[6]: False

So, if used as intended, I3Double works fine, but maybe using the operator on I3Double directly should throw an error.

Change History (2)

comment:1 Changed 12 years ago by Erik Blaufuss

  • Owner changed from blaufuss to kjmeagher

Same thing happens for I3Bool.

Extend pybindings to throw an error when these comparions are made.

comment:2 Changed 10 years ago by David Schultz

  • Resolution set to duplicate
  • Status changed from new to closed

Superseded by #761, which might actually fix this.

Note: See TracTickets for help on using tickets.