-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from ndem0/v2
Refactoring for pre- and post-processing, new design Co-authored-by: MMRROOO <mrowkamaad@gmail.com>
- Loading branch information
Showing
38 changed files
with
1,565 additions
and
269 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,23 +1,16 @@ | ||
"""EZyRB package""" | ||
|
||
__all__ = [ | ||
'Database', 'Reduction', 'POD', 'Approximation', 'RBF', 'Linear', 'GPR', | ||
'Database', 'Snapshot', 'Reduction', 'POD', 'Approximation', 'RBF', 'Linear', 'GPR', | ||
'ANN', 'KNeighborsRegressor', 'RadiusNeighborsRegressor', 'AE', | ||
'ReducedOrderModel', 'PODAE', 'RegularGrid' | ||
] | ||
|
||
from .meta import * | ||
from .database import Database | ||
from .reduction import Reduction | ||
from .pod import POD | ||
from .ae import AE | ||
from .pod_ae import PODAE | ||
from .approximation import Approximation | ||
from .rbf import RBF | ||
from .linear import Linear | ||
from .regular_grid import RegularGrid | ||
from .gpr import GPR | ||
from .snapshot import Snapshot | ||
from .parameter import Parameter | ||
from .reducedordermodel import ReducedOrderModel | ||
from .ann import ANN | ||
from .kneighbors_regressor import KNeighborsRegressor | ||
from .radius_neighbors_regressor import RadiusNeighborsRegressor | ||
from .reduction import * | ||
from .approximation import * | ||
from .regular_grid import RegularGrid |
This file contains 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 @@ | ||
"""EZyRB package""" | ||
|
||
__all__ = [ | ||
'Approximation', 'RBF', 'Linear', 'GPR', | ||
'ANN', 'KNeighborsRegressor', 'RadiusNeighborsRegressor' | ||
] | ||
|
||
from .approximation import Approximation | ||
from .rbf import RBF | ||
from .linear import Linear | ||
from .gpr import GPR | ||
from .ann import ANN | ||
from .kneighbors_regressor import KNeighborsRegressor | ||
from .radius_neighbors_regressor import RadiusNeighborsRegressor |
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 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 @@ | ||
""" Module for parameter object """ | ||
import numpy as np | ||
|
||
class Parameter: | ||
|
||
def __init__(self, values): | ||
self.values = values | ||
|
||
@property | ||
def values(self): | ||
""" Get the snapshot values. """ | ||
return self._values | ||
|
||
@values.setter | ||
def values(self, new_values): | ||
if np.asarray(new_values).ndim != 1: | ||
raise ValueError('only 1D array are usable as parameter.') | ||
self._values = new_values |
This file contains 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,13 @@ | ||
""" Plugins submodule """ | ||
|
||
__all__ = [ | ||
'Plugin', | ||
'DatabaseScaler', | ||
'ShiftSnapshots', | ||
'AutomaticShiftSnapshots', | ||
] | ||
|
||
from .scaler import DatabaseScaler | ||
from .plugin import Plugin | ||
from .shift import ShiftSnapshots | ||
from .automatic_shift import AutomaticShiftSnapshots |
Oops, something went wrong.