python style names
This commit is contained in:
parent
327899890a
commit
899cc913c4
|
@ -36,7 +36,7 @@ sc = np.pi**(1./6.)/6.**(1./6.)
|
|||
beta = np.pi**(5./6.)/6.**(1./6.)/2.
|
||||
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.
|
||||
|
||||
|
@ -87,7 +87,7 @@ def CubeToBall(cube):
|
|||
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.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import numpy as np
|
||||
|
||||
from ._Lambert import *
|
||||
from ._Lambert import ball_to_cube, cube_to_ball
|
||||
|
||||
P = -1
|
||||
|
||||
|
@ -802,7 +802,7 @@ class Rotation:
|
|||
@staticmethod
|
||||
def ho2cu(ho):
|
||||
"""Homochoric vector to cubochoric vector."""
|
||||
return BallToCube(ho)
|
||||
return ball_to_cube(ho)
|
||||
|
||||
|
||||
#---------- Cubochoric ----------
|
||||
|
@ -834,4 +834,4 @@ class Rotation:
|
|||
@staticmethod
|
||||
def cu2ho(cu):
|
||||
"""Cubochoric vector to homochoric vector."""
|
||||
return CubeToBall(cu)
|
||||
return cube_to_ball(cu)
|
||||
|
|
Loading…
Reference in New Issue