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

add check for cyc controller, delete extra transform #95

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kavyasreedhar
Copy link
Collaborator

small things that popped up when doing stuff for Joey...

  • transform strides and ranges is repeated twice, delete repeat
  • add check for cycle controller before transforming like for other controllers

@@ -145,7 +132,10 @@ def map_controller(controller, name):
print()

# Now transforms ranges and strides
(tform_extent, tform_cyc_strides) = transform_strides_and_ranges(ctrl_ranges, ctrl_cyc_strides, ctrl_dim)
tform_cyc_strides = None
if ctrl_cyc_strt is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happens if it is None?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If it's None, we don't call transform_strides_and_ranges on a controller that doesn't exist, which will throw some error. However, I don't remember what caused the need for this when we were testing with Joey before...I think the controller didn't exist for some reason, but that doesn't seem to make sense now...

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.

2 participants