Skip to content

Conversation

alessandro-olivo
Copy link
Contributor

This PR is required for the PR: mxcube/mxcubeweb#1782 (follow the link for details)

self.in_interleave = None
self.sub_wedge_size = 10

self.disable_processing = False
Copy link
Member

Choose a reason for hiding this comment

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

Sure, why not. Is this a UI option or more a feature that you also which to use on the backend. Do you actually want to disable processing or always call the same processing ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now, it’s just used to hide something in the UI that isn’t needed, but I can imagine a use case where this information could be used by the backend to decide whether to start processing

Copy link
Member

Choose a reason for hiding this comment

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

Ok, sounds good. Should we make it configurable then so that its read from the beamline_config.yaml ? There is already a section for similair settings

Copy link
Contributor Author

@alessandro-olivo alessandro-olivo Jul 15, 2025

Choose a reason for hiding this comment

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

If you follow this link mxcube/mxcubeweb#1782 (comment), you’ll see the implementation in mxcubeweb.
You can already configure it from the beamline_config.yaml. I chose to place it under the default_acquisition_parameters section, but there might be a better place.
I chose that section so it could be disabled depending on the method.

Example:

   ...
  default_acquisition_parameters:
    default:
      ...
      take_snapshots: true
      sub_wedge_size: 10
+     disable_processing: true
      ...

Copy link
Member

Choose a reason for hiding this comment

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

Ok, lets keep it like that :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To make it clearer, I could update the beamline_config.yaml file by adding the line disable_processing: false. It's not really necessary since "false" is the default, but it helps show how to configure the setting.

@marcus-oscarsson
Copy link
Member

Looks good to me, please rebase and merge :)

…frontend to hide the processing section in the "Tasks" dialogs
@alessandro-olivo alessandro-olivo force-pushed the ao-feature-hide_processing_task_section branch from 9a7331e to 310b91a Compare July 15, 2025 13:32
@alessandro-olivo
Copy link
Contributor Author

@marcus-oscarsson A review is needed before I can merge

@marcus-oscarsson marcus-oscarsson self-requested a review July 15, 2025 14:06
@marcus-oscarsson marcus-oscarsson merged commit c40d941 into mxcube:develop Jul 15, 2025
6 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.

2 participants