-
Notifications
You must be signed in to change notification settings - Fork 8
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
Remove lambda funcs #91
Conversation
def N_func(x, y): | ||
return a[0] | ||
self.N_interp = N_func | ||
self.N_fit = N_func |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things here:
- I don't know if this will pickle, but we'll find out. It's probably fine, I'm just not sure how different this actually will be to using a
lambda
. - The function takes two parameters, ignores both of them, and just returns the first line of the file regardless? That seems odd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is odd but the default is that it depends on two parameters. So to remain generic I define this dummy function with two parameters that always return the same value for N or theta
DM-34226: Update Spectractor fork with PR LSSTDESC#91 from upstream
Remove lambda functions to make pickles with the outputs