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

scan_map error: numbered map names #13

Open
GoogleCodeExporter opened this issue Jul 22, 2015 · 0 comments
Open

scan_map error: numbered map names #13

GoogleCodeExporter opened this issue Jul 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Attachments:

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

1 participant