Giter Site home page Giter Site logo

Reserved Fields about qcschema HOT 10 OPEN

molssi avatar molssi commented on June 20, 2024
Reserved Fields

from qcschema.

Comments (10)

tovrstra avatar tovrstra commented on June 20, 2024

I agree that this a problem but making a list of reserved field names in the variables dictionary is not a robust solution, because you don't know exactly which names you want to add to the standard in future.

It would be better to only allow for some freedom with names in specific places to avoid such issues, e.g.

  • variables: only allow names that are set in the standard
  • other_variables: anything goes

This way, you can extend the schema easily with names in variables without causing collisions.

from qcschema.

dgasmith avatar dgasmith commented on June 20, 2024

@tovrstra Can you type a small snippet in a PR to this effect?

from qcschema.

tovrstra avatar tovrstra commented on June 20, 2024

Should I put it in the main README.md? I'll invent a preliminary list of approved names for variables.

from qcschema.

dgasmith avatar dgasmith commented on June 20, 2024

Would it make more sense to go into the Variables.md and change that name as well?

from qcschema.

tovrstra avatar tovrstra commented on June 20, 2024

ok

from qcschema.

tovrstra avatar tovrstra commented on June 20, 2024

Have to go now though.

from qcschema.

cryos avatar cryos commented on June 20, 2024

Would this be best served as outputs from a workshop discussing necessary reserved fields? Should we offer some whitelisted fields instead that we will never use, so that applications could extend the format?

from qcschema.

tovrstra avatar tovrstra commented on June 20, 2024

It would also be an option to whitelist fields with a prefix, e.g. anything that starts with custom or extra. It seems not as clean as a separate dictionary, but that is mostly a matter of taste.

from qcschema.

dgasmith avatar dgasmith commented on June 20, 2024

In QCArchive we added a single extras field that was whitelisted. This seems to work out well in all of our use cases. This is in line with other comments, but any thoughts on making it official?

from qcschema.

loriab avatar loriab commented on June 20, 2024

extras field has worked great for psi, and it's easy to remember. And not too hard to migrate a field from first-class into extras. +1 on making it official.

from qcschema.

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.