Module Import alias identifier ImportFrom alias identifier alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num Num NameLoad body Expr Str If BoolOpOr CompareLtE NameLoad Num CompareLtE NameLoad Num CompareLtE NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Num SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpSub UnaryOpUSub SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad NameLoad NameLoad Num For NameStore Call NameLoad Num body If CompareEq BinOpMod BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Num Num body AugAssignSub SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareNotIn Num NameLoad body AugAssignSub SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index CompareLt NameLoad Num Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Slice SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Slice SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If UnaryOpNot NameLoad body Assign NameStore CompareLtE BinOpAdd BinOpAdd BinOpPow BinOpDiv NameLoad Call NameLoad NameLoad Num BinOpPow BinOpDiv NameLoad Call NameLoad NameLoad Num BinOpPow BinOpDiv NameLoad Call NameLoad NameLoad Num Num orelse Assign NameStore BinOpSub BinOpAdd BinOpAdd BinOpPow BinOpDiv NameLoad Call NameLoad NameLoad Num BinOpPow BinOpDiv NameLoad Call NameLoad NameLoad Num BinOpPow BinOpDiv NameLoad Call NameLoad NameLoad Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareLtE NameLoad Num CompareLtE NameLoad Num CompareLtE NameLoad Num body Raise Call NameLoad Str Assign NameStore ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore BinOpMult BinOpMult BinOpMult BinOpMult BinOpDiv Num Num AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpPow BinOpSub Num BinOpDiv BinOpPow NameLoad Num BinOpPow NameLoad Num Num Assign NameStore Call NameLoad BinOpPow BinOpSub BinOpPow NameLoad Num BinOpPow NameLoad Num Num Assign NameStore BinOpDiv BinOpMult BinOpPow NameLoad Num BinOpSub BinOpPow NameLoad Num BinOpPow NameLoad Num Call NameLoad BinOpMult BinOpPow NameLoad Num BinOpSub BinOpPow NameLoad Num BinOpPow NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpMult BinOpMult Num AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpPow NameLoad Num BinOpMult BinOpDiv BinOpMult NameLoad BinOpPow NameLoad Num NameLoad NameLoad BinOpMult BinOpMult NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A numpy np scipy.special ellipkinc ellip_F ellipeinc ellip_E ellipsoid N/A N/A a b c spacing levelset N/A N/A 1.0 1.0 1.0 False N/A N/A 
    Generates ellipsoid with semimajor axes aligned with grid dimensions
    on grid with specified `spacing`.

    Parameters
    ----------
    a : float
        Length of semimajor axis aligned with x-axis.
    b : float
        Length of semimajor axis aligned with y-axis.
    c : float
        Length of semimajor axis aligned with z-axis.
    spacing : tuple of floats, length 3
        Spacing in (x, y, z) spatial dimensions.
    levelset : bool
        If True, returns the level set for this ellipsoid (signed level
        set about zero, with positive denoting interior) as np.float64.
        False returns a binarized version of said level set.

    Returns
    -------
    ellip : (N, M, P) array
        Ellipsoid centered in a correctly sized array for given `spacing`.
        Boolean dtype unless `levelset=True`, in which case a float array is
        returned with the level set above 0.0 representing the ellipsoid.

     N/A N/A N/A a 0 N/A b 0 N/A c 0 N/A N/A N/A ValueError Parameters a, b, and c must all be > 0 N/A offset N/A N/A N/A np r_ N/A N/A 1 1 1 N/A N/A np r_ N/A spacing N/A low N/A N/A np ceil N/A N/A N/A N/A np r_ N/A N/A a b c offset N/A high N/A N/A np floor N/A N/A N/A N/A np r_ N/A N/A a b c offset 1 N/A dim N/A range 3 N/A N/A N/A N/A N/A N/A high N/A dim N/A low N/A dim 2 0 N/A N/A N/A low N/A dim 1 N/A num N/A N/A np arange N/A low N/A dim N/A high N/A dim N/A spacing N/A dim N/A N/A 0 num N/A N/A N/A low N/A dim N/A N/A np max N/A num N/A N/A num 0 N/A N/A x y z N/A N/A np mgrid N/A N/A N/A low N/A 0 N/A high N/A 0 N/A spacing N/A 0 N/A N/A low N/A 1 N/A high N/A 1 N/A spacing N/A 1 N/A N/A low N/A 2 N/A high N/A 2 N/A spacing N/A 2 N/A N/A levelset N/A N/A arr N/A N/A N/A N/A N/A x N/A float a 2 N/A N/A y N/A float b 2 N/A N/A z N/A float c 2 1 N/A N/A arr N/A N/A N/A N/A N/A x N/A float a 2 N/A N/A y N/A float b 2 N/A N/A z N/A float c 2 1 N/A arr N/A ellipsoid_stats N/A N/A a b c N/A N/A N/A 
    Calculates analytical surface area and volume for ellipsoid with
    semimajor axes aligned with grid dimensions of specified `spacing`.

    Parameters
    ----------
    a : float
        Length of semimajor axis aligned with x-axis.
    b : float
        Length of semimajor axis aligned with y-axis.
    c : float
        Length of semimajor axis aligned with z-axis.

    Returns
    -------
    vol : float
        Calculated volume of ellipsoid.
    surf : float
        Calculated surface area of ellipsoid.

     N/A N/A N/A a 0 N/A b 0 N/A c 0 N/A N/A N/A ValueError Parameters a, b, and c must all be > 0 N/A abc N/A a b c N/A N/A N/A abc sort reverse True N/A a N/A abc N/A 0 N/A b N/A abc N/A 1 N/A c N/A abc N/A 2 N/A vol N/A N/A N/A N/A N/A 4 3.0 N/A np pi a b c N/A phi N/A N/A np arcsin N/A N/A 1.0 N/A N/A c 2 N/A a 2.0 0.5 N/A d N/A float N/A N/A N/A a 2 N/A c 2 0.5 N/A m N/A N/A N/A a 2 N/A N/A b 2 N/A c 2 N/A float N/A N/A b 2 N/A N/A a 2 N/A c 2 N/A F N/A ellip_F phi m N/A E N/A ellip_E phi m N/A surf N/A N/A 2 N/A np pi N/A N/A N/A c 2 N/A N/A N/A b N/A c 2 d F N/A N/A b d E N/A N/A vol surf N/A