|
56 | 56 | ) |
57 | 57 | from murfey.client.rsync import RSyncer |
58 | 58 | from murfey.client.tui.forms import FormDependency |
59 | | -from murfey.util import capture_post, get_machine_config, read_config |
| 59 | +from murfey.util import capture_post, get_machine_config_client, read_config |
60 | 60 | from murfey.util.models import PreprocessingParametersTomo, ProcessingParametersSPA |
61 | 61 |
|
62 | 62 | log = logging.getLogger("murfey.tui.screens") |
@@ -262,7 +262,7 @@ def __init__( |
262 | 262 | super().__init__(*args, **kwargs) |
263 | 263 | self._selected_dir = basepath |
264 | 264 | self._add_basepath = add_basepath |
265 | | - cfg = get_machine_config( |
| 265 | + cfg = get_machine_config_client( |
266 | 266 | str(self.app._environment.url.geturl()), |
267 | 267 | instrument_name=self.app._environment.instrument_name, |
268 | 268 | demo=self.app._environment.demo, |
@@ -898,7 +898,7 @@ def on_button_pressed(self, event: Button.Pressed): |
898 | 898 | visit_dir = Path(str(event.button.label)) / self.app._visit |
899 | 899 | visit_dir.mkdir(exist_ok=True) |
900 | 900 | self.app._set_default_acquisition_directories(visit_dir) |
901 | | - machine_config = get_machine_config( |
| 901 | + machine_config = get_machine_config_client( |
902 | 902 | str(self.app._environment.url.geturl()), |
903 | 903 | instrument_name=self.app._environment.instrument_name, |
904 | 904 | demo=self.app._environment.demo, |
@@ -940,7 +940,7 @@ def compose(self): |
940 | 940 | ) |
941 | 941 | yield RadioButton("Tomography", value=self._context is TomographyContext) |
942 | 942 | if self.app._multigrid: |
943 | | - machine_config = get_machine_config( |
| 943 | + machine_config = get_machine_config_client( |
944 | 944 | str(self.app._environment.url.geturl()), |
945 | 945 | instrument_name=self.app._environment.instrument_name, |
946 | 946 | ) |
@@ -1000,7 +1000,7 @@ def compose(self): |
1000 | 1000 | ) |
1001 | 1001 | ) |
1002 | 1002 | else: |
1003 | | - machine_config = get_machine_config( |
| 1003 | + machine_config = get_machine_config_client( |
1004 | 1004 | str(self.app._environment.url.geturl()), |
1005 | 1005 | instrument_name=self.app._environment.instrument_name, |
1006 | 1006 | ) |
@@ -1031,7 +1031,7 @@ def compose(self): |
1031 | 1031 | i = Input(value=val, id=k.name, classes="input-destination") |
1032 | 1032 | params_bulk.append(i) |
1033 | 1033 | self._inputs[i] = k.name |
1034 | | - machine_config = get_machine_config( |
| 1034 | + machine_config = get_machine_config_client( |
1035 | 1035 | str(self.app._environment.url.geturl()), |
1036 | 1036 | instrument_name=self.app._environment.instrument_name, |
1037 | 1037 | demo=self.app._environment.demo, |
@@ -1083,7 +1083,7 @@ def on_switch_changed(self, event): |
1083 | 1083 |
|
1084 | 1084 | def on_radio_set_changed(self, event: RadioSet.Changed) -> None: |
1085 | 1085 | if event.index == 0: |
1086 | | - cfg = get_machine_config( |
| 1086 | + cfg = get_machine_config_client( |
1087 | 1087 | str(self.app._environment.url.geturl()), |
1088 | 1088 | instrument_name=self.app._environment.instrument_name, |
1089 | 1089 | demo=self.app._environment.demo, |
|
0 commit comments