Skip to content

add check for cyc controller, delete extra transform#95

Open
kavyasreedhar wants to merge 4 commits intomasterfrom
smallcleanup
Open

add check for cyc controller, delete extra transform#95
kavyasreedhar wants to merge 4 commits intomasterfrom
smallcleanup

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

# 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