Comments (7)
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.
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.
Group decission pending.
Arguments for vals.Nothing() as default validator
from qcodes.
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.
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.
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.
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)
- Make it possible to use ConnectionPlus as a context manager
- Non-gridded data export to netcdf HOT 3
- Captured_run_id is incorrect if run has been inserted HOT 1
- Pyvisa sim instruments are not cleanup on close. HOT 1
- Lakeshore 336 Driver with USB interface not connecting HOT 9
- Random error in test_logger HOT 3
- Agilent E8257D Instrument Driver Bug in on() and off() Methods HOT 5
- Code coverage jumps by 10 lines
- Warning when calling data_set.cache.load_data HOT 1
- Acccessing a faulty property of an instrument throws obscure error.
- print_readable_snapshot() of instrument modules without parameters broken.
- Random failure in do_nd test HOT 2
- Cannot exit ipython with running qcodes.Monitor() HOT 4
- Add redirects to new documentation? HOT 2
- Error when running `Infiniium.py` driver file HOT 4
- Parameter.__getitem__ behavior HOT 5
- Ignored exception on ci in windows related to monitor and socket. HOT 1
- Alazar example (and driver) is broken HOT 2
- Parsing Error on Quantum Design DynaCool
- partial auto completion when coding HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qcodes.