Skip to content

Conversation

Nomos11
Copy link
Collaborator

@Nomos11 Nomos11 commented Jul 29, 2025

with the infamous power 2 hack, but with a test which works

@Nomos11 Nomos11 requested a review from shumpohl July 29, 2025 15:05
Copy link

github-actions bot commented Jul 29, 2025

Test Results

    6 files      6 suites   7m 19s ⏱️
1 235 tests 1 173 ✅  62 💤 0 ❌
7 410 runs  7 038 ✅ 372 💤 0 ❌

Results for commit 60363e7.

♻️ This comment has been updated with latest results.



@property
def _pow_2_divisor(self) -> int:
Copy link
Member

Choose a reason for hiding this comment

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

CAn we move this to metadata?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

makes sense; forgot that this is already implemented.

like this or even without accessor?

Copy link
Member

Choose a reason for hiding this comment

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

I think we do not need to include it in the type system for now. Just add it as a dynamic property.

Question is, how to handle it for the waveform. whould we add a metadata field there as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

possibly, but the waveforms are not really used in the public interface anyway, so yagni?

Copy link
Member

Choose a reason for hiding this comment

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

We will need it to propagate properties like these.

@@ -1280,3 +1281,71 @@ def reversed(self) -> 'Waveform':

def __repr__(self):
return f"ReversedWaveform(inner={self._inner!r})"


class WaveformCollection():
Copy link
Member

Choose a reason for hiding this comment

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

Do we need WaveformCollection in the main repo?

I thnk it needs a different name and it belongs into a different file. I understand what the class is used for but I do not have a concept of what it actually represents (in terms of nesting). I think it is useful for general command table like devices, but needs more refinement before putting it into the main repo.

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