-
Notifications
You must be signed in to change notification settings - Fork 80
fix connection problem.zoo #577
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
base: dev
Are you sure you want to change the base?
Conversation
58704fe
to
b49d3dd
Compare
Code Coverage Summary
Results for commit: 7c6567c Minimum allowed coverage is ♻️ This comment has been updated with latest results |
bdf61ad
to
a81b090
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a connection problem (issue #572) in the PINA library by refactoring how the InversePoisson2DSquareProblem handles data loading. The solution moves from mandatory data downloading at module import time to optional data loading during class instantiation, making tests more resilient to network connectivity issues.
- Refactored InversePoisson2DSquareProblem to support optional data loading with configurable data size
- Updated all solver tests to use the new constructor parameters for faster test execution
- Added comprehensive test coverage for the new functionality with proper error handling
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
pina/problem/zoo/inverse_poisson_2d_square.py | Refactored class to support optional data loading with new constructor parameters and error handling |
tests/test_problem_zoo/test_inverse_poisson_2d_square.py | Added parametrized tests for new constructor options and error conditions |
tests/test_solver/test_pinn.py | Updated to use new constructor with small data size for faster testing |
tests/test_solver/test_rba_pinn.py | Updated to use new constructor with small data size for faster testing |
tests/test_solver/test_gradient_pinn.py | Updated to use new constructor with small data size for faster testing |
tests/test_solver/test_competitive_pinn.py | Updated to use new constructor with small data size for faster testing |
tests/test_solver/test_self_adaptive_pinn.py | Updated to use new constructor with small data size for faster testing |
Description
This PR fixes #572.
Checklist