rubin-dp0 / tutorial-notebooks

Tutorial Jupyter Notebooks for Data Preview 0, created and maintained by the Rubin Observatory Community Science Team.
Apache License 2.0
33 stars 17 forks source link

PREOPS-3457: prepare NBs for bump recommended to 2023_21 #132

Closed jeffcarlin closed 1 year ago

jeffcarlin commented 1 year ago

Notebooks 02 and 06b needed a couple of fixes. One was replacing (deprecated) "plot_height" and "plot_width" with "height" and "width". The other was an error that says "BokehUserWarning: out of range integer may result in loss of precision" and then the plot fails. This seemed to be happening because objectId is an int, but bokeh can't handle ints > 2**53-1. The solution is to convert objectId to a string.

Another fix that was needed in many places was replacing get_tap_service() with get_tap_service("tap") (due to deprecation).

There was a deprecation warning in 04a (re: "pack" method). Replaced with a simple hack, after Slack conversation with Jim Bosch convinced me that a simple replacement is not yet available.

Replace deprecated butler.getDirect() with butler.get() in a few places.