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

Refactor DataType.getPath #129

Open
dlindhol opened this issue Aug 25, 2020 · 0 comments
Open

Refactor DataType.getPath #129

dlindhol opened this issue Aug 25, 2020 · 0 comments

Comments

@dlindhol
Copy link
Member

Instead of relying on flattening the model, which introduces the need for dots (".") in identifiers, find a more functional routine to traverse the graph of the model to map a given variable to its value in a Sample.

Note that the Scalars and nested Functions within the DataType (a.k.a. model) graph can be logically zipped with the Data values of a Sample. (Tuples map to the value representing the first element.) The goal of getPath is to provide a mapping from a given variable identifier to its location in a Sample. The implementation using SamplePath is open for redesign.

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

No branches or pull requests

1 participant