-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Failed to import apstools.devices.labjack. #900
Comments
Is the root cause on lines such as these? apstools/apstools/devices/labjack.py Line 393 in d47c55a
where: note the number of occurrences: (bluesky_2024_1) prjemian@arf:~/.../BCDA-APS/apstools$ git grep config | grep normal
apstools/devices/labjack.py: analog_outputs = DCpt(make_analog_outputs(2), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: analog_inputs = DCpt(make_analog_inputs(12), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: digital_ios = DCpt(make_digital_ios(16), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: analog_inputs = DCpt(make_analog_inputs(14), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: digital_ios = DCpt(make_digital_ios(23), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: analog_inputs = DCpt(make_analog_inputs(14), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: digital_ios = DCpt(make_digital_ios(23), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: analog_inputs = DCpt(make_analog_inputs(8), kind=(Kind.config | Kind.normal))
apstools/devices/labjack.py: digital_ios = DCpt(make_digital_ios(20), kind=(Kind.config | Kind.normal)) |
A suggested workaround is in one of the example notebooks ( "**Note**: Here, we assign the `kind` attribute by number `3`, a shorthand which is interpreted by ophyd as `ophyd.Kind.config | ophyd.Kind.normal`."
"adsimdet.hdf1.kind = 3 # config | normal" |
One more Sphinx problem: /home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/labjack.py:docstring of apstools.devices.labjack:22: ERROR: Unknown directive type "see". |
This error is odd now, given this ophyd source code usage: ophyd/mca.py: preset_real_time = Cpt(EpicsSignal, ".PRTM", kind=Kind.config | Kind.normal)
ophyd/tests/test_kind.py: # Notice that it tacks 'config' on when you set the kind to 'normal'.
ophyd/tests/test_kind.py: assert (Kind.normal | Kind.config) == B(name="b", kind=Kind.normal).kind
ophyd/tests/test_kind.py: assert b.a_default.kind == (Kind.normal | Kind.config)
ophyd/tests/test_kind.py: # kind value with Kind.config if said vlaue includes Kind.normal. |
Note, the problem now is with Sphinx:
|
This alternative form does not raise a |
CI workflow did not fail for this Sphinx build error:
The text was updated successfully, but these errors were encountered: