Repository navigation
refactor: simplify data module and condition layer #837
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
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
68f2a70
refactor: simplify data module and condition layer
ndem0 fa072bb
feat: add GraphInputTargetCondition and Graph.create_subgraph
ndem0 f97397e
fix: align solvers, weighting, and tests with new DataModule API
ndem0 d9623f5
docs: restructure API navigation and fix build warnings
ndem0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| pina.adaptive_function | ||
| ====================== | ||
|
|
||
| .. toctree:: | ||
| :titlesonly: | ||
|
|
||
| Adaptive Function Interface <adaptive_function_interface> | ||
| Base Adaptive Function <base_adaptive_function> | ||
| Adaptive CELU <adaptive_celu> | ||
| Adaptive ELU <adaptive_elu> | ||
| Adaptive Exp <adaptive_exp> | ||
| Adaptive GELU <adaptive_gelu> | ||
| Adaptive Mish <adaptive_mish> | ||
| Adaptive ReLU <adaptive_relu> | ||
| Adaptive Sigmoid <adaptive_sigmoid> | ||
| Adaptive SiLU <adaptive_silu> | ||
| Adaptive SIREN <adaptive_siren> | ||
| Adaptive Softmax <adaptive_softmax> | ||
| Adaptive Softmin <adaptive_softmin> | ||
| Adaptive Tanh <adaptive_tanh> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| pina.callback | ||
| ============= | ||
|
|
||
| .. toctree:: | ||
| :titlesonly: | ||
|
|
||
| Switch Optimizer <optim/switch_optimizer> | ||
| Switch Scheduler <optim/switch_scheduler> | ||
| Refinement Interface <refinement/refinement_interface> | ||
| Base Refinement <refinement/base_refinement> | ||
| R3 Refinement <refinement/r3_refinement> | ||
| Data Normalizer <processing/data_normalizer> | ||
| Metric Tracker <processing/metric_tracker> | ||
| PINA Progress Bar <processing/pina_progress_bar> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .. docmeta:: | ||
| :last_reviewed: 2026-11-05 | ||
|
|
||
|
|
||
| Graph Condition | ||
| ============================= | ||
|
|
||
| .. currentmodule:: pina.condition.graph_condition | ||
|
|
||
| .. autoclass:: pina._src.condition.graph_condition.GraphCondition | ||
| :members: | ||
| :show-inheritance: |
12 changes: 12 additions & 0 deletions
12
docs/source/_rst/condition/graph_input_equation_condition.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .. docmeta:: | ||
| :last_reviewed: 2026-11-05 | ||
|
|
||
|
|
||
| Graph Input Equation Condition | ||
| ================================= | ||
|
|
||
| .. currentmodule:: pina.condition.graph_input_equation_condition | ||
|
|
||
| .. autoclass:: pina._src.condition.graph_input_equation_condition.GraphInputEquationCondition | ||
| :members: | ||
| :show-inheritance: |
12 changes: 12 additions & 0 deletions
12
docs/source/_rst/condition/graph_input_target_condition.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .. docmeta:: | ||
| :last_reviewed: 2026-11-05 | ||
|
|
||
|
|
||
| Graph Input Target Condition | ||
| ============================== | ||
|
|
||
| .. currentmodule:: pina.condition.graph_input_target_condition | ||
|
|
||
| .. autoclass:: pina._src.condition.graph_input_target_condition.GraphInputTargetCondition | ||
| :members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| pina.condition | ||
| ============== | ||
|
|
||
| .. toctree:: | ||
| :titlesonly: | ||
|
|
||
| Condition Interface <condition_interface> | ||
| Base Condition <base_condition> | ||
| Condition <condition> | ||
| Domain Equation Condition <domain_equation_condition> | ||
| Graph Condition <graph_condition> | ||
| Graph Input Equation Condition <graph_input_equation_condition> | ||
| Graph Input Target Condition <graph_input_target_condition> | ||
| Graph Time Series Condition <graph_time_series_condition> | ||
| Input Equation Condition <input_equation_condition> | ||
| Input Target Condition <input_target_condition> | ||
| Tensor Condition <tensor_condition> | ||
| Time Series Condition <time_series_condition> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .. docmeta:: | ||
| :last_reviewed: 2026-11-05 | ||
|
|
||
|
|
||
| Tensor Condition | ||
| ============================= | ||
|
|
||
| .. currentmodule:: pina.condition.tensor_condition | ||
|
|
||
| .. autoclass:: pina._src.condition.tensor_condition.TensorCondition | ||
| :members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.