Add new method to set default magnitude of Units#35
Merged
chaoming0625 merged 20 commits intomainfrom Aug 9, 2024
Merged
Conversation
Member
|
Sound very great. I am checking now. |
Routhleck
commented
Aug 5, 2024
Collaborator
Author
Routhleck
left a comment
There was a problem hiding this comment.
Almost all test cases need to be fixed
| python_code: bool = False | ||
| ) -> str: | ||
| @staticmethod | ||
| def create(dim: Dimension, name: str, dispname: str, scale: int = 0) -> 'Unit': |
Member
这么吓人? |
Collaborator
Author
https://github.com/chaoming0625/brainunit/actions/runs/10250404914/job/28356059580 |
Member
|
先不管tests,你先改math,改完后我再看,最后再改tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
More examples at https://github.com/chaoming0625/brainunit/blob/c25506c9ff9c03dc225ba541f8c517b98a7309f3/brainunit/_unit_test.py#L1477-L1570