Skip to content
Snippets Groups Projects
Commit d4f796e0 authored by johannes bilk's avatar johannes bilk
Browse files

renamed a method

parent 401179d1
No related branches found
No related tags found
No related merge requests found
...@@ -233,18 +233,18 @@ class Rootable: ...@@ -233,18 +233,18 @@ class Rootable:
return np.array(events, dtype=object) return np.array(events, dtype=object)
def getCoordisnate(self) -> None: def getCoordisnates(self) -> None:
""" """
converting the uv coordinates, together with sensor ids, into xyz coordinates converting the uv coordinates, together with sensor ids, into xyz coordinates
""" """
if self.gotClusters is False: if self.gotClusters is False:
self.getClusters() self.getClusters()
xcoords, ycoords, zcoords = self._getCartesian(self.data['uPosition'], self.data['vPosition'], self.data['sensorID']) xcoords, ycoords, zcoords = self._getCoordisnates(self.data['uPosition'], self.data['vPosition'], self.data['sensorID'])
self.data['xPosition'] = xcoords self.data['xPosition'] = xcoords
self.data['yPosition'] = ycoords self.data['yPosition'] = ycoords
self.data['zPosition'] = zcoords self.data['zPosition'] = zcoords
def _getCartesian(self, uPositions: ArrayLike, vPositions: ArrayLike, sensorIDs: ArrayLike) -> tuple[np.ndarray]: def _getCoordisnates(self, uPositions: ArrayLike, vPositions: ArrayLike, sensorIDs: ArrayLike) -> tuple[np.ndarray]:
""" """
a private method for transposing/converting 2d uv coords into 3d xyz coordinates a private method for transposing/converting 2d uv coords into 3d xyz coordinates
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment