<commit_before>import geometry,scipy,eqtools
import surface
import scipy.linalg
import _beam

class Tokamak(geometry.Center):

    def __init__(self, equilib, flag=True):
        """
        """
        self.eq = equilib
        super(Tokamak, self).__init__(flag=flag)
        self.meri.s = self.eq.getMachineCrossSection()[0] #store R and Z of limiter structure vacuum vessel
        self.sagi.s = self.meri.s #link together.
        self.norm.s = self.eq.getMachineCrossSection()[1]
<commit_msg>updates<commit_after>import geometry,scipy,eqtools
import surface
import scipy.linalg
import _beam

class Tokamak(geometry.Center):
 """Tokamak object for handling geometry and equilibria.
     
    Creates a new Point instance which is set to a default 
    coordinate system of cartesian or cylindrical coordinates
    determined from the reference coordinate system. All vector
    mathematics are accomplished in cartesian to simplify 
    computation effort. Cylindrical vectors are converted at
    last step for return.

    Args:
        equilib: An eqtools Equilibrium object which defines the
             flux surfaces (psi) on a regular grid, as well as 
             the wall geometry amongst a host of other important 
             parameters used within the invert.py submodule.
             This requires the installation of the eqtools package
             which handles tokamak equilibria in a standardized 
             pythonic form.  It is the use of different equilibria
             in a standardized form which allows TRIPPy to be 
             abstract, and capable for use on any tokamak.

    Kwargs:
        flag: Origin object.
            Sets the default coordinate nature 
                
    Examples:   
        Accepts all array like (tuples included) inputs, though
        all data is stored in numpy arrays.

        Generate a point 1m in x from point U (xdir)::
            
                xdir = Vec((1.,0.,0.),U) #implicitly in cyl. coords.

        Generate a cartesian point into direction (2,2,2) from Q::
            
                vec2 = Vec((2.,2.,2.), ref=Q)

        Generate a cylindrical radial vector (vec2) into direction (1,0,1)::
            
                cent = Center() #implicitly in cyl. coords.
                vec2 = Vec(vec1, ref=cent)
    """
 
    def __init__(self, equilib, flag=True):
        """
        """
        self.eq = equilib
        super(Tokamak, self).__init__(flag=flag)
        self.meri.s = self.eq.getMachineCrossSection()[0] #store R and Z of limiter structure vacuum vessel
        self.sagi.s = self.meri.s #link together.
        self.norm.s = self.eq.getMachineCrossSection()[1]

{'fraction_non_alphanumeric': 0.07369996258885148, 'fraction_numerical': 0.007856341189674524, 'mean_word_length': 2.264957264957265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3463545', 'n_tokens_mistral': 746, 'n_tokens_neox': 712, 'n_words': 267}