Skip to content

Bugfix: Error printing lists of values #12

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

Merged
merged 4 commits into from
May 7, 2025
Merged

Bugfix: Error printing lists of values #12

merged 4 commits into from
May 7, 2025

Conversation

paulsaxe
Copy link
Contributor

@paulsaxe paulsaxe commented May 7, 2025

  • Fixed a problem printing variables that were a list of floats.

* Fixed a problem printing varaibles that were a list of floats.
@paulsaxe paulsaxe requested review from seamm and Copilot May 7, 2025 21:50
@paulsaxe paulsaxe added the bug Something isn't working label May 7, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

The PR fixes an issue where lists of float values were not printed correctly by converting each value to its string representation before printing.

  • Updated the docstring format in control_parameters_parameters.py
  • Fixed the printing of list values in control_parameters.py by converting floats to strings
  • Updated HISTORY.rst to log the bugfix (note the spelling error in "varaibles")

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
control_parameters_step/control_parameters_parameters.py Reformatted the docstring for clarity
control_parameters_step/control_parameters.py Added conversion of list elements to strings for printing
HISTORY.rst Added log entry of bugfix with a spelling mistake
Comments suppressed due to low confidence (1)

control_parameters_step/control_parameters.py:349

  • [nitpick] Consider renaming 'tmp' to a more descriptive name (e.g., 'string_values') to clearly reflect its purpose.
tmp = [str(v) for v in value]

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@seamm seamm merged commit b16ccd3 into main May 7, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants