Uh oh!
There was an error while loading. Please reload this page.
add gooey support - #130
Conversation
| from diffpy.utils.scattering_objects.diffraction_objects import XQUANTITIES, Diffraction_object | ||
| def define_arguments(): |
There was a problem hiding this comment.
Since we need to redefine the input and zscan file arguments for gui, I think it's easier if we put all arguments in a separate function, so that later when we update the arguments we only need to update this.
Uh oh!
There was an error while loading. Please reload this page.
| "folder ./data)." | ||
| ), | ||
| "nargs": "+", | ||
| "widget": "MultiFileChooser", |
There was a problem hiding this comment.
When we have cli we support a mixture of multiple files, folders, and wildcards. In gui I think we can only choose one of multiple file or folder for one argument. I can maybe add another argument for selecting folders?
There was a problem hiding this comment.
yes, if that is the case in teh gui let's have them as separate inputs
sbillinge
left a comment
There was a problem hiding this comment.
this looks really great! Congrats. If you make an issue to update the docs/tutorial I can merge this. Or else we should put the updates to the docs on this PR and merge it together.
| "folder ./data)." | ||
| ), | ||
| "nargs": "+", | ||
| "widget": "MultiFileChooser", |
There was a problem hiding this comment.
yes, if that is the case in teh gui let's have them as separate inputs
Uh oh!
There was an error while loading. Please reload this page.
sbillinge
commented
Nov 20, 2024
we have to find some kind of workaround to pin testing to py 3.12 until the Gooey dependency is updated. This won't be so easy because of the centralized way we are doing testing at the moment, but let's try and find a way to just test this up to 3.12. |
bobleesj
commented
Nov 20, 2024
@sbillinge it appears that the latest conda-forge supports py310.. https://anaconda.org/conda-forge/gooey/files Also, a similar issue that remains open: |
sbillinge
commented
Nov 20, 2024
I am running gooey on Regolith in a 3.12 env. So it is not a problem with the code per se, but the issue is how we run our tests and design our requirements. ATM I think we are pulling a file from |
yucongalicechen
commented
Nov 20, 2024
I read online that we can use |
@yucongalicechen we have matrix testing configured https://github.com/diffpy/diffpy.labpdfproc/blob/main/.github/workflows/matrix-and-codecov-on-merge-to-main.yml in this repository. But, again, it's testing against 3.11, 3.12, 3.13. @sbillinge One possibility is that we could dynamically override default Python versions (3.11, 3.12, 3.13) here and just make sure we remove it later: From to |
Another possibility is that instead of |
sbillinge
commented
Nov 21, 2024
Thankd @bobleesj I think either of those solutions can work. The basic idea is that we for sure will have to make some local change in the GitHub workflow and then make an issue to change it back later, but what is the minimal change that just kind of gets the job done. But the update needs to be in the local directory, not in release-packages (I forget the name exactly) it it compromises tests across all our stack. |
bobleesj
commented
Nov 22, 2024
seems like wxpython pip install fails here in the CI. Did you test pip install using conda env with Python 3.13 before? |
sbillinge
commented
Nov 23, 2024
It gets complicated but we could conda install wx then pip install gooey, or just only test up to 3.12 |
yucongalicechen
commented
Nov 23, 2024
I just checked that Python 3.13 works on my computer |
bobleesj
commented
Nov 23, 2024
Thanks. I will look more into this tmr! |
bobleesj
commented
Nov 25, 2024
@yucongalicechen Let's try re-running it now. #136 is merged so that it the linux CI can build wxpython. |
yucongalicechen
commented
Nov 25, 2024
Working nicely!! Thanks Bob!! |
yucongalicechen
commented
Nov 25, 2024
@sbillinge I think this PR is ready to be merged. I've added issues #131 and #132 to take care of the docs and input argument. |
bobleesj
commented
Nov 25, 2024
@yucongalicechen it just takes a bit of time (28 mins) to build wxpython here for Linux.. (uses sdist instead of whl files since PyPI provides no linux whl file) |
closes#57



It's working for both CLI arguments and GUI. Here're some screenshots.
@sbillinge ready for some feedback!