kutaslab / fitgrid

Multichannel event-related time-series regression modeling for EEG, MEG, and sensor array data
https://kutaslab.github.io/fitgrid
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

YAML "yes" -> Fitgrid 1 #172

Closed eprovenz closed 4 years ago

eprovenz commented 4 years ago

When I put this in my yaml header:

q1: yes

it ends up as a 1 in my fitgrid object.

With Tom, we inspected the data in pygarv and saw that it was labelled as "q1: True" in pygarv

turbach commented 4 years ago

@eprovenz this is expected behavior in YAML 1.1 https://yaml.org/spec/1.1/

Use quotes, "yes" to tell YAML you want the three charcter string rather than boolean True/False 1/0.

This behavior changes in YAML 1.2, the three characters are interpreted as a string.