-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with using pipe operator for units in py3.9+ #687
Comments
One obvious solution would be to adopt Astropy's system of units. We have discussed this before and it seems like this would be another reason to do so. A hybrid solution could also be an option, where we move to the * operator for creating quantities but still use our own unit system. I'm unsure about the consequences this would have for distinguishing quantities and units though (how is this done in Astropy?). |
Sounds like a perfect topic for our workshop in the last week of October.
Simon
…On Sat, Oct 17, 2020, 18:22 Steven Rieder ***@***.***> wrote:
One obvious solution would be to adopt Astropy's system of units. We have
discussed this before and it seems like this would be another reason to do
so.
This is of course not ideal for other *muse projects, as we don't want
them to depend on astropy.
A hybrid solution could also be an option, where we move to the * operator
for creating quantities but still use our own unit system. I'm unsure about
the consequences this would have for distinguishing quantities and units
though (how is this done in Astropy?).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#687 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCPFTEVOYHB7DMDXVZI2WDSLHAF7ANCNFSM4SUOS6YQ>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 28 days if no further activity occurs. Thank you for your contributions. |
Python 3.9 and 3.10 have adopted PEPs 584 (1) and 604 (2) respectively. These use the pipe operator, and this might very well collide with our use of the pipe operator for creating quantities.
We will need to find a solution for this relatively soon.
1: https://www.python.org/dev/peps/pep-0584/
2: https://www.python.org/dev/peps/pep-0604/
The text was updated successfully, but these errors were encountered: