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

Use suffixes in expressions #67

Open
jonathanjfshaw opened this issue Apr 25, 2020 · 0 comments
Open

Use suffixes in expressions #67

jonathanjfshaw opened this issue Apr 25, 2020 · 0 comments

Comments

@jonathanjfshaw
Copy link
Contributor

In #51 our discussion diversified to include the possibility of using suffixes (instead of port names) in expressions.

For example:

nodes: 
    - id: num 
      ...
    - id: den
      ... 
    - id: divide
      module: timeflux.nodes.expression
      class: Expression
      params:
        eval_on: ports
        expr: num/den   // instead of i_num/i_den
    edges:
    - source: num
      target: divide:num
    - source: den
      target: divide:den

@bertrandlalo liked the idea, but added:
"But I'm thinking that this would also imply that the user couldn't use numbers as suffix then, otherwise it may be confusing with expressions such as i_1 + 5*i_2, or else..."

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