Code Monkey home page Code Monkey logo

Comments (10)

tomkralidis avatar tomkralidis commented on July 28, 2024 1

Fixed thanks @RousseauLambertLP good catch!

from pygeometa.

tomkralidis avatar tomkralidis commented on July 28, 2024

Thanks @alexandreleroux. Questions:

  • MCF version is a required value, so if it's missing it's an error
  • how do we manage MCF versions? Suggest we support with pygeometa versions major versions
  • what's the nature of the behaviour we're looking for? i.e.:
    • pygeometa manages versions in an n-1 fashion, i.e. its current version and the previous major version?
    • if a version is not supported do we throw error or warning and parse as best we can?

from pygeometa.

alexandreleroux avatar alexandreleroux commented on July 28, 2024

@tomkralidis good questions

  • I confirm: if an MCF file doesn't state its version, then an error is provided
  • Management of versions, when a new MCF version is created:
    • the sample.yml should be updated accordingly
    • pygeometa documentation should be updated accordingly
    • pygeometa should be tested against this new MCF version
    • if tests succeed, the next pygeometa release must support the new MCF version at the same time that the new MCF version specification is released
  • if pygeometa is being ran against an MCF version that is not supported, I agree with throwing an error and trying to parse nonetheless

It's still unclear how MCF versions will evolve. Maybe it will be worth later on to have a script that automatically update MCF files from one version to the latest one. We'll see with usage.

Makes sense?

from pygeometa.

tomkralidis avatar tomkralidis commented on July 28, 2024

+1, will have something soon.

from pygeometa.

tomkralidis avatar tomkralidis commented on July 28, 2024

Implemented in #87. Documentation needs to be updated.

from pygeometa.

RousseauLambertLP avatar RousseauLambertLP commented on July 28, 2024

Looking at the code, mcf_versions is initialized twice (L154 and L224) and used only in line 226.

I think we could remove one of the line where it's initialized. I tested it without line 154 and it works fine.

from pygeometa.

RousseauLambertLP avatar RousseauLambertLP commented on July 28, 2024

I did a short version section in the MCF doc.

See:

https://github.com/RousseauLambertLP/pygeometa/blob/mcf-version-doc/doc/MCF_Reference.md#version

from pygeometa.

alexandreleroux avatar alexandreleroux commented on July 28, 2024

thanks @RousseauLambertLP , good work :-) Comments:

  • typo: pygeometa doesn't have a capital P
  • why do we state that pygeometa will support "previous major MCF versions"? I'm not certain we want that! :-)
  • typo: sentence ends with a , instead of a .

from pygeometa.

RousseauLambertLP avatar RousseauLambertLP commented on July 28, 2024

I though from the previous comments that we wanted to support the previous (n-1) major version. We could removed it for now since we are at version 1...

from pygeometa.

RousseauLambertLP avatar RousseauLambertLP commented on July 28, 2024

Closing the issue, pygeometa validates MCF version and the doc was updated accordingly.

from pygeometa.

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.