Skip to content
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

dask: Deal with some (but not all) TODODASK placeolders #541

Merged
merged 4 commits into from
Jan 30, 2023

Conversation

davidhassell
Copy link
Collaborator

Deal with some (but not all) TODODASK placeolders. The ones remaining either need to stay for versions after 3.14.0, or else will be dealt with in another PR for 3.14.0.

@davidhassell davidhassell added low priority dask Relating to the use of Dask labels Dec 22, 2022
@davidhassell davidhassell added this to the 3.14.0 milestone Dec 22, 2022
@davidhassell davidhassell linked an issue Jan 4, 2023 that may be closed by this pull request
@davidhassell davidhassell added the documentation Improvements or additions to documentation label Jan 30, 2023
Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise all good, though as-is one of the previously-passing test methods errors because of the name change for _is_numeric_dtype. This should be all that is needed to fix it:

diff --git a/cf/test/test_Data_utils.py b/cf/test/test_Data_utils.py
index 414e7a04c..aa5f53026 100644
--- a/cf/test/test_Data_utils.py
+++ b/cf/test/test_Data_utils.py
@@ -71,7 +71,7 @@ class DataUtilsTest(unittest.TestCase):
 
     def test_Data_Utils__is_numeric_dtype(self):
         """TODO."""
-        _is_numeric_dtype = cf.data.utils._is_numeric_dtype
+        _is_numeric_dtype = cf.data.utils.is_numeric_dtype
         for a in [
             np.array([0, 1, 2]),
             np.array([False, True, True]),

@davidhassell
Copy link
Collaborator Author

Good spot, thanks. Fixed in d698e7d

Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feedback addressed. Thanks. Please merge.

@davidhassell davidhassell merged commit 753428b into NCAS-CMS:lama-to-dask Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dask Relating to the use of Dask documentation Improvements or additions to documentation low priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LAMA to Dask: address TODODASK items
2 participants