Giter Site home page Giter Site logo

Comments (5)

sadielbartholomew avatar sadielbartholomew commented on August 22, 2024 1

Is the answer to that to add those keys to the DEBUG logging from NetCDFRead?

I have done that already and so I guess we can indeed test by searching for the 'file_version' result in the log output string, and that would mean no need to expose the _scan_only keyword. Sounds like a plan! When I move on from ES-DOC work I'll do that for #296 and finish and open it for review. Thanks.

from cfdm.

sadielbartholomew avatar sadielbartholomew commented on August 22, 2024

There is another parameter I would like to expose in cf.read that is available in cf.NetCDFRead.read, namely _scan_only. This one is of course only intended for internal use, but I can't find an elegant-enough (non-contrived) way to query on the read variables registered (read_vars dict) without it, and I want to see those for testing e.g. in the associated PR #296.

That said, I think it could be a useful user-facing method - so I propose to upgrade it to one, possibly as part of the API review for cf v4.0.0.

from cfdm.

davidhassell avatar davidhassell commented on August 22, 2024

Hi Sadie - what is the use case for querying the read_vars dict? (not doubting there is one - just wondered what you had in mind)

from cfdm.

sadielbartholomew avatar sadielbartholomew commented on August 22, 2024

In #296 I want to check that the correct read_vars["file_version"] and read_vars["UGRID_version"] (etc. for CFA version) get set, though perhaps we can just test that the ultimate Conventions property gets set, if we set it to the default e.g. CF-1.11 when an invalid value such as 1.6/1.7 is set?

from cfdm.

davidhassell avatar davidhassell commented on August 22, 2024

Is the answer to that to add those keys to the DEBUG logging from NetCDFRead?

from cfdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.