Skip to content
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

Regular grid interpolation #244

Merged
merged 25 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b01db55
added tests for regular grid interpolation
flabowski Jun 16, 2023
b3d3001
added regular grid interpolation module
flabowski Jun 16, 2023
fe25304
added some tests
flabowski Jun 17, 2023
880962b
wrapper for scipy's regular grid interpolation
flabowski Jun 17, 2023
ce6b8e4
removed some comments
flabowski Jun 17, 2023
8df7469
minor code style improvements
flabowski Jun 17, 2023
6977a9e
adjusted docsting
flabowski Jun 18, 2023
24bee31
added pre-processing to map points and values onto regular grid in 2D
flabowski Jun 19, 2023
b5835b8
modified pre-processing to map points and values onto regular grid in nD
flabowski Jun 19, 2023
a9deaa0
modified the regular grid interpolation so it works with the grid poi…
flabowski Jun 19, 2023
98d1425
removed useless fill_value argument
flabowski Jun 19, 2023
761fcde
added a doc file for the automatic doc generation of the new module
flabowski Jun 26, 2023
9326752
improved docstring of get_grid_axes
flabowski Jun 26, 2023
c2692fb
moved ValueError to the right place and adjusted the error message.
flabowski Jun 26, 2023
3f79063
added docstring for predict method
flabowski Jun 26, 2023
eb7f1a3
removed 'dim' variable
flabowski Jun 26, 2023
706bae7
removed calculate_flat_index(...) entirely
flabowski Jun 26, 2023
4148b4f
removed TODO comment
flabowski Jun 26, 2023
4a77030
other cosmetic changes
flabowski Jun 26, 2023
638af8d
some simplifications, no need to operate with the transposed of the v…
flabowski Jun 26, 2023
e49ad18
reverted suggested change, as it changed the behaviour
flabowski Jun 26, 2023
3f77b6a
improved code style
flabowski Jun 27, 2023
48f0c42
updated autogenerated rst and added it to the code documentation
flabowski Jun 27, 2023
1d8b690
added test to make sure exception is raised.
flabowski Jun 28, 2023
2ad23ae
removed 'def' member manually
flabowski Jun 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Code Documentation
ae
podae
reducedordermodel
regular_grid
2 changes: 1 addition & 1 deletion docs/source/regular_grid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ RegularGrid
:nosignatures:

RegularGrid
RegularGrid.def
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed. Or at least we don't use it in the other files. I am not sure about the generated outcome...

Copy link
Contributor Author

@flabowski flabowski Jun 28, 2023

Choose a reason for hiding this comment

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

I am not sure either. The file was generated automatically when ran make_rst.sh. Some other things seem to be fishy.

edit: everything seems fine after reverting what make_rst.sh did. @ndem0 maybe some commands need to be updated?

Copy link
Member

Choose a reason for hiding this comment

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

We are not using that script anymore! Sorry, it's not written, I gonna remove it in the next release of EZyRB (#232).
The file now looks correct, thanks!

RegularGrid.get_grid_axes
RegularGrid.fit
RegularGrid.predict
RegularGrid.calculate_flat_index

.. autoclass:: RegularGrid
:members:
Expand Down