-
Notifications
You must be signed in to change notification settings - Fork 35
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
LLS: Some edits for the LLS GUI #103
Conversation
class GenericAbsSystem(AbsSystem): | ||
"""Class for Generic Absorption Line System | ||
""" | ||
def __init__(self, radec, zabs, vlim, **kwargs): | ||
if vlim is None: | ||
if vlim is None: |
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.
Duplicate statements.
Fixed. Anything else? |
class GenericAbsSystem(AbsSystem): | ||
"""Class for Generic Absorption Line System | ||
""" | ||
def __init__(self, radec, zabs, vlim, **kwargs): | ||
if vlim is None: | ||
vlim = [-500.,500.]*u.km/u.s |
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.
I'm still thinking whether this is a good idea or not. If you do something like this for vlim, then for the sake of symmetry I would also allow radec and zabs to have default values, which may be useful in some cases where you do not care about those quantities. On the other hand, for the cases you do care, having default values may cause some trouble...
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.
How about having them as optional parameters?
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.
Yeah, fair point.
I'll go back to what we had.
LLS: Some edits for the LLS GUI Looks good to me then. Merging.
Changes Unknown when pulling f8772d8 on profxj:LLS into ** on linetools:master**. |
A new method or two
and a test