Skip to content

Suggestion for update (bootstrapping app)#8

Open
tlambert03 wants to merge 2 commits intoQI2lab:mainfrom
tlambert03:update-app
Open

Suggestion for update (bootstrapping app)#8
tlambert03 wants to merge 2 commits intoQI2lab:mainfrom
tlambert03:update-app

Conversation

@tlambert03
Copy link
Copy Markdown

this is a suggestion for vendoring a bit less code from pymmcore-gui. I added a public create_mmgui function in pymmcore-plus/pymmcore-gui#70 that is designed largely for your use case...

This PR removes much of the app bootstrapping logic that was vendored from pymmcore-gui, and leaves only your customizations. In a follow up PR, I will try to show you how to use pymmcore-plus/pymmcore-gui#71 to better contribute custom widgets. (I'll also try to document all this soon)

One important note here: I noticed you commented out the _install_excepthook() part, and this PR will effectively reinstall it (it happens in the create_mmgui function). I would like to better understand why you originally commented that out, since it's a pretty important step that should almost always run.

Note also: I'm pinning your pymmcore-gui dep to the latest commit. Given the rate of development, i would encourage you to manually bump that (probably often) instead of always pulling in the latest main, just in case...

@tlambert03
Copy link
Copy Markdown
Author

(I can't really test this locally here, since the tests don't seem to be set up to run without hardware right?... so you'll have to verify that its working, and let me know if you have questions)

@tlambert03
Copy link
Copy Markdown
Author

also, I updated the _dev.py version ... is the other one still in use?

@dpshepherd
Copy link
Copy Markdown
Contributor

Hi @tlambert03 ! I just took a look at the state of things.

I believe @SJShep is working on and using the stage-engine branch, not main. There, he does execute the _install_excepthook().

@dpshepherd
Copy link
Copy Markdown
Contributor

And thanks for helping us clean things up!

@tlambert03
Copy link
Copy Markdown
Author

ok, I can make a PR against that branch instead/as-well 👍

@dpshepherd
Copy link
Copy Markdown
Contributor

I'm going to work with him to merge to main this week, maybe hold off a day or two?

@dpshepherd
Copy link
Copy Markdown
Contributor

main is now the current state of the control code.

@tlambert03
Copy link
Copy Markdown
Author

updated!

@dpshepherd
Copy link
Copy Markdown
Contributor

Thanks! We will test later this week and update here.

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