Git Product home page Git Product logo

Comments (7)

AdriaanRol avatar AdriaanRol commented on September 18, 2024

I think that the standard parameter class should be as general as possible, and therefore not include any assumptions on the input data, I think having Anything() as default validator makes sense.

from qcodes.

alexcjohnson avatar alexcjohnson commented on September 18, 2024

I'm not sure. Currently our data storage assumes all set and measured parameters will be numbers, and I think it will break if non-numeric data comes in, so I would kind of like it if you have to actively declare non-numeric valid inputs.

from qcodes.

AdriaanRol avatar AdriaanRol commented on September 18, 2024

Group decission pending.

Arguments for vals.Nothing() as default validator

from qcodes.

damazter avatar damazter commented on September 18, 2024

Not vals.Anything () ?

On 15 Jul 2016 11:01, "Adriaan" [email protected] wrote:

Group decission pending.

Arguments for vals.Nothing() as default validator


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
qdev-dk-archive#64 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJvAQonywyrwlYr6Zc6-sZrsQFCL1em1ks5qV6CxgaJpZM4H6GWu
.

from qcodes.

alexcjohnson avatar alexcjohnson commented on September 18, 2024

I don't like Anything() being the default because it encourages people to not validate input at all. If you want to explicitly say that, then fine. Also right now DataSet only accepts numbers (for now), so I want it to be explicit if you make a parameter that's not compatible with DataSet.

from qcodes.

damazter avatar damazter commented on September 18, 2024

I see your point, but I think I do not agree.
(Well vals.Nothing is better than vals.Anything)

I ended up worth a lot of parameters that take string Values. You can not
sweep them, but they are logged just fine.

The reason I promote .Anything is that the default domain of a mathematical
function is always the largest thing that makes sense. Also in computer
programming I learned that validations must be chosen such that they are
never too restrictive.

I see that there are distances between this and qcodes, but this is my 2
cents anyway.

But as said, I like "Nothing" more than "Numbers"

On 15 Jul 2016 11:56, "alexcjohnson" [email protected] wrote:

I don't like Anything() being the default because it encourages people to
not validate input at all. If you want to explicitly say that, then fine.
Also right now DataSet only accepts numbers (for now), so I want it to be
explicit if you make a parameter that's not compatible with DataSet.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
qdev-dk-archive#64 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJvAQsYsUBLZ04xJbbXMDDDwdk1v0Ra5ks5qV63FgaJpZM4H6GWu
.

from qcodes.

giulioungaretti avatar giulioungaretti commented on September 18, 2024

I think Number() is the sanest because the default is not the most general case but rather the most idiot proof //simple case.

from qcodes.

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.