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

Add constatn to spectra #52

Open
ajasja opened this issue May 28, 2014 · 1 comment
Open

Add constatn to spectra #52

ajasja opened this issue May 28, 2014 · 1 comment
Milestone

Comments

@ajasja
Copy link
Member

ajasja commented May 28, 2014

Implement the addition (subtraction) of a constant and spectra.

spectra = spectra + 2  

Should add 2 to all y values. Subtraction should work similarly.

@ajasja ajasja added this to the 0.1 milestone May 28, 2014
@ajasja
Copy link
Member Author

ajasja commented Jun 9, 2014

Although it's easy to do s.dataset.y += 2. but I wonder if it is obvious enough (since all the other calculations are done with spectra directly. Also if we implement #53 then s.y += 2. is even shorter.

But of course s + 2 is the shortest and most elegant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant