-
Notifications
You must be signed in to change notification settings - Fork 92
Renaming and Back Compatibility #457
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
Conversation
f100ce3 to
ded8d3d
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.
Why not avno_block.py ?
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.
I would go for average_neural_operator_block.py
pina/model/block/fourier.py
Outdated
| from ...utils import check_consistency | ||
|
|
||
| from pina.model.layers import ( | ||
| from pina.model.block import ( |
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.
is there a way to avoid from pina? Does from . import ... work?
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.
Yes, you should always prefer the relative import
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.
isn't better lowrank_block ?
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.
rbf_block ?
pina/solver/rom.py
Outdated
| import torch | ||
|
|
||
| from pina.solvers import SupervisedSolver | ||
| from pina.solver import SupervisedSolver |
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.
What do you think about from . import SupervisedSolver?
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.
Yes, you should always prefer the relative import
GiovanniCanali
left a comment
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.
Sorry for the spam. All suggestions refer to renaming files, following the guidelines in the Discussions. In addition to the commented files, we might rename file in test_model directory as well. What do you think?
pina/model/block/messa_passing.py
Outdated
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.
I would suggest to change the name from messa_passing.py to message_passing.py
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.
Ok, I removed the file cuz it was empty
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.
I would suggest to change the name from adaptive_func.py to adaptive_function.py
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.
I would suggest to change the name from adaptive_func_interface.py to adaptive_function_interface.py
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.
Typo: adaptive_refinement_callback
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.
I would suggest to rename from avno.py to average_neural_operator.py
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.
I would rename it as test_spectral_convolution.py
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.
Typo: test_adaptive_refinement_callback.py
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.
I would suggest: test_data_module.py
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.
I would suggest test_system_equation.py
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.
What about: test_reduced_order_model.py?
|
Thanks @gc031298 and @FilippoOlivo for the suggestions, I will try to fix them asap! |
* rm meta.py, plotter.py, writer.py * modify __init__ file * modify tests due to __init__ import
16a1f2f to
3d96141
Compare
|
Ready to merge on my side! |
Also for me! |
b003319 to
37c3caf
Compare
* Update pyproject.toml * Create a Workflow file to test formatting in PR
37c3caf to
eebb1c2
Compare
* Adding black as dev dependency * Formatting pina code * Formatting tests
In this PR I rename some modules using a singular convention #445 + add back compatibility for 0.1