-
Notifications
You must be signed in to change notification settings - Fork 5
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
Updates for xija_gui_fit #116
Conversation
…tice to different elements. Fix some bugs.
@taldcroft likely the only FSDS-relevant bits are in https://github.com/sot/xija/pull/116/files#diff-78ad09ad6fe546ab9d4b1d835063650634f425cff3b09df8417a13be438d6838 |
@jzuhone - awesome work glad to see this tool getting continued attention. I think this will fall in the category of a package update that tags along in a normal Ska FSDS request. It wasn't obvious in 5 seconds what is going on with the diff you highlighted above, but from FSDS perspective the key is to highlight interface impacts at the top level (in the PR description) and make sure in advance that likely users are aware. That pretty much means ACIS ops, @matthewdahmer and occasionally me. When we make the Ska update request then this can be highlighted if necessary as a notable change. |
@taldcroft the change in the diff I linked should be a no-op, it's just that it's the only part that could conceivably affect model evaluation if I screwed something up. |
@jzuhone - I gave this a spin in ska3-next and it works, but I do see a bunch of new warnings:
@javierggt will probably have a new 2022.2rc4 release out shortly that includes sot/ska_matplotlib#24, which changes the default plot_cxctime color (discussed previously on slack). Since this PR won't go in until after 2022.2 (sot/skare3#774) you might as well start testing there. |
One feature request (and maybe it's already there?) is to be able to get any flight model with the name, e.g.
This would grab the latest flight model from chandra_models with |
when are you getting this warning?
I don't see it. |
… be taken from chandra_models
…s no saved model at all), ask if you want to save
Huh, I tried again and I don't see that now. Well, never mind for the moment. |
@taldcroft @jzuhone I saw that same error, "__THE_PROCESS_HAS_FORKED...", once on my Apple Silicon Mac. During that instance, once I saw it I was not able to get xija_gui_fit to run until I rebooted, then it worked fine. |
Weird. Anyway, I added the new feature @taldcroft requested. It also prompts if you have an unsaved model when you hit the Quit button. |
One more feature request - put the xija version into the App title? In testing just now I had been accidentally getting the wrong version so it would be nice to see the version. |
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 did some more light testing of this in ska3-next (rc4) and didn't see any problems, so good from my perspective. Note that I did not look at the code changes.
@@ -1082,7 +1082,8 @@ def set_title(self): | |||
title_str = "no filename" | |||
if not self.checksum_match: | |||
title_str += "*" | |||
self.window.setWindowTitle(f"xija_gui_fit ({title_str})") | |||
self.window.setWindowTitle( | |||
f"xija_gui_fit v{xija.__version__} ({title_str})") |
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.
👍
Ok to merge this before things get too busy? |
Fine by me to merge, but @matthewdahmer - are you good with this? |
@jzuhone @taldcroft I am OK with this update. I tested it on my Mac with a PLINE refit and seems to work well! |
BTW @jzuhone have you tested this with ska3-next on supported platforms? I guess that isn't a lien on merging this since we can always come back with fixes as needed. My light testing was OK on that but it's worth noting that @javierggt experienced troubles with aca_view (another Qt app) and required |
@taldcroft I have not yet tested against ska3-next--is there a documented way yet to set up a ska3-next environment? |
@jzuhone - the conda command under Testing in sot/skare3#774 should work. |
@taldcroft I tested under ska3-next and all appears to work fine. |
👍 |
@taldcroft what's your position on who should merge this? |
Description
This PR fixes a number of annoying bugs in
xija_gui_fit
and refactors the design of a few features.Figure
,Axes
pair that is never displayed but also never goes away and is used as the shared axes.solarheat*__P*
) and hit Enter.The new look of the window:
The new "Filters" subwindow, showing how to add a mask and ignore all masks, and how to add a "bad time":
Testing