Add points/bounds formatting method and class, handling datetimes#6978
Add points/bounds formatting method and class, handling datetimes#6978ESadek-MO merged 8 commits intoSciTools:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6978 +/- ##
==========================================
+ Coverage 90.11% 90.12% +0.01%
==========================================
Files 91 91
Lines 24912 24951 +39
Branches 4675 4683 +8
==========================================
+ Hits 22449 22488 +39
Misses 1684 1684
Partials 779 779 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ESadek-MO
left a comment
There was a problem hiding this comment.
A couple of doc changes only! One of which is a whatsnew!
There was a problem hiding this comment.
Templating
This PR includes changes that may be worth sharing via templating. For each file listed below, please either:
- Action the suggestion via a pull request editing/adding the relevant file in the SciTools/.github
templates/directory. 1 - Raise an issue against the SciTools/.github repo for the above action if you really don't have 10mins spare right now. Include an assignee, to avoid it being forgotten.
- Dismiss the suggestion if the changes are not suitable for templating.
You will need to dismiss this review before this PR can be merged. Recommend the reviewer does this as their final action before merging, as this text will continually update as commits come in.
Template candidates
The following changed files are not currently templated, but their parent directories suggest they may be good candidates for a new template to be created:
Footnotes
-
Include this text in the PR body to avoid any notifications about applying the template changes back to the source repo!
@scitools-templating: please no update notification on: iris↩
Co-authored-by: Elias <110238618+ESadek-MO@users.noreply.github.com>
This change is unique to Iris, and more specifically this particular whatsnew
ESadek-MO
left a comment
There was a problem hiding this comment.
Thanks @stephenworsley !
Addresses #4508.
To access a numpy array of formatted strings for a coordinates points, for example, this can be called as follows:
Note that calling the points in this way avoids having to calculate the bounds and vice versa.
To print a formatted summary of both the points and bounds:
To format dates in a particular form, e.g:
Note that this can also format other data types like foat or int.