Skip to content

Conversation

@medha-14
Copy link
Contributor

@medha-14 medha-14 commented Jul 28, 2025

Description

This PR is based on #5056 and contains changes that build upon it.
Once #5056 is merged, the diff for this PR will automatically update to show only the relevant changes.

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #)

Important checks:

Please confirm the following before marking the PR as ready for review:

  • No style issues: nox -s pre-commit
  • All tests pass: nox -s tests
  • The documentation builds: nox -s doctests
  • Code is commented for hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@medha-14 medha-14 requested a review from a team as a code owner July 28, 2025 14:34
@medha-14 medha-14 marked this pull request as draft July 28, 2025 14:36
@agriyakhetarpal agriyakhetarpal added the GSoC 2025 Items being done as part of GSoC 2025 label Jul 28, 2025
@agriyakhetarpal
Copy link
Member

Hi @medha-14, I left a note on your other PR about how you can help us access a better diff: #5137 (comment)

cc: @Saransh-cpp @santacodes @valentinsulzer for reviews

Copy link
Member

@santacodes santacodes left a comment

Choose a reason for hiding this comment

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

@medha-14 left a note for you to work on, I will review it once again after my suggestion is addressed.

"my_model.json", battery_model=pybamm.lithium_ion.BaseModel()
)

# ✅ Process the model AFTER update() so the necessary .input_* keys get created
Copy link
Member

Choose a reason for hiding this comment

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

@medha-14 Could you clean up the comments and refine the test functions more, seems like this was generated through an LLM, not against it, I just want to be sure that we keep the code readable and works as intended if you haven't tested it. I think you can add a short docstring above each test function instead of comments. Also, if you see any test functions that are irrelevant or not needed, feel free to remove them.

Copy link
Member

Choose a reason for hiding this comment

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

I have the same suggestion here. I am also not against the use of AI models to generate code, but you must understand what the generated code does both from a microscopic level (say, what's happening in a specific test) and from a macroscopic one (what feature is being implemented, does the API match what we need, are we reusing functions we've previously defined, whether or not the AI system being used is confabulating code or not, etc.).

@valentinsulzer valentinsulzer changed the base branch from develop to 2plus1D-paper-plots August 21, 2025 16:05
@valentinsulzer valentinsulzer changed the base branch from 2plus1D-paper-plots to develop August 21, 2025 16:06
@medha-14 medha-14 closed this Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSoC 2025 Items being done as part of GSoC 2025

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants