v_sim.DataDiff¶
- Subclasses:
None
Methods¶
- Inherited:
v_sim.NodeValuesVector (9), v_sim.NodeValuesFarray (15), v_sim.NodeValues (16), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class v_sim.DataDiff(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Common name to refer to a
v_sim.DataDiff.- classmethod new(dataRef, data, reorder, label)¶
- Parameters:
dataRef (
v_sim.Data) – av_sim.Dataobject.data (
v_sim.Data) – av_sim.Dataobject.reorder (
bool) – a boolean.label (
str) – a label.
- Returns:
a newly created
v_sim.DataDiffobject.- Return type:
Compute the node per node position differences between dataRef and data. If reorder is
True, the node in data are reordered to minimize the distance with dataRef. If dataRef and data are incompatible, the returned object will be empty, seev_sim.DataDiff.isEmpty().New in version 3.8.
- applyWithFinder(finder, tol)¶
- Parameters:
finder (
v_sim.NodeFinder) – av_sim.NodeFinderto apply the displacement on.tol (
float) – a tolerance.
For each node displacement of self, if a matching node in finder is found within the tolerance tol, then the displacement is applied.
New in version 3.8.
- export()¶
- Returns:
a new string that should be freed after use.
- Return type:
Create a string with differences of coordinates stored in self in cartesian coordinates.
New in version 3.6.
- isEmpty()¶
-
When creating a
v_sim.DataDiff, if the reference and the data don’t have the same number of types or atoms, the difference cannot be computed and the created object is empty.New in version 3.8.