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 index to segment #102

Merged
merged 2 commits into from
Feb 16, 2020
Merged

add index to segment #102

merged 2 commits into from
Feb 16, 2020

Conversation

tcapelle
Copy link
Contributor

@tcapelle tcapelle commented Feb 5, 2020

The segments don't have proper index property.
This PR adds the index to segment definition.

@anomam
Copy link
Contributor

anomam commented Feb 12, 2020

hey @tcapelle so sorry for the delay on this. Thanks for pushing this patch!
Any chance you could add a small unit test to make sure it does what we expect please?

Copy link
Contributor

@anomam anomam left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @tcapelle !


#check segment index
assert len(ts_pvrow.front.list_segments) == 3
assert [s.index for s in ts_pvrow.front.list_segments] == [0,1,2]
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks @tcapelle ! Just a small pep8 issue here but I'll handle it in the new release 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I not very fond of pep8 =)

@anomam anomam merged commit 56eac34 into SunPower:master Feb 16, 2020
@anomam anomam added this to the v1.4.2 milestone Feb 5, 2021
@anomam anomam mentioned this pull request Feb 7, 2021
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