You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
YamlRead('forces_1_MOD.txt') will import the 'stats' fields but none of the
'grains'/'walls'/'contacts' fields from forces_1_MOD.txt. I get the error
message:
Warning: Out of range or non-integer values truncated during conversion to
character.
> In ReadYamlRaw>scan_map at 181
In ReadYamlRaw>scan at 118
In ReadYamlRaw>scan_map at 186
In ReadYamlRaw>scan at 118
In ReadYamlRaw>load_yaml at 78
In ReadYamlRaw at 42
In ReadYaml at 48
The problem is that the latter three are numbered fields; changing the field
name to have an initial character (as in grains->g0 in the txt file) will
correctly import that data into the struct.
I'm using yamlread on fedora with matlab 2012/3; it passes the self test. I
tried modifying the YamlReadRaw lines where the problem occurs (in scan_map)
but that failed. Matlab doesn't want struct names to be numerical values, but
perhaps this restriction for map names is a yaml-wide standard?
Original issue reported on code.google.com by j.a.dijk...@gmail.com on 21 Dec 2013 at 10:18
Original issue reported on code.google.com by
j.a.dijk...@gmail.com
on 21 Dec 2013 at 10:18Attachments:
The text was updated successfully, but these errors were encountered: