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 broadcast to log message #333

Merged
merged 1 commit into from
Dec 18, 2023
Merged

add broadcast to log message #333

merged 1 commit into from
Dec 18, 2023

Conversation

grzesir
Copy link
Contributor

@grzesir grzesir commented Dec 18, 2023

No description provided.

Copy link
Contributor

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

The Korbit AI Mentor has reviewed your code. To discuss an issue, reply using the tag @korbit-ai-mentor.


Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

@@ -318,7 +318,7 @@ def risk_free_rate(self):

# =======Helper methods=======================

def log_message(self, message, color=None):
def log_message(self, message, color=None, broadcast=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

category Bug Risk priority 7

The new 'broadcast' parameter in the 'log_message' function is not used anywhere in the function. This could lead to confusion for other developers who might expect this parameter to affect the function's behavior. If the parameter is not needed, consider removing it to avoid confusion. If it is needed, make sure to implement its functionality within the function.

@@ -5,7 +5,7 @@

setuptools.setup(
name="lumibot",
version="2.9.7",
version="2.9.8",
Copy link
Contributor

Choose a reason for hiding this comment

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

category Formatting Improvements priority 6

The version number has been updated in the setup.py file, but there is no information in the pull request description about what changes have been made that warrant this version update. It's important to provide this information so that other developers can understand what changes have been made and why the version number has been updated.

@@ -318,7 +318,7 @@ def risk_free_rate(self):

# =======Helper methods=======================

def log_message(self, message, color=None):
def log_message(self, message, color=None, broadcast=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

category Formatting Improvements priority 5

The 'broadcast' parameter is not documented in the function's docstring. It's important to keep the documentation up to date with the code to ensure that other developers can understand the purpose and usage of each parameter.

Copy link
Collaborator

@davidlatte davidlatte left a comment

Choose a reason for hiding this comment

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

Doesn't actually do anything yet ...

@grzesir grzesir merged commit 5814d38 into dev Dec 18, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants