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

Webview #181

Merged
merged 708 commits into from
Sep 9, 2024
Merged

Webview #181

merged 708 commits into from
Sep 9, 2024

Conversation

pkienzle
Copy link
Member

@pkienzle pkienzle commented Sep 8, 2024

update to the webview branch

bmaranville and others added 30 commits August 28, 2023 16:01
bmaranville and others added 21 commits July 25, 2024 12:53
@pkienzle
Copy link
Member Author

pkienzle commented Sep 8, 2024

Tests are passing locally. Need to do some fiddling with github actions so that it doesn't try running old refl1d against new bumps.

@pkienzle
Copy link
Member Author

pkienzle commented Sep 8, 2024

Still need a code review of all the changes


def _draw_overplot(group, index, label):
def _draw_overplot(group, index, label, axes=None):
Copy link
Member Author

Choose a reason for hiding this comment

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

Passing fig and axes around everywhere (here and in bumps) is tedious.

Copy link
Member

Choose a reason for hiding this comment

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

Yes! and also thread-safe.

self.version = __version__ if version is None else version
if auto_tag:
tag_all(self.probe.parameters(), 'probe')
tag_all(self.sample.parameters(), 'sample')
Copy link
Member Author

Choose a reason for hiding this comment

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

For simplicity I collapse the parameters into a flat list when I walk the model in bumps. Maybe this tagging could happen during flattening?

Copy link
Member

Choose a reason for hiding this comment

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

What would be gained by doing the tagging during flattening? You would have to keep track of the "auto_tag" setting (it would become part of the state of the class).

Copy link
Member Author

Choose a reason for hiding this comment

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

If every application using bumps serialization needs tagging, then tagging is a bumps concern, not an application concern. [Not that I know what tagging does, but it doesn't seem like it would be specific to reflectometry.]

@pkienzle
Copy link
Member Author

pkienzle commented Sep 9, 2024

I think I can fix the errors by replacing master with master_v0 in the actions. This should clean up the errors so that we can merge this back to main. Still need to fix the refl1d and bumps webview builders to target master rather than webview.

Feel free to rename the branch from master_v0 to master_wx or wx_master.

@pkienzle pkienzle merged commit 5337991 into master Sep 9, 2024
2 checks passed
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.

4 participants