Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: numeric settings are now read as character arrays #15

Open
raacampbell opened this issue Jan 11, 2017 · 10 comments
Open

Regression: numeric settings are now read as character arrays #15

raacampbell opened this issue Jan 11, 2017 · 10 comments
Assignees

Comments

@raacampbell
Copy link
Collaborator

It looks like the changes for reading sample IDs starting with a number or a zero have screwed up the reading of the settings file. So it now reads numeric settings as strings which made me think I had a bug here: 83b1568 That fixed it by accident but now we can't pan because the pause setting for the keyboard pan is broken.

@raacampbell raacampbell changed the title Regression Regression: numeric settings are now read as character arrays Jan 11, 2017
@raacampbell
Copy link
Collaborator Author

raacampbell commented Jan 11, 2017

Hmmm... So it's just crap that starts with a zero.

>> m=masiv.yaml.readSimpleYAML('masivPrefs.yml');m.navigation

ans = 

  struct with fields:

            panIncrement: [10 120]
         scrollIncrement: [10 1]
                zoomRate: 1.5000
           panModeInvert: '0'
        scrollZoomInvert: 1
       scrollLayerInvert: 1
    keyboardUpdatePeriod: '0.005'

@raacampbell raacampbell self-assigned this Jan 11, 2017
@raacampbell
Copy link
Collaborator Author

I'll do this. I'll scale the heights of neat software development by doing it with a unit test.

@alexanderbrown
Copy link
Collaborator

alexanderbrown commented Jan 11, 2017 via email

@raacampbell
Copy link
Collaborator Author

I'm on it right now.

@alexanderbrown
Copy link
Collaborator

alexanderbrown commented Jan 11, 2017 via email

@raacampbell
Copy link
Collaborator Author

Yes, that seems reasonable.

@raacampbell
Copy link
Collaborator Author

Except that this won't catch the problematic YAML that we were trying to fix, since there stackName was equal to 01 with no characters. I think the only way to fix that would be to force it to read certain settings as a settings (or certain files) a string.

@alexanderbrown
Copy link
Collaborator

alexanderbrown commented Jan 11, 2017 via email

@raacampbell
Copy link
Collaborator Author

The saga continues: fd8fb9e. I think we're now good. It passes the tests and MaSIV works again.

@alexanderbrown
Copy link
Collaborator

Looks good, makes sense.

Logically, there should be no number, saved by matlab, that is a whole number, with leading zeros.

He says, fingers crossed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants