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

Fix issues introduced by the benchmarking mode changes #363

Merged
merged 7 commits into from
Nov 29, 2024

Conversation

Adamantios
Copy link
Collaborator

Fixes the issues introduced in #347 and replaces #362.

Comment on lines -154 to +155
benchmarking_finished = False
day_increased = False
benchmarking_finished = None
day_increased = 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.

This was causing an issue in the normal flow.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Still trying to understand why None is a valid value and False not.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because otherwise the NONE event cannot ever be emitted from the round.

@@ -218,6 +219,7 @@ class DecisionMakerAbciApp(AbciApp[Event]):
Event.DONE: SubscriptionRound,
Event.NONE: FinishedWithoutDecisionRound,
Event.NO_MAJORITY: SamplingRound,
Event.ROUND_TIMEOUT: SamplingRound,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was causing an issue in the normal flow.

@@ -48,6 +48,7 @@ class SamplingRound(UpdateBetsRound):
get_name(SynchronizedData.benchmarking_finished),
get_name(SynchronizedData.simulated_day),
)
synchronized_data_class = SynchronizedData
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was causing an issue in the normal flow.

Copy link
Collaborator

Choose a reason for hiding this comment

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

still sampling is connected with two different SynchronizedData classes in two different abcis

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you elaborate on that?

@Adamantios Adamantios merged commit 6e0d9da into main Nov 29, 2024
18 checks passed
@Adamantios Adamantios deleted the fix/benchmarking branch November 29, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants