[feat] Add more constants (Unit
and Quantity
format)
#83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several significant changes to the
brainunit
package, focusing on the removal of unnecessary imports, the addition of new unit constants, and the improvement of unit tests. The most important changes are summarized below:Removal of Unnecessary Imports:
brainunit/__init__.py
: Commented out the import ofconstants
and its__all__
to reduce redundancy.Addition of New Unit Constants:
brainunit/_unit_constants.py
: Added multiple new unit constants for mass, angle, pressure, area, volume, speed, temperature, energy, power, and force. [1] [2]Improvements to Constants:
brainunit/constants.py
: Added new constants for various measurements and removed the__all__
list to streamline the file. [1] [2]Unit Test Enhancements:
brainunit/constants_test.py
: Introduced a comprehensive list of constants and added a new test to ensure consistency betweenquantity_constants
andunit_constants
. [1] [2]Code Cleanup:
brainunit/math/_fun_keep_unit.py
: Removed the redundantround_
function to clean up the codebase. [1] [2]