Skip to content

Commit

Permalink
fix mesh scan parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
meguiraun committed Oct 9, 2023
1 parent 7a945c0 commit e18241f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 1 addition & 3 deletions mxcube3/core/components/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,9 +1139,7 @@ def set_dc_params(self, model, entry, task_data, sample_model):
elif params.get("mesh", False):
grid = HWR.beamline.sample_view.get_shape(params["shape"])
acq.acquisition_parameters.mesh_range = (grid.width, grid.height)
mesh_center = HWR.beamline["default_mesh_values"].get_property(
"mesh_center", "top-left"
)
mesh_center = HWR.beamline.default_acquisition_parameters["mesh"].get("mesh_center", "top-left")
if mesh_center == "top-left":
acq.acquisition_parameters.centred_position = (
grid.get_centred_positions()[0]
Expand Down
10 changes: 1 addition & 9 deletions ui/src/components/Tasks/Mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Mesh extends React.Component {
this.submitAddToQueue = this.submitAddToQueue.bind(this);
this.submitRunNow = this.submitRunNow.bind(this);
this.addToQueue = this.addToQueue.bind(this);
this.resetParameters = this.resetParameters.bind(this);
// this.resetParameters = this.resetParameters.bind(this);
this.defaultParameters = this.defaultParameters.bind(this);
}

Expand Down Expand Up @@ -202,14 +202,6 @@ class Mesh extends React.Component {
>
Default Parameters
</Button>
<Button
className="ms-3"
size="sm"
variant="outline-secondary"
onClick={this.resetParameters}
>
Reset Form
</Button>
</ButtonToolbar>
<ButtonToolbar className="float-end">
<Button
Expand Down

0 comments on commit e18241f

Please sign in to comment.