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

Set stars for plot() if needed #290

Merged
merged 1 commit into from
Aug 10, 2019
Merged

Set stars for plot() if needed #290

merged 1 commit into from
Aug 10, 2019

Conversation

jeanconn
Copy link
Contributor

Set stars for plot() if needed

@@ -691,6 +691,8 @@ def plot(self, ax=None, **kwargs):
:param kwargs: other keyword args for plot_stars
"""
kwargs.setdefault('catalog', self.get_catalog_for_plot())
if self.stars is None:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like set_stars has its own logic to try to decide where to get the stars, but I think it is relatively low-impact to just have a go at getting something if we reach this point and have no stars.

Unless this should be done from BaseCatalogTable or from chandra_aca.plot itself...

@taldcroft
Copy link
Member

I wanted to completely re-work the stars attribute handling in a fashion similar to dark, but it turns out to be slightly trickier and I punted. Did you want this for 4.4?

@taldcroft
Copy link
Member

But to be clear getting the stars attribute automatically working and getting rid of set_stars() is a priority.

@jeanconn
Copy link
Contributor Author

Not critical for 4.4, I just wasn't sure if there was any reason not to throw something like this in for the time being. But given that the use case is mostly so I can make debugging plots, there's no rush now that I'm comfortable with just doing

aca.set_stars()
aca.plot()

on a pickle-loaded catalog as needed.

@taldcroft taldcroft merged commit 9d8064b into master Aug 10, 2019
@taldcroft taldcroft deleted the set_pickle_stars branch August 10, 2019 12:24
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

Successfully merging this pull request may close these issues.

2 participants