ERROR: Cannot convert string to float

Yasmine El-Shamayleh's Avatar

Yasmine El-Shamayleh

23 Jun, 2021 08:20 PM

Hi Chris -

I noticed a somewhat annoying glitch today while training animals.

I wanted to change the position of the fixation point in the variables window and accidentally hit the space bar instead of a number. So the field for that parameter was ""

In this state, I get a repeating error and MWorks stop responding to any mouse clicks - and I have to force quite the program.

ERROR: Cannot convert string to float

Any way around this? Ideally MWorks would allow me to correct my mistake?

Finally - how do we save an animal's starting eye calibration offsets/gains so that they're automatically uploaded when we open our saved workspace?

Thanks,
Yasmine

  1. Support Staff 1 Posted by Christopher Sta... on 23 Jun, 2021 09:05 PM

    Christopher Stawarz's Avatar

    Hi Yasmine,

    I wanted to change the position of the fixation point in the variables window and accidentally hit the space bar instead of a number. So the field for that parameter was "". In this state, I get a repeating error and MWorks stop responding to any mouse clicks - and I have to force quite the program.

    I'm not sure why the error would be repeating so often that it overwhelms MWClient. But, yeah, that's a bad outcome.

    I don't think there's a way to prevent this kind of issue in general. However, maybe the variables window should discard inputs that are empty or consist only of blank space. I can't imagine a situation where someone would actually want to set a variable to such a value.

    Finally - how do we save an animal's starting eye calibration offsets/gains so that they're automatically uploaded when we open our saved workspace?

    You need to create a saved variable set. After you've established the offsets/gains, click the icon next to "Variable Set" in the main MWClient window. In the panel that appears, enter a name under "Create new variable set", then click "Create". Finally, save your workspace. The workspace file will include the name of the active variable set. When you open the workspace, the variable set will be loaded.

    There's a bit more info on variable sets in Saving and restoring client state.

    Cheers,
    Chris

  2. 2 Posted by Yasmine El-Sham... on 23 Jun, 2021 10:04 PM

    Yasmine El-Shamayleh's Avatar

    Hi Chris

    Super. Two quick responses!

    > However, maybe the variables window should discard inputs that are empty
    or consist only of blank space.

    Probably a reasonable way forward - but I defer to you of course.

    > You need to create a saved variable set.

    Will do - thanks!

    Yasmine

  3. Support Staff 3 Posted by Christopher Sta... on 16 Jul, 2021 03:25 PM

    Christopher Stawarz's Avatar

    Hi Yasmine,

    However, maybe the variables window should discard inputs that are empty or consist only of blank space.

    This change is done and will be in Monday's nightly build.

    Cheers,
    Chris

  4. 4 Posted by Yasmine El-Sham... on 16 Jul, 2021 04:15 PM

    Yasmine El-Shamayleh's Avatar

    Great. Thanks!
    Yasmine

  5. Christopher Stawarz closed this discussion on 16 Jul, 2021 04:27 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac