Giter VIP home page Giter VIP logo

Comments (2)

Luthaf avatar Luthaf commented on September 26, 2024

The comments are on the previous grammar, the current one is in these files:

https://github.com/Luthaf/extended-xyz/blob/master/exyz-lark/extended-xyz-comment.lark
https://github.com/Luthaf/extended-xyz/blob/master/exyz-lark/extended-xyz.lark

do we really want to allow zero atoms?

I think that's a corner case likely enough to append to make it worth supporting. For example, GCMC simulations at low pressure would have a couple of frames along the "trajectory" with 0 atoms.

allow .5 as a valid float? It should.

Good point, I'll add a case for this


The other comments should be fixed by the lark grammar

where the use of '*' suggests that we allow zero row or column arrays.

new_style_array2d: "[" whitespaces? ( new_style_array1d ( whitespaces? "," whitespaces? new_style_array1d )* ) whitespaces? "]"

I don't see where the ":" separating entries for each property

atom_properties_list: "\""? "Properties" "\""? whitespaces? "=" whitespaces? "\""? single_atom_property (":" single_atom_property)* "\""?

from extended-xyz.

bernstei avatar bernstei commented on September 26, 2024

I hadn't thought about GCMC, and I suspect we don't allow it now, but I agree that it's worth supporting. Just need to make sure the number of atoms line is required to be >= 0, rather than > 0.

All the other changes look good.

from extended-xyz.

Related Issues (1)

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.