-
Notifications
You must be signed in to change notification settings - Fork 26
Conformance rules page #54
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
Conformance rules page #54
Conversation
ChrisBarker-NOAA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this -- it looks like a great start.
I have not had a chance to review in detail, but didn't see any issues yet.
Maybe you could put a big "DRAFT" note at the top, and then we could merge it. It would be nice to have it published for easier review and comment.
As for you code -- is this it:
Maybe this organization could host it and others can contribute.
That is where I'm working, but it's really only a start. |
You're right, it is very much a draft at this point. Also, I see as I work into the first-draft checker code, that I'm not even done making changes here (I already see I may need to add some statemnets, so I haven't really got to the the first version) Thanks so much for looking anyway, @ChrisBarker-NOAA |
I'll put this in draft for now, just to be clear. |
|
Ok, I finally got around to some serious work on https://github.com/pp-mo/ugrid-checks/tree/main/lib/ugrid_checks I'm now confident that this set of rules is workable (from the checker POV), so I took it out of draft. My remaining concern here is to clearly label this "DRAFT", as @ChrisBarker-NOAA suggests. |
ChrisBarker-NOAA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A Watermark would be nice, but I have no idea how to do it, and I dont hink it's worth all that much effort.
I think a big:
"THIS IS A DRAFT" at the top of the page (with maybe a touch of explanatory text) is totally fine.
|
Ok, I think I'm happy with this now. FYI I tried a bunch of ideas for 'watermarking', but none of them interacted predictably with markdown/mkdocs, so I've gone with a simpler approach which totally avoids CSS (as you suggested @ChrisBarker-NOAA !) |
Regarding that, if you merge does this automatically appear on the website itself ? |
OK I think I now understand that it does, via Travis ? |
|
yes, I think they auto-build -- though I don't know that it's been tested in a while, so we'll see :-) @core: I think it's a good idea to merge this, but I'd like at least one other person to agree. If any of you do agree, go ahead and merge. |
|
Hi @ChrisBarker-NOAA As it is pretty functional now (I have been actually using it!), I wanted to share it for internal use. As it made sense for those README usage instructions to refer to a list of conformance rules, just for now I have linked that account to a private RTD build including the current conformance page. In view of @davidhassell recent progress on cf-convention/cf-conventions#353, it would be nice to come to some at-least-interim agreement on the conformance content here. Does it seem like we can address these things now, or do you see a better (future) time coming ? |
|
@pp-mo: This looks really great! I've taken a quick look at your code, and it looks really nicely structured. tested, etc. I haven't tried it much -- only one small example, file, but it worked well on that one :-) Coverage of check,py is %80 - not perfect, but pretty good. As to where to go now: If you think it's ready -- maybe we should make a conda=forge package for it - a lot of u use conda for netcdf works, etc.
I support that -- makes all the sense in the world
I didn't see anything scary :-)
The challenge is folks finding the time to review it -- I gave it a quick once over and didn't see anything to complain about. So maybe we can ping the group ( I wonder if the old email list is still functional?) to ask for review. But I'm a believer that something mostly done is better than nothing :-) -- after all, the UGRID spec was a draft for a very long time. So even if we can't get much review, I'd be happy to see it merged in as a draft.
Well, I don't know of anyone trying to use UGRID for 3-D volumes, and I haven't seen anyone step up to tackle it, so I think we can simply say that 3D support is tentative and not CF compliant.
Now is better than never -- let's do it! (barring any objections from anyone else in the group) @hrajagers, @rsignell-usgs, @ocefpaf : any thoughts? |
|
@ChrisBarker-NOAA thanks so much for your attention + thoughtful discussion.
I think I can easily sort that out. We do use conda use here mostly anyway, but it seemed that pip/PyPI was jusy a bit quicker for minimal effort to get an initial release out. I noted that the structure of conda recipes has shifted a bit since I last handled one (only a few months ago!), but I am lucky to have other people in my group who do have a good up-to-date knowledge, so I hope to progress that soon.
Yes indeed ! I have been doing occasional coverage checks, and I think all the actual checking code is well covered, but other less essential aspects are still a bit short of testing. Do you feel that a coverage check should be built into CI testing ?
OK that is encouraging. And I think it makes great sense, in the spirit of your
|
|
Hi @ChrisBarker-NOAA quick update. The coverage is now much higher, and for sure it was worth writing proper tests because I found at least 2 more bugs with the structure-report : ( It really was a bit last-minute and not ready ) What may interest you more ... with a little help from @bjlittle it is now also available on conda-forge 🔔 ✔️ However ... I have also in this process learnt that there is some prior art I was not previously aware of, So, I will next be engaging with that project and seeing where this takes us. I likewise been asked by a couple of colleagues whether this would eventually be subsumed in cf-checker. |
|
Latest 390ec65 to address the problem identified pp-mo/ugrid-checks#34 Unfortunately, this demonstrates the lack of oversight on my proposals ! It's also a sufficiently prominent bug that I intend to issue a further v0.1.2 bugfix release for ugrid-checks. |
|
Hi @ChrisBarker-NOAA , did you see this comment, and how it relates to this ? I'd be happy to work on anything that needs fixing, here, if it means we can establish that link with CF. I do wonder if this addition really prompts a version increment, though, or even a release cut. |
|
As for versioning -- the convention version is a version of the convention itself, not the document. So any changes/updated to the document(s) shouldn't change the version number of the convention. That being said, it there's something to be said for tracking the version of the documents -- maybe a separate version number, or use the patch version? (e.g. 1.0.3 for a third update to the docs that don't change the convention) |
|
@hrajagers, @rsignell-usgs, @ocefpaf, or anyone else: I think we should merge this -- a draft is better than nothing, particularly given that UGRID may be officially mentioned in CF soon (cf-convention/cf-conventions#153) But I'd like at least one other voice of consent :-) |
|
Hello, UGRID is all set to be incorporated in to CF-1.11, with the only barrier being the creation of the UGRID conformance document. @ChrisBarker-NOAA suggested that merging this PR to publish the conformance rules as a draft would be fine for this purpose, and I agree. Is this something that you're all happy to do, do you think? Thanks, |
For reference, it does contain the slightly radical suggestion to omit the full 3D aspect. |
|
@pp-mo wrote: "For reference, it does contain the slightly radical suggestion to omit the full 3D aspect." As far as I could see -- it's only omitting 3D from the conformance rules -- which doesn't seem radical to me. Or does that mean a 3D mesh would be non-conforming by these rules, as opposed to conformance-unknown. If it would b enon-conforming, then we could call these conformance rules for < 3D meshes, and be done for now. |
|
Hi - remembering a comment from @hrajagers, 3D meshes are currently not fully defined, because the ordering of the nodes is ambiguous, and the suggestion was to fix the numbering, or drop 3D meshes until they're needed. The latter approach gained some support ... so not including them in the conformance doc seems reasonable to me (although I have no strong opinion, nor sway, here!) |
|
Ideally, we’d make the experimental nature of the 3D meshes more clear, but in the meantime, I think this is fine.-CHBChristopher Barker, Ph.D.OceanographerEmergency Response DivisionNOAA/NOS/OR&R (206) 526-6959 voice7600 Sand Point Way NE (206) 526-6329 faxSeattle, WA 98115 (206) 526-6317 main receptionOn Dec 8, 2022, at 11:53 AM, David Hassell ***@***.***> wrote:
Hi - remembering a comment from @hrajagers, 3D meshes are currently not fully defined, because the ordering of the nodes is ambiguous, and the suggestion was to fix the numbering, or drop 3D meshes until they're needed. The latter approach gained some support ... so not including them in the conformance doc seems reasonable to me (although I have no strong opinion, nor sway, here!)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
pp-mo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just reviewing this for the first time in a while, spotted a few things that can be improved.
But N.B. cannot approve or require changes to your own PR !!
Co-authored-by: Patrick Peglar <[email protected]>
Co-authored-by: Patrick Peglar <[email protected]>
Co-authored-by: Patrick Peglar <[email protected]>
Co-authored-by: Patrick Peglar <[email protected]>
This is an attempt to provide a reasonably watertight set of "conformance rules" for UGRID.
( Draft build I have up : https://ugrid-conventions.readthedocs.io/en/conformance/conformance/ )
This was identified as a desirable to progress #52.
Also mentioned in more detail to in the CF discussion cf-convention/cf-conventions#153 : I think the most recent summary/agreement is that stated in this @hrajagers comment
My own particular interest is that I am developing some code for UGRID compliance checking.
For that, I think it is highly desirable to have a reference document for warning messages to refer to (as the cf-checker utility does).
So ideally, we would publish it here : then it would be public, agreed, "official" and maintainable.
Having said all that, I doubt we will be in hurry to merge this, because my approach is probably a bit narrow, and certainly rather "opinionated".
What I am hoping for, at least, is some informed overview and comment.
So... a handy checklist of some aspects that I (already) think might prove contentious...
topology_dimension= 0as it has lately been suggested we may drop these altogether in the current form.