Coder Social home page Coder Social logo

Sanitize inputs to writers about garnett HOT 5 CLOSED

glotzerlab avatar glotzerlab commented on August 23, 2024
Sanitize inputs to writers

from garnett.

Comments (5)

bdice avatar bdice commented on August 23, 2024

Original comment by Vyas Ramasubramani (Bitbucket: vramasub, GitHub: vyasr).


@csadorf edit if you think there are other points to be made here.

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by Vyas Ramasubramani (Bitbucket: vramasub, GitHub: vyasr).


@csadorf what checks would you want in place here? We mentioned checking dimensions and sanitizing to ensure numpy arrays, but aside from that I'm not sure what checks we could want. For the raw CIF coordinates we could also ensure that the coordinates are in fact fractional. I don't think there's a whole lot else we can check without being too restrictive though.

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).


I'm think that maybe want to test for NaNs and dimensions and that's it. Everything else may be out of scope.

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by Vyas Ramasubramani (Bitbucket: vramasub, GitHub: vyasr).


Fixes issue #37 regarding frame setter safety

from garnett.

bdice avatar bdice commented on August 23, 2024

Original comment by Carl Simon Adorf (Bitbucket: csadorf, GitHub: csadorf).


Merged in sanitize_writers (pull request #39)

Fixes issue #37 regarding frame setter safety

from garnett.

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.