Skip to content

Commit

Permalink
Removed commented-out section
Browse files Browse the repository at this point in the history
  • Loading branch information
rhfogh committed Oct 17, 2024
1 parent 883a256 commit 5298950
Showing 1 changed file with 2 additions and 61 deletions.
63 changes: 2 additions & 61 deletions mxcubecore/HardwareObjects/Gphl/GphlWorkflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,11 @@ def query_pre_strategy_params(self, choose_lattice=None):
reslimits = (0.5, 5.0)
if resolution < reslimits[0]:
resolution = (
round(reslimits[0], resolution_decimals) + 0.1**resolution_decimals
round(reslimits[0], resolution_decimals) + 0.1 ** resolution_decimals
)
if resolution > reslimits[1]:
resolution = (
round(reslimits[1], resolution_decimals) - 0.1**resolution_decimals
round(reslimits[1], resolution_decimals) - 0.1 ** resolution_decimals
)

fields["resolution"] = {
Expand Down Expand Up @@ -2355,65 +2355,6 @@ def process_centring_request(self, payload, correlation_id):
"Sample re-centering now active - Zoom in before continuing."
)

# else:
# # TODO The UI popup does not work in mxcubeweb
# # NB Temporarily inactivated pending a fix
#
# # Ask user to zoom
# info_text = """Automatic sample re-centering is now active
# Switch to maximum zoom before continuing"""
#
# schema = {
# "title": "GΦL Translational calibration",
# "type": "object",
# "properties": {},
# }
# fields = schema["properties"]
# fields["_info"] = {
# "type": "textdisplay",
# "default": info_text,
# "readOnly": True,
# }
# ui_schema = {
# "ui:order": ["_info"],
# "ui:widget": "vertical_box",
# "ui:options": {
# "return_signal": self.PARAMETER_RETURN_SIGNAL,
# # "update_signal": self.PARAMETER_UPDATE_SIGNAL,
# # "update_on_change": "selected",
# },
# }
# self._return_parameters = gevent.event.AsyncResult()
# try:
# dispatcher.connect(
# self.receive_ok_cancel,
# self.PARAMETER_RETURN_SIGNAL,
# dispatcher.Any,
# )
# responses = dispatcher.send(
# self.PARAMETERS_NEEDED,
# self,
# schema,
# ui_schema,
# )
# if not responses:
# self._return_parameters.set_exception(
# RuntimeError(
# "Signal %s is not connected" % self.PARAMETERS_NEEDED
# )
# )
#
# result = self._return_parameters.get()
# if result is StopIteration:
# return StopIteration
# finally:
# dispatcher.disconnect(
# self.receive_ok_cancel,
# self.PARAMETER_RETURN_SIGNAL,
# dispatcher.Any,
# )
# self._return_parameters = None

settings = goniostatRotation.axisSettings.copy()
if goniostatTranslation is not None:
settings.update(goniostatTranslation.axisSettings)
Expand Down

0 comments on commit 5298950

Please sign in to comment.