← Back to team overview

oship-dev team mailing list archive

[Bug 700087] [NEW] Issues on Interval class

 

Public bug reported:

The Interval class found on the oship.openehr.rm.support module must be
updated with these enhancements:

 - Separate the tests from the doctstring class, including as a unittest, covering all possible operations.
 - Substitute the Smallest and Largest class to the Inf and -Inf IEEE 754 float point constants.
 - Minimize the number of type checking, verfiying just the if object has the same type and if the object is a infinite.
 - Remove the possibility of define a Interval with both bounds as infinite.
 - Remove the possibility of define a Interval just with a bound. Always both bounds must be passed as arguments.
 - The default values of lower_included and upper_included must be True.
 - Implement the in operator with the same behavior from has operation.
 - Use the Persistent class instead of grok.Model in order to maintain the class as simple as possible.

** Affects: oship
     Importance: Low
         Status: New

** Changed in: oship
    Milestone: None => 1.5

** Changed in: oship
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of OSHIP
Development Team, which is subscribed to Open Source Health Information
Platform.
https://bugs.launchpad.net/bugs/700087

Title:
  Issues on Interval class

Status in Open Source Health Information Platform (OSHIP):
  New

Bug description:
  The Interval class found on the oship.openehr.rm.support module must be updated with these enhancements:

 - Separate the tests from the doctstring class, including as a unittest, covering all possible operations.
 - Substitute the Smallest and Largest class to the Inf and -Inf IEEE 754 float point constants.
 - Minimize the number of type checking, verfiying just the if object has the same type and if the object is a infinite.
 - Remove the possibility of define a Interval with both bounds as infinite.
 - Remove the possibility of define a Interval just with a bound. Always both bounds must be passed as arguments.
 - The default values of lower_included and upper_included must be True.
 - Implement the in operator with the same behavior from has operation.
 - Use the Persistent class instead of grok.Model in order to maintain the class as simple as possible.





Follow ups

References