lewis icon indicating copy to clipboard operation
lewis copied to clipboard

Let's write intricate simulators!

Results 17 lewis issues
Sort by recently updated
recently updated
newest added

Makes testing a pain as need to be patched out. Better to wrap an instance of async_chat and call methods on that. An instance can probably be passed in through...

This is from a question asked by Tom Willemsen. If a device is defined like this: ```python class MyDevice(StateMachineDevice): def initialize_data(self): self.channels = {1 : Channel(), 2 : Channel(), 3...

enhancement

Class attributes can be a bit dangerous in Python. They have behaviour that **appears** very similar to instance attributes **most** of the time, but work very differently under the hood...

enhancement
documentation

The `check_limits` decorator that was introduced in #157 has a few shortcomings. In its current form it can only be used on class methods with one numeric parameter. However it...

enhancement
refactoring

Currently, exception handling is very ad hoc throughout the system. The following exception classes exist: - `StateMachineException` (statemachine.py) - `RemoteException` (control_client.py) - `ProtocolException` (control_client.py) The latter two are probably fine...

enhancement
help wanted

The disambiguation term `Interface` was introduced rather hastily during the communication layer redesign and 1.0 release. Consequently, a lot of back-end code still uses incorrect terminology. This should be updated...

refactoring
documentation

`SimulatedChopper` should have some unit tests. I think what we need to test is that the properties change the context in the way we expect. Maybe testing the state machine...

enhancement
unit tests

Due to being YAML, the protocol parameters are very sensitive to whitespace (or lack thereof) and other quirks of the standard. If the entered syntax does not parse correctly, the...

enhancement
documentation

This came up while reviewing #259. Currently, Lewis requires this sort of layout for a custom device directory: ``` /some/host/path

packaging
build tools

At ISIS we have legacy drivers that talk to devices that are connected via a serial port. For testing purposes it would be useful to write an emulator that these...

enhancement
question