@@ -18,13 +18,13 @@ This module creates the dimension abstraction which allows the creation of value
1818that belong to a dimension (e.g. t: Time, x: Length, ...etc). This allows us to
1919use static types to check code correctness (e.g. time_method(t: Time)).
2020
21- To add a new dimension, create 3 classes:
21+ To add a new dimension, create 3 classes:
2222- `class _NewDimension(Dimension):` which implements the abstract methods from
2323 the abstract `Dimension` class.
2424- `class NewDimension(_NewDimension, ValueWithDimension)` which represents scalar
2525 values and doesn't need to implement any methods.
2626- `class AccelerationArray(_Acceleration, ArrayWithDimension)` which represents
27- an array of values sharing the same dimension and
27+ an array of values sharing the same dimension and
2828"""
2929
3030import abc
@@ -696,7 +696,11 @@ class _Temperature(Dimension):
696696 @staticmethod
697697 @cache
698698 def valid_base_units () -> tuple[Value , ...]:
699- return (default_unit_database.known_units['kelvin'],)
699+ return (
700+ default_unit_database.known_units['kelvin'],
701+ default_unit_database.known_units['celsius'],
702+ default_unit_database.known_units['fahrenheit'],
703+ )
700704
701705 def _value_class(self ) -> type[Value]:
702706 return Temperature
0 commit comments