Skip to content

Allow sasmodels.compare to use bumps webview instead of wx#651

Merged
pkienzle merged 5 commits intomasterfrom
fix-use-webview-for-compare
Mar 6, 2026
Merged

Allow sasmodels.compare to use bumps webview instead of wx#651
pkienzle merged 5 commits intomasterfrom
fix-use-webview-for-compare

Conversation

@pkienzle
Copy link
Contributor

@pkienzle pkienzle commented Jul 14, 2025

Running python -m sasmodels.compare -edit sphere@hardsphere starts up a model explorer with sliders to change the parameter values.

The new 1.0 bumps release adds a browser interface using the bumps.webview server.

This PR now uses webview to explore the model. If instead it is started with ... -wxedit it will use the old bumps wx GUI.

This PR also turns off the fixed y limits on the plot, though making it easy to toggle in the code.

Structure factor models are now drawn using linear-linear rather than log-log. Other models can be set to linear q by adding "-zero" to the options, and linear I(q) by adding "-linear". Changing structure factor models back to log-log will require toggling in the code.

sasmodels.compare is only used for developing new models. It is not used by sasview or other applications.

@krzywon
Copy link
Collaborator

krzywon commented Feb 26, 2026

@pkienzle - please fix the merge conflicts so this can be reviewed

Comment on lines +1261 to +1262
elif arg == '-edit': opts['explore'] = 'web'
elif arg == '-wxedit': opts['explore'] = 'wx'
Copy link
Collaborator

Choose a reason for hiding this comment

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

New options and behavior with no documentation updates?

Copy link
Collaborator

@krzywon krzywon left a comment

Choose a reason for hiding this comment

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

The new options should be documented, but otherwise this works fine. Feel free to merge as-is, or update the docs and merge.

@pkienzle pkienzle merged commit 592f978 into master Mar 6, 2026
2 checks passed
@pkienzle pkienzle deleted the fix-use-webview-for-compare branch March 6, 2026 23:52
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