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

Liu 349 #226

Closed
wants to merge 29 commits into from
Closed

Liu 349 #226

wants to merge 29 commits into from

Conversation

awicenec
Copy link
Contributor

We are working towards re-implementing parts of the translator engine. One big preparation step has been done in LIU-348 and that branch now forms the baseline for the rest of the work. In LIU-349 the following features have been implemented:

  • Changed a number of JSON field and variable names (nm --> name, tw and dw --> weight, sz --> size, node.text --> node.name, node.field.text --> node.field.name, loop-cxt --> loop-ctx, dt --> drop_type)
  • adjusted the translator and the engine display to use the new variables.
  • fixed a problem with the named port propagation in loops, which showed up when changing the above and lead to breaking some tests.
  • Adjusted the doxygen descriptions of the built-in components.
  • now there is only a name field, rather than a name and a text. The name is now also used to identify connected ports.
  • aligned all the test graphs with the changes, again to get the tests passing
  • added a new test graph to the EAGLE-graph-repo
    NOTE: These changes are also aligned already with changes in EAGLE that are currently sitting in the eagle-1022 branch.

# @param execution_time Execution Time/5/Float/ComponentParameter/readonly//False/False/Estimated execution time
# @param num_cpus No. of CPUs/1/Integer/ComponentParameter/readonly//False/False/Number of cores used
# @param group_start Group start/False/Boolean/ComponentParameter/readwrite//False/False/Is this node the start of a group?
# @param sleep_time sleep_time/5/Integer/ApplicationArgument/readwrite//False/False/The number of seconds to sleep
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor thought: Now that we don't have both a name AND text, we can remove the second occurrence of the parameter name (i.e. sleep_time) here. Would require updating dlg_paletteGen, so maybe worth doing in a seperate branch.

# @param num_cpus No. of CPUs/1/Integer/ComponentParameter/readonly//False/False/Number of cores used
# @param group_start Group start/False/Boolean/ComponentParameter/readwrite//False/False/Is this node the start of a group?
# @param sleep_time sleep_time/5/Integer/ApplicationArgument/readwrite//False/False/The number of seconds to sleep
# @param appclass appclass/dlg.apps.simple.RandomArrayApp/String/ComponentParameter/readonly//False/False/Application class
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've forgotten why you told me that you'd switched these all to use RandomArrayApp instead of their specific apps

# @param num_of_copies num_of_copies/4/Integer/ConstructParameter/readwrite//False/False/Specifies the number of replications of the content of the scatter construct
# @param group_start group_start/False/Boolean/ComponentParameter/readwrite//False/False/Is this node the start of a group?
# @param n_tries n_tries/1/Integer/ComponentParameter/readwrite//False/False/Specifies the number of times the 'run' method will be executed before finally giving up
# @param appclass appclass/dlg.apps.simple.GenericScatterApp/String/ComponentParameter/readonly//False/False/Application class
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one, and a few more below, are still the old specific app (e.g. GenericScatterApp) instead of the RandomArrayApp

daliuge-translator/dlg/dropmake/lg.py Outdated Show resolved Hide resolved
self._link_drops(slgn, tlgn, sdrop, tdrop, lk)
else:
lpaw = ("%s-%s" % (sid, tid)) in self_loop_aware_set
if (
slgn.group is not None
and slgn.group.is_loop
and lpaw
and slgn.h_level < tlgn.h_level
and slgn.h_level > tlgn.h_level
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this section of code, but it seems strange to swap the sign here and below without changing other logic. Just want to double check it is expected.

self._converted = False
self._h_level = None
self._h_level = None # hierarcht level
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo

@awicenec
Copy link
Contributor Author

awicenec commented May 2, 2023

I have addressed the issues raised and also a few additional problems. Closing this now.

@awicenec awicenec closed this May 2, 2023
@awicenec awicenec deleted the liu-349 branch May 2, 2023 05:41
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

Successfully merging this pull request may close these issues.

None yet

2 participants