Skip to content

Conversation

@davidhassell
Copy link
Collaborator

Fixes: #228

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.

The updated messages are clearer than the original ones in my eyes, excellent.

Though I could hack some fields to aggregate to run into the messages that have been changed here, to test, I didn't seem to hit them by ramping up the verbosity "to 11" (i.e. max debug/-1) on the aggregate test, so that suggests we can improve test coverage in future by including cases corresponding to attempted aggregation leading to these messages e.g. of fields where some have identical 1D coordinates, etc.

Also, during reviewing I noticed a few formatting errors in the higher-verbosity logging messages (probably mistakenly introduced by me during the original conversion from print statements), so I will put up a PR shortly in soon to fix those. I might also check all tests under debug verbosity to pick up on any obvious further log message issues towards that PR.

@davidhassell
Copy link
Collaborator Author

Thanks, Sadie. I'll add try and a unit test for these messages to this PR. Good idea to have a separate PR for the other message you have spotted.

(Can we make verbose=11 an alias for verbose=-1, just for fun? Seriously)

@sadielbartholomew
Copy link
Member

sadielbartholomew commented Jul 12, 2021

(Can we make verbose=11 an alias for verbose=-1, just for fun? Seriously)

It could be a nice easter egg! Though I think we planned to have an even higher logging level reserved for parallelisation-logic? In which case that would be the maximum and should be the 11...

@davidhassell
Copy link
Collaborator Author

Hi @sadielbartholomew - may I merge this one, now? I think improving the test coverage as you suggest is one for another issue.

@sadielbartholomew
Copy link
Member

sadielbartholomew commented Oct 1, 2021

may I merge this one, now? I think improving the test coverage as you suggest is one for another issue.

There are a few conflicts to resolve, but once that is done, please go ahead and merge, thanks @davidhassell (generally, for future, if I give a formal 'approved' review I am happy for the PR to be merged unless there is something outstanding stated in the review comment, and I agree test coverage can be improved separately).

so I will put up a PR shortly in soon to fix those

I didn't link in the relevant commit, like I should have ideally, but I did do this a while back, so that is sorted too.

@davidhassell
Copy link
Collaborator Author

Thanks, Sadie

@davidhassell davidhassell merged commit bf42905 into NCAS-CMS:master Oct 1, 2021
@davidhassell davidhassell added this to the 3.11.0 milestone Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve verbose information output from cf.aggregate

2 participants