Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
meguiraun committed Aug 16, 2024
1 parent 26b2d68 commit 3cd4f2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
15 changes: 7 additions & 8 deletions docs/source/dev/hwobj_signals.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ From the {py:class}`HardwareObjectMixin` class (removing extra lines for brevity
dispatcher.send(signal, self, *args)
```

So, in a custom hardware object, since it inherits from {py:class}`HardwareObject`, one only needs to call:
So, in a custom hardware object, since it inherits from {py:class}`HardwareObject`, one only needs to call:
```
self.emit('my_signal', new_value)
```
Expand Down Expand Up @@ -136,7 +136,7 @@ class HO1(HardwareObject):
gevent.spawn(self.update_value)
def stop(self):
self.run = False
self.run = False
```

and a data consumer:
Expand Down Expand Up @@ -175,11 +175,11 @@ In [1]: from mxcubecore import HardwareRepository as hwr
...: ho2 = hwrTest.get_hardware_object("/ho2")
2024-03-18 12:20:18,434 |INFO | Hardware repository: ['/Users/mikegu/Documents/MXCUBE/mxcubecore_upstream/mxcubecore/configuration/mockup/test']
+======================================================================================+
| role | Class | file | Time (ms)| Comment
| role | Class | file | Time (ms)| Comment
+======================================================================================+
| beamline | Beamline | beamline_config.yml | 9 | Start loading contents:
| mock_procedure | None | procedure-mockup.yml | 0 | File not found
| beamline | Beamline | beamline_config.yml | 9 | Done loading contents
| beamline | Beamline | beamline_config.yml | 9 | Start loading contents:
| mock_procedure | None | procedure-mockup.yml | 0 | File not found
| beamline | Beamline | beamline_config.yml | 9 | Done loading contents
+======================================================================================+
In [2]: ho1.start()
Expand Down Expand Up @@ -207,7 +207,7 @@ As you can see, the second hardware object receives and processes first one's si
## General signals List

The following tables list the generic signals as well as the signals from some of the most important hardware objects.
The following tables list the generic signals as well as the signals from some of the most important hardware objects.
>Additional signal could be emitted by other hardware objects. For example, "energyScanFinished" by the energy scan object, and similars. For the shake of keeping this document digestable not all the signals are listed.

Expand Down Expand Up @@ -336,4 +336,3 @@ motor_positions = {
| centringAccepted | | "centringAccepted", (bool: accepted, dict:centring_status) | |
| centringSnapshots | | "centringSnapshots", boolean | |
| progressMessage | | "progressMessage", msg | |

1 change: 0 additions & 1 deletion mxcubecore/HardwareObjects/abstract/AbstractBeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
# along with MXCuBE. If not, see <http://www.gnu.org/licenses/>.



__copyright__ = """ Copyright © 2016 - 2022 by MXCuBE Collaboration """
__license__ = "LGPLv3+"

Expand Down

0 comments on commit 3cd4f2d

Please sign in to comment.