optPilot package¶
optPilot.Annotate module¶
-
class
optPilot.Annotate.
AnnoteFinder
(rdata, obj1_idx, obj2_idx, annotes_idx, name_to_column_map, axis=None, xtol=None, ytol=None)[source]¶ Bases:
object
Callback for matplotlib to display an annotation when points are clicked on.
The point which is closest to the click and within xtol and ytol is identified.
@See http://www.scipy.org/Cookbook/Matplotlib/Interactive_Plotting for details.
Register this function like this:
>>> scatter(xdata, ydata) >>> af = AnnoteFinder(xdata, ydata, annotes) >>> connect('button_press_event', af)
optPilot.Interpolator module¶
-
class
optPilot.Interpolator.
Interpolator
[source]¶ Bases:
object
It is built on scipy.interpolate.Rbf
It has to be used with python3.x
-
evaluate
(coords)[source]¶ Interpolate to new coordinates coords
- Parameters
coords (numpy.ndarray (N,)) – New coordinates where to interpolate
- Returns
Interpolated values
- Return type
numpy.ndarray (N,)
-
train
(coords, values, function='linear', smooth=0)[source]¶ Train the interpolator with values at given coordinates coords
- Parameters
coords (numpy.ndarray (N, M,)) – Coordinates of the nodes (each column is an axis)
values (numpy.ndarray (N,)) – Values of the nodes
Notes
For further information about scipy.interpolate.Rbf see https://docs.scipy.org/doc/scipy-0.19.0/reference/generated/scipy.interpolate.Rbf.html
-
optPilot.visualize module¶
-
class
optPilot.visualize.
OptData
(generation, path, filename_postfix, selected_ids)[source]¶ Bases:
object