Skip to content
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

Unable to multiply quantities by numbers #90

Open
mccarthy677 opened this issue Jan 26, 2024 · 0 comments
Open

Unable to multiply quantities by numbers #90

mccarthy677 opened this issue Jan 26, 2024 · 0 comments

Comments

@mccarthy677
Copy link
Collaborator

Did you find a bug? Please help us improve by fill out the sections below. 👍

Describe the bug

It's no longer possible to generate a quantity by multiplying a number by a ScalarQuantity unit

To Reproduce

Steps to reproduce the behavior:

cptest = 10*cp.ScalarQuantity('Hz')
TypeError: unsupported operand type(s) for *: 'int' and 'ScalarQuantity'

Expected behavior

I would expect the same result as:
cptest = cp.ScalarQuantity('10 Hz')

Desktop (please complete the following information):

  • OS: Windows
  • Python version: 3.9.7
  • csdmpy version: 0.6.0
  • astropy version (in case you need it): 6.0.0
@mccarthy677 mccarthy677 changed the title N Unable to multiply quantities by numbers Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant