Skip to content

Comments

PPBC skeleton class implementation#59

Merged
VladIftime merged 28 commits intomainfrom
Dev-VladIftime-Kiflin-PPBC
Jan 13, 2025
Merged

PPBC skeleton class implementation#59
VladIftime merged 28 commits intomainfrom
Dev-VladIftime-Kiflin-PPBC

Conversation

@VladIftime
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Thanks! Please also check your own PR's diff, and provide some review instructions. This is a large PR of several thousand lines. My first look tells me there are build files included that shouldn't be included. Please remove those.

Copy link
Collaborator

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

The test files that were touched are all about FRBC?

elif type(field_type).__name__ == "_LiteralGenericAlias":
value = field_type.__args__[0]
else:
breakpoint()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Leftover breakpoint?

@VladIftime VladIftime changed the title Fixed the Gen_unit test and implemented PPBC PPBC skeleton class implementation Jan 8, 2025
@VladIftime VladIftime requested a review from Flix6x January 8, 2025 11:15
Copy link
Collaborator

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Thanks. It looks like we could merge this soon without problems. I only request clearing up some of the TODOs.

self, conn: "S2Connection", msg: S2Message, send_okay: typing.Callable[[], None]
) -> None: ...

# TODO
Copy link
Collaborator

Choose a reason for hiding this comment

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

These TODOs should mention an action or a GitHub Issue.

Flix6x and others added 6 commits January 13, 2025 12:37
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Copy link
Collaborator

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Great!

@VladIftime VladIftime merged commit 671f0e9 into main Jan 13, 2025
19 checks passed
@Flix6x Flix6x deleted the Dev-VladIftime-Kiflin-PPBC branch January 13, 2025 11:58
Flix6x pushed a commit that referenced this pull request Jan 13, 2025
* PPBC

* Generated classes

* PPBC sub-modules created

* PPBC message types

* PPBC fixed issues with wrong class names and the gen_unit tests

* Removed the build files

* Ignore the randomly generated unit tests

* Stop tracking ignored files

* Refactor FRBC for better readability and add TODO comments for abstract methods

* Remove unused imports from PPBC modules

* Added the frbcs tests back

* Added the frbcs tests back

* Reverted example_frbc_type.py to put it on a different PR

* Reverted example_frbc_type.py to put it on a different PR

* Reverted src/s2python/generated/gen_s2.py to put it on a different PR

* Reverted development_utilities/gen_unit_test_template.py to put it on a different PR

* Reverted the frbc unit tests  to put them on a different PR

* Update pylint configuration to disable W0511 for TODOs and fix type ignore comments in PPBCPowerSequenceContainerStatu

* Refactor type annotations in PPBCPowerSequenceContainerStatus to use Union for optional fields

* Add type ignore comments for assignment in PPBC model fields

* Remove unused import of Duration in ppbc_power_sequence_container_status.py

* Update src/s2python/s2_control_type.py

* fix: replace generic TODOs with developer instructions

Signed-off-by: F.N. Claessen <felix@seita.nl>

* chore: check for generic TODOs

Signed-off-by: F.N. Claessen <felix@seita.nl>

* chore: pylint W0107

Signed-off-by: F.N. Claessen <felix@seita.nl>

* chore: pylint W0107 again

Signed-off-by: F.N. Claessen <felix@seita.nl>

* W2301 from pylint fix

---------

Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Co-authored-by: F.N. Claessen <felix@seita.nl>

(cherry picked from commit 671f0e9)
Signed-off-by: F.N. Claessen <felix@seita.nl>
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