Introduced in #967, f863b48, tethys_compute/models/dask/dask_scheduler.py , the changed code has lowercase client instead of Client, which imports the module instead of the class, resulting in a TypeError: 'module' object is not callable error.
This bug might not appear on macOS HFS+/APFS because of case-insensitive filesystems? But I'm seeing it on Windows. I'm guessing this is the case everywhere though.
coverage: 100.0%. remained the same
when pulling c3f534994604a1cdae332cf0e803d7c5bc4746b3 on mattw-nws:bug-dask-scheduler-module-not-callable
into 8680dcfc8595c30bf4e47be110d7f0fb5d1b9f60 on tethysplatform:main.
Description
Introduced in #967, f863b48, tethys_compute/models/dask/dask_scheduler.py , the changed code has lowercase
client
instead ofClient
, which imports the module instead of the class, resulting in aTypeError: 'module' object is not callable
error.Changes Made to Code:
Client = optional_import("client", from_module="dask.distributed")
➡️Client = optional_import("Client", from_module="dask.distributed")
Related
967
Additional Notes
Quality Checks