Skip to content

issues Search Results · repo:Maxcode123/property-utils language:Python

Filter by

22 results
 (120 ms)

22 results

inMaxcode123/property-utils (press backspace or delete to remove)

the below examples should not raise an error and they should produce a property with NON_DIMENSIONAL unit. from property_utils.properties import p (p(1)**2) - p(1) (p(1)/p(1)**2)) - p(1) HOW - During ...
  • Maxcode123
  • Opened 
    on Sep 20, 2024
  • #30

from property_utils.properties import p from property_utils.units import * result = p(2, METER) / p(5, CENTIMETER) result.unit == NON_DIMENSIONAL # should be True currently the behaviour is: result.unit ...
  • Maxcode123
  • Opened 
    on Sep 19, 2024
  • #28

Properties should be validated from property_utils.properties import Temperature, Pressure from property_utils.units import * Temperature(-10, KELVIN) # should raise Temperature(200) # defaults to KELVIN ...
  • Maxcode123
  • Opened 
    on May 22, 2024
  • #27

from property_utils.properties import Property, p from property_utils.units import * class Pressure(Property): ... p1 = Pressure(10, BAR) p2 = p(4, BAR) p1 + p2 # this should not raise
  • Maxcode123
  • Opened 
    on May 20, 2024
  • #23

from property_utils.properties import ValidatedProperty, p from property_utils.exceptions import PropertyValidationError from property_utils.units import * class Temperature(ValidatedProperty): ...
  • Maxcode123
  • Opened 
    on Apr 23, 2024
  • #22

in ValidatedProperty init: super().__init__(value, unit) actually does this: self.value = value self.unit = unit self.value = value triggers validate_value, which means one cannot use self.unit in ...
bug
  • Maxcode123
  • Opened 
    on Apr 23, 2024
  • #20

Give the option to inherit from property and define a default unit: class Pressure(Property): default_units = BAR Pressure(5) Property: 5 bar
enhancement
  • Maxcode123
  • Opened 
    on Apr 23, 2024
  • #19

Properties produces by multiplication and division should have simplified units by default. HOW Convert internally to simplified units after each operation. import math from property_utils.properties ...
enhancement
  • Maxcode123
  • Opened 
    on Apr 8, 2024
  • #15

is_equivalent should return True for these two generics: GenericCompositeDimension: (LengthUnit^2) * MassUnit * RelativeTemperatureUnit / (TimeUnit^3) / AbsoluteTemperatureUnit GenericCompositeDimension: ...
enhancement
  • Maxcode123
  • Opened 
    on Apr 8, 2024
  • #14

Just like GenericCompositeDimension
enhancement
  • Maxcode123
  • Opened 
    on Apr 8, 2024
  • #13
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub