BCDA-APS / apstools

various tools for use with Bluesky at the APS
https://bcda-aps.github.io/apstools/latest/
Other
16 stars 9 forks source link

various fixes #993

Closed prjemian closed 2 weeks ago

prjemian commented 2 weeks ago
prjemian commented 2 weeks ago

Snagged by an upstream package error:

  File "/home/runner/micromamba/envs/anaconda-test-env-py-3.11/lib/python3.11/site-packages/dask/array/routines.py", line 1569, in <module>
    @implements(np.round, np.round_)
                          ^^^^^^^^^
  File "/home/runner/micromamba/envs/anaconda-test-env-py-3.11/lib/python3.11/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.round_` was removed in the NumPy 2.0 release. Use `np.round` instead.. Did you mean: 'round'?
Error: Process completed with exit code 1.

Needs a version pin somewhere.

prjemian commented 2 weeks ago
2024-07-01T14:05:20.5099142Z   + numpy                                    2.0.0  py311h1461c94_0          conda-forge       9MB

Recent release of numpy 2.0.0 has triggered this.

prjemian commented 2 weeks ago

These errors while building the documentation:

/home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/aps_undulator.py:docstring of apstools.devices.aps_undulator.BusyStatus.from_bytes:9: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/aps_undulator.py:docstring of apstools.devices.aps_undulator.BusyStatus.to_bytes:8: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/aps_undulator.py:docstring of apstools.devices.aps_undulator.DoneStatus.from_bytes:9: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/aps_undulator.py:docstring of apstools.devices.aps_undulator.DoneStatus.to_bytes:8: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/aps_undulator.py:docstring of apstools.devices.aps_undulator.MotorDriveStatus.from_bytes:9: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/home/prjemian/Documents/projects/BCDA-APS/apstools/apstools/devices/aps_undulator.py:docstring of apstools.devices.aps_undulator.MotorDriveStatus.to_bytes:8: WARNING: Inline interpreted text or phrase reference start-string without end-string.
prjemian commented 2 weeks ago

Only one value of one of the IntEnum subclasses is used. Refactor so the docs will build.