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

The SOM data structure - Associative arrays #1

Open
borismarin opened this issue Aug 1, 2013 · 1 comment
Open

The SOM data structure - Associative arrays #1

borismarin opened this issue Aug 1, 2013 · 1 comment
Labels

Comments

@borismarin
Copy link
Owner

Being unordered collections, associative arrays can potentially introduce problems for code generation. Currently, we are being careful when parsing the JSON files, using OrderedDict in python or LinkedHashMap in Java. An alternative approach would be using arrays:
'paramenter_names': [pname_i]
'parameter_values': [p_i]
which would possibly be more convenient for codegen via templates.

@borismarin
Copy link
Owner Author

YAML solves this with ordered mappings:

#yaml ordered mapping
# dXdt for harm osc
- x : "y"
- y : "-x"

@borismarin borismarin mentioned this issue Jan 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant