python style names

This commit is contained in:
Martin Diehl 2020-03-19 15:09:05 +01:00
parent 327899890a
commit 899cc913c4
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ sc = np.pi**(1./6.)/6.**(1./6.)
beta = np.pi**(5./6.)/6.**(1./6.)/2. beta = np.pi**(5./6.)/6.**(1./6.)/2.
R1 = (3.*np.pi/4.)**(1./3.) R1 = (3.*np.pi/4.)**(1./3.)
def CubeToBall(cube): def cube_to_ball(cube):
""" """
Map a point in a uniform refinable cubical grid to a point on a uniform refinable grid on a ball. Map a point in a uniform refinable cubical grid to a point on a uniform refinable grid on a ball.
@ -87,7 +87,7 @@ def CubeToBall(cube):
return ball return ball
def BallToCube(ball): def ball_to_cube(ball):
""" """
Map a point on a uniform refinable grid on a ball to a point in a uniform refinable cubical grid. Map a point on a uniform refinable grid on a ball to a point in a uniform refinable cubical grid.

View File

@ -1,6 +1,6 @@
import numpy as np import numpy as np
from ._Lambert import * from ._Lambert import ball_to_cube, cube_to_ball
P = -1 P = -1
@ -802,7 +802,7 @@ class Rotation:
@staticmethod @staticmethod
def ho2cu(ho): def ho2cu(ho):
"""Homochoric vector to cubochoric vector.""" """Homochoric vector to cubochoric vector."""
return BallToCube(ho) return ball_to_cube(ho)
#---------- Cubochoric ---------- #---------- Cubochoric ----------
@ -834,4 +834,4 @@ class Rotation:
@staticmethod @staticmethod
def cu2ho(cu): def cu2ho(cu):
"""Cubochoric vector to homochoric vector.""" """Cubochoric vector to homochoric vector."""
return CubeToBall(cu) return cube_to_ball(cu)