Skip to content

Commit

Permalink
Update imports for compatibility with raysect 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklovell committed Aug 20, 2020
1 parent f77a190 commit 2d6fa71
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cherab/solps/formats/balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import numpy as np
from scipy.io import netcdf
from scipy.constants import elementary_charge
from raysect.core.math import Discrete2DMesh
from raysect.core.math.function.float import Discrete2DMesh

from cherab.core.math.mappers import AxisymmetricMapper
from cherab.core.atomic.elements import hydrogen, deuterium, helium, beryllium, carbon, nitrogen, oxygen, neon, \
Expand Down
2 changes: 1 addition & 1 deletion cherab/solps/formats/mdsplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import numpy as np
from math import sqrt
from raysect.core import Point2D
from raysect.core.math.function import Discrete2DMesh
from raysect.core.math.function.float import Discrete2DMesh

from cherab.core.math.mappers import AxisymmetricMapper
from cherab.solps.mesh_geometry import SOLPSMesh
Expand Down
2 changes: 1 addition & 1 deletion cherab/solps/formats/raw_simulation_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import os
import numpy as np
from raysect.core.math.function import Discrete2DMesh
from raysect.core.math.function.float import Discrete2DMesh

from cherab.core.math.mappers import AxisymmetricMapper
from cherab.core.atomic.elements import hydrogen, deuterium, helium, beryllium, carbon, nitrogen, oxygen, neon, \
Expand Down
2 changes: 1 addition & 1 deletion cherab/solps/mesh_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
from matplotlib.collections import PatchCollection
from raysect.core.math.function import Discrete2DMesh
from raysect.core.math.function.float import Discrete2DMesh

INFINITY = 1E99

Expand Down
3 changes: 1 addition & 2 deletions cherab/solps/solps_3d_functions.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ import numpy as np
from numpy cimport ndarray

from raysect.core.math.vector cimport Vector3D, new_vector3d
from raysect.core.math.function cimport Discrete2DMesh, Function3D
from raysect.core.math.transform cimport rotate_z

from cherab.core.math.mappers cimport AxisymmetricMapper
from cherab.core.math.function.vectorfunction3d cimport VectorFunction3D
from cherab.core.math.function cimport Function3D, Discrete2DMesh, VectorFunction3D
cimport cython

cdef double RAD_TO_DEG = 360 / (2*M_PI)
Expand Down
2 changes: 1 addition & 1 deletion cherab/solps/solps_plasma.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from scipy.constants import atomic_mass, electron_mass

# Raysect imports
from raysect.core.math.function import Discrete2DMesh
from raysect.core.math.function.float import Discrete2DMesh
from raysect.core import translate, Point3D, Vector3D, Node, AffineMatrix3D
from raysect.primitive import Cylinder
from raysect.optical import Spectrum
Expand Down

0 comments on commit 2d6fa71

Please sign in to comment.