mgunyho
mgunyho
Hi, I came across this PR and would like to comment. I see the benefit of `self.param_name = ...` for autocompletion and static analysis, and I think it should be...
> I do feel like the gain of making parameters static outweighs the issue by a significant margin I agree, having to type the name twice is not *too* bad....
Hmm, maybe this is not perfect either, you can't access `self` in the decorator.
Has there been any work on this? I would very much like to add metadata to my runs.
Alright, I can try to look into this at some point, although I'm not that familiar with SQL.
The same happens if I pass it as a numpy array (either `np.array([1,2,3])` or more explicitly `np.array([1,2,3], dtype=np.int)`). It also doesn't matter whether the float or int array is first....
So the test is now ```python def test_sweep_int_vs_float(): float_param = ManualParameter("float_param", initial_value=0.0) int_param = ManualParameter("int_param", vals=Ints(0, 100)) dond(ArraySweep(int_param, [1, 2, 3]), float_param) ``` I actually had something slightly different in...
To clarify, here's a failing test for this: ```python def test_dond_without_measurement_params(): a = ManualParameter("a", initial_value=0) with pytest.raises( ValueError ): dond(ArraySweep(a, [1, 2, 3])) ```
Thanks for the PR! I like the idea of "cd and then exit", and alt-enter seems like a good default keyboard shortcut for that. However, the `--enter-is-cd-and-exit` and `--esc-is-cancel` options...
I have now implemeted custom keyboard mappings in #57, which will be released soon. With this, you can add ``` --map Enter:ChangeDirAndExit,Esc:NotSearching:ExitWithoutCd ``` to your shell config, which will map...