class SamplingVolume(Validatable):
Method | __init__ |
Initializes an empty sampling volume, with zero bounds and no constraints. |
Method | recalculate |
Recalculates the sampling volume points, permeabilities, labels and neighborhoods according to the constraints. |
Method | set |
Sets the parameters. |
Method | set_bounds_nearest |
Adjusts this volume's bounding box to fully enclose a 3D wire curve. This expands the bounding box to the next integer grid coordinates. |
Method | set_padding_nearest |
Shrinks or enlarges this volume's bounding box by some amount, in each direction, symmetrically. This shrinks or expands the bounding box to the next integer grid coordinates. |
Instance Variable | resolution |
Undocumented |
Property | bounds |
Returns this volume's bounding box. |
Property | dimension |
Sampling volume dimension if it is valid, None otherwise. |
Property | extent |
Returns this volume's extent. |
Property | labeled_indices |
Returns this sampling volume's labeled indices. |
Property | labels_count |
Returns this sampling volume's label count. |
Property | neighbor_indices |
Returns this sampling volume's neighborhood indices. |
Property | permeabilities |
Returns this sampling volume's relative permeabilities µ_r. |
Property | points |
Returns this sampling volume's points. |
Property | points_count |
Returns this sampling volume's point count. |
Method | _i_to_xyz |
Convert 1D index to 3D indices. Note: "Fortran" indexing (column-major order). |
Method | _xyz_to_i |
Convert 3D indices to 1D index. Note: "Fortran" indexing (column-major order). |
Instance Variable | _bounds_max |
Undocumented |
Instance Variable | _bounds_min |
Undocumented |
Instance Variable | _constraints |
Undocumented |
Instance Variable | _dimension |
Undocumented |
Instance Variable | _label_resolution |
Undocumented |
Instance Variable | _labeled_indices |
Undocumented |
Instance Variable | _neighbor_indices |
Undocumented |
Instance Variable | _permeabilities |
Undocumented |
Instance Variable | _points |
Undocumented |
Inherited from Validatable
:
Method | valid.setter |
|
Property | valid |
True if valid, False if invalid |
Instance Variable | _valid |
Undocumented |
Parameters | |
progress_callback:Callable | Progress callback |
Returns | |
bool | True if successful, False if interrupted |
Parameters | |
resolution:float | Resolution |
label_resolution:float | Label resolution |
constraints:List[ | List of constraints |
Adjusts this volume's bounding box to fully enclose a 3D wire curve. This expands the bounding box to the next integer grid coordinates.
Note: This will not automatically invalidate the sampling volume.
Parameters | |
bounds:np.ndarray | Bounding box (minimum bounds, maximum bounds) |
Returns | |
Rounded (_bounds_min, _bounds_max) |
Shrinks or enlarges this volume's bounding box by some amount, in each direction, symmetrically. This shrinks or expands the bounding box to the next integer grid coordinates.
Note: This will not automatically invalidate the sampling volume.
Parameters | |
padding:np.ndarray | Amount of padding (3D point) |
Parameters | |
_i:int | 1D index |
Returns | |
List | 3D indices |