sas.sascalc.shape2sas.models package

Submodules

sas.sascalc.shape2sas.models.Cube module

class sas.sascalc.shape2sas.models.Cube.Cube(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Cube', '__firstlineno__': 6, '__init__': <function Cube.__init__>, 'getVolume': <function Cube.getVolume>, 'getPointDistribution': <function Cube.getPointDistribution>, 'checkOverlap': <function Cube.checkOverlap>, '__static_attributes__': ('a',), '__dict__': <attribute '__dict__' of 'Cube' objects>, '__weakref__': <attribute '__weakref__' of 'Cube' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Cube'
__static_attributes__ = ('a',)
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a cube

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cube

getVolume() float

Returns the volume of a cube

sas.sascalc.shape2sas.models.Cuboid module

class sas.sascalc.shape2sas.models.Cuboid.Cuboid(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Cuboid', '__firstlineno__': 6, '__init__': <function Cuboid.__init__>, 'getVolume': <function Cuboid.getVolume>, 'getPointDistribution': <function Cuboid.getPointDistribution>, 'checkOverlap': <function Cuboid.checkOverlap>, '__static_attributes__': ('a', 'b', 'c'), '__dict__': <attribute '__dict__' of 'Cuboid' objects>, '__weakref__': <attribute '__weakref__' of 'Cuboid' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Cuboid'
__static_attributes__ = ('a', 'b', 'c')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a Cuboid

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cuboid

getVolume() float

Returns the volume of a cuboid

sas.sascalc.shape2sas.models.Cylinder module

class sas.sascalc.shape2sas.models.Cylinder.Cylinder(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Cylinder', '__firstlineno__': 6, '__init__': <function Cylinder.__init__>, 'getVolume': <function Cylinder.getVolume>, 'getPointDistribution': <function Cylinder.getPointDistribution>, 'checkOverlap': <function Cylinder.checkOverlap>, '__static_attributes__': ('R', 'l'), '__dict__': <attribute '__dict__' of 'Cylinder' objects>, '__weakref__': <attribute '__weakref__' of 'Cylinder' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Cylinder'
__static_attributes__ = ('R', 'l')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a cylinder

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cylinder

getVolume() float

Returns the volume of a cylinder

sas.sascalc.shape2sas.models.CylinderRing module

class sas.sascalc.shape2sas.models.CylinderRing.CylinderRing(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.CylinderRing', '__firstlineno__': 6, '__init__': <function CylinderRing.__init__>, 'getVolume': <function CylinderRing.getVolume>, 'getPointDistribution': <function CylinderRing.getPointDistribution>, 'checkOverlap': <function CylinderRing.checkOverlap>, '__static_attributes__': ('R', 'l', 'r'), '__dict__': <attribute '__dict__' of 'CylinderRing' objects>, '__weakref__': <attribute '__weakref__' of 'CylinderRing' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.CylinderRing'
__static_attributes__ = ('R', 'l', 'r')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a cylinder ring

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cylinder ring

getVolume() float

Returns the volume of a cylinder ring

sas.sascalc.shape2sas.models.Disc module

class sas.sascalc.shape2sas.models.Disc.Disc(dimensions: list[float])

Bases: EllipticalCylinder

__doc__ = None
__firstlineno__ = 4
__module__ = 'sas.sascalc.shape2sas.models.Disc'
__static_attributes__ = ()

sas.sascalc.shape2sas.models.DiscRing module

class sas.sascalc.shape2sas.models.DiscRing.DiscRing(dimensions: list[float])

Bases: CylinderRing

__annotations__ = {}
__doc__ = None
__firstlineno__ = 4
__module__ = 'sas.sascalc.shape2sas.models.DiscRing'
__static_attributes__ = ()

sas.sascalc.shape2sas.models.Ellipsoid module

class sas.sascalc.shape2sas.models.Ellipsoid.Ellipsoid(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Ellipsoid', '__firstlineno__': 6, '__init__': <function Ellipsoid.__init__>, 'getVolume': <function Ellipsoid.getVolume>, 'getPointDistribution': <function Ellipsoid.getPointDistribution>, 'checkOverlap': <function Ellipsoid.checkOverlap>, '__static_attributes__': ('a', 'b', 'c'), '__dict__': <attribute '__dict__' of 'Ellipsoid' objects>, '__weakref__': <attribute '__weakref__' of 'Ellipsoid' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Ellipsoid'
__static_attributes__ = ('a', 'b', 'c')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

check for points within a ellipsoid

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of an ellipsoid

getVolume() float

Returns the volume of an ellipsoid

sas.sascalc.shape2sas.models.EllipticalCylinder module

class sas.sascalc.shape2sas.models.EllipticalCylinder.EllipticalCylinder(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.EllipticalCylinder', '__firstlineno__': 6, '__init__': <function EllipticalCylinder.__init__>, 'getVolume': <function EllipticalCylinder.getVolume>, 'getPointDistribution': <function EllipticalCylinder.getPointDistribution>, 'checkOverlap': <function EllipticalCylinder.checkOverlap>, '__static_attributes__': ('a', 'b', 'l'), '__dict__': <attribute '__dict__' of 'EllipticalCylinder' objects>, '__weakref__': <attribute '__weakref__' of 'EllipticalCylinder' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.EllipticalCylinder'
__static_attributes__ = ('a', 'b', 'l')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a Elliptical cylinder

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of an elliptical cylinder

getVolume() float

Returns the volume of an elliptical cylinder

sas.sascalc.shape2sas.models.HollowCube module

class sas.sascalc.shape2sas.models.HollowCube.HollowCube(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.HollowCube', '__firstlineno__': 6, '__init__': <function HollowCube.__init__>, 'getVolume': <function HollowCube.getVolume>, 'getPointDistribution': <function HollowCube.getPointDistribution>, 'checkOverlap': <function HollowCube.checkOverlap>, '__static_attributes__': ('a', 'b'), '__dict__': <attribute '__dict__' of 'HollowCube' objects>, '__weakref__': <attribute '__weakref__' of 'HollowCube' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.HollowCube'
__static_attributes__ = ('a', 'b')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a hollow cube

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a hollow cube

getVolume() float

Returns the volume of a hollow cube

sas.sascalc.shape2sas.models.HollowSphere module

class sas.sascalc.shape2sas.models.HollowSphere.HollowSphere(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.HollowSphere', '__firstlineno__': 6, '__init__': <function HollowSphere.__init__>, 'getVolume': <function HollowSphere.getVolume>, 'getPointDistribution': <function HollowSphere.getPointDistribution>, 'checkOverlap': <function HollowSphere.checkOverlap>, '__static_attributes__': ('R', 'r'), '__dict__': <attribute '__dict__' of 'HollowSphere' objects>, '__weakref__': <attribute '__weakref__' of 'HollowSphere' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.HollowSphere'
__static_attributes__ = ('R', 'r')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a hollow sphere

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a hollow sphere

getVolume() float

Returns the volume of a hollow sphere

sas.sascalc.shape2sas.models.Sphere module

class sas.sascalc.shape2sas.models.Sphere.Sphere(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Sphere', '__firstlineno__': 6, '__init__': <function Sphere.__init__>, 'getVolume': <function Sphere.getVolume>, 'getPointDistribution': <function Sphere.getPointDistribution>, 'checkOverlap': <function Sphere.checkOverlap>, '__static_attributes__': ('R',), '__dict__': <attribute '__dict__' of 'Sphere' objects>, '__weakref__': <attribute '__weakref__' of 'Sphere' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Sphere'
__static_attributes__ = ('R',)
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a sphere

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a sphere

getVolume() float

Returns the volume of a sphere

sas.sascalc.shape2sas.models.SuperEllipsoid module

class sas.sascalc.shape2sas.models.SuperEllipsoid.SuperEllipsoid(dimensions: list[float])

Bases: object

__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.SuperEllipsoid', '__firstlineno__': 7, '__init__': <function SuperEllipsoid.__init__>, 'beta': <staticmethod(<function SuperEllipsoid.beta>)>, 'getVolume': <function SuperEllipsoid.getVolume>, 'getPointDistribution': <function SuperEllipsoid.getPointDistribution>, 'checkOverlap': <function SuperEllipsoid.checkOverlap>, '__static_attributes__': ('R', 'eps', 's', 't'), '__dict__': <attribute '__dict__' of 'SuperEllipsoid' objects>, '__weakref__': <attribute '__weakref__' of 'SuperEllipsoid' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 7
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.SuperEllipsoid'
__static_attributes__ = ('R', 'eps', 's', 't')
__weakref__

list of weak references to the object

static beta(a, b) float

beta function

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a superellipsoid

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a superellipsoid

getVolume() float

Returns the volume of a superellipsoid

Module contents

class sas.sascalc.shape2sas.models.Cube(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Cube', '__firstlineno__': 6, '__init__': <function Cube.__init__>, 'getVolume': <function Cube.getVolume>, 'getPointDistribution': <function Cube.getPointDistribution>, 'checkOverlap': <function Cube.checkOverlap>, '__static_attributes__': ('a',), '__dict__': <attribute '__dict__' of 'Cube' objects>, '__weakref__': <attribute '__weakref__' of 'Cube' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Cube'
__static_attributes__ = ('a',)
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a cube

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cube

getVolume() float

Returns the volume of a cube

class sas.sascalc.shape2sas.models.Cuboid(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Cuboid', '__firstlineno__': 6, '__init__': <function Cuboid.__init__>, 'getVolume': <function Cuboid.getVolume>, 'getPointDistribution': <function Cuboid.getPointDistribution>, 'checkOverlap': <function Cuboid.checkOverlap>, '__static_attributes__': ('a', 'b', 'c'), '__dict__': <attribute '__dict__' of 'Cuboid' objects>, '__weakref__': <attribute '__weakref__' of 'Cuboid' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Cuboid'
__static_attributes__ = ('a', 'b', 'c')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a Cuboid

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cuboid

getVolume() float

Returns the volume of a cuboid

class sas.sascalc.shape2sas.models.Cylinder(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Cylinder', '__firstlineno__': 6, '__init__': <function Cylinder.__init__>, 'getVolume': <function Cylinder.getVolume>, 'getPointDistribution': <function Cylinder.getPointDistribution>, 'checkOverlap': <function Cylinder.checkOverlap>, '__static_attributes__': ('R', 'l'), '__dict__': <attribute '__dict__' of 'Cylinder' objects>, '__weakref__': <attribute '__weakref__' of 'Cylinder' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Cylinder'
__static_attributes__ = ('R', 'l')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a cylinder

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cylinder

getVolume() float

Returns the volume of a cylinder

class sas.sascalc.shape2sas.models.CylinderRing(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.CylinderRing', '__firstlineno__': 6, '__init__': <function CylinderRing.__init__>, 'getVolume': <function CylinderRing.getVolume>, 'getPointDistribution': <function CylinderRing.getPointDistribution>, 'checkOverlap': <function CylinderRing.checkOverlap>, '__static_attributes__': ('R', 'l', 'r'), '__dict__': <attribute '__dict__' of 'CylinderRing' objects>, '__weakref__': <attribute '__weakref__' of 'CylinderRing' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.CylinderRing'
__static_attributes__ = ('R', 'l', 'r')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a cylinder ring

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a cylinder ring

getVolume() float

Returns the volume of a cylinder ring

class sas.sascalc.shape2sas.models.Disc(dimensions: list[float])

Bases: EllipticalCylinder

__annotations__ = {}
__doc__ = None
__firstlineno__ = 4
__module__ = 'sas.sascalc.shape2sas.models.Disc'
__static_attributes__ = ()
class sas.sascalc.shape2sas.models.DiscRing(dimensions: list[float])

Bases: CylinderRing

__annotations__ = {}
__doc__ = None
__firstlineno__ = 4
__module__ = 'sas.sascalc.shape2sas.models.DiscRing'
__static_attributes__ = ()
class sas.sascalc.shape2sas.models.Ellipsoid(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Ellipsoid', '__firstlineno__': 6, '__init__': <function Ellipsoid.__init__>, 'getVolume': <function Ellipsoid.getVolume>, 'getPointDistribution': <function Ellipsoid.getPointDistribution>, 'checkOverlap': <function Ellipsoid.checkOverlap>, '__static_attributes__': ('a', 'b', 'c'), '__dict__': <attribute '__dict__' of 'Ellipsoid' objects>, '__weakref__': <attribute '__weakref__' of 'Ellipsoid' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Ellipsoid'
__static_attributes__ = ('a', 'b', 'c')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

check for points within a ellipsoid

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of an ellipsoid

getVolume() float

Returns the volume of an ellipsoid

class sas.sascalc.shape2sas.models.EllipticalCylinder(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.EllipticalCylinder', '__firstlineno__': 6, '__init__': <function EllipticalCylinder.__init__>, 'getVolume': <function EllipticalCylinder.getVolume>, 'getPointDistribution': <function EllipticalCylinder.getPointDistribution>, 'checkOverlap': <function EllipticalCylinder.checkOverlap>, '__static_attributes__': ('a', 'b', 'l'), '__dict__': <attribute '__dict__' of 'EllipticalCylinder' objects>, '__weakref__': <attribute '__weakref__' of 'EllipticalCylinder' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.EllipticalCylinder'
__static_attributes__ = ('a', 'b', 'l')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a Elliptical cylinder

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of an elliptical cylinder

getVolume() float

Returns the volume of an elliptical cylinder

class sas.sascalc.shape2sas.models.HollowCube(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.HollowCube', '__firstlineno__': 6, '__init__': <function HollowCube.__init__>, 'getVolume': <function HollowCube.getVolume>, 'getPointDistribution': <function HollowCube.getPointDistribution>, 'checkOverlap': <function HollowCube.checkOverlap>, '__static_attributes__': ('a', 'b'), '__dict__': <attribute '__dict__' of 'HollowCube' objects>, '__weakref__': <attribute '__weakref__' of 'HollowCube' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.HollowCube'
__static_attributes__ = ('a', 'b')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a hollow cube

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a hollow cube

getVolume() float

Returns the volume of a hollow cube

class sas.sascalc.shape2sas.models.HollowSphere(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.HollowSphere', '__firstlineno__': 6, '__init__': <function HollowSphere.__init__>, 'getVolume': <function HollowSphere.getVolume>, 'getPointDistribution': <function HollowSphere.getPointDistribution>, 'checkOverlap': <function HollowSphere.checkOverlap>, '__static_attributes__': ('R', 'r'), '__dict__': <attribute '__dict__' of 'HollowSphere' objects>, '__weakref__': <attribute '__weakref__' of 'HollowSphere' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.HollowSphere'
__static_attributes__ = ('R', 'r')
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a hollow sphere

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a hollow sphere

getVolume() float

Returns the volume of a hollow sphere

class sas.sascalc.shape2sas.models.Sphere(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.Sphere', '__firstlineno__': 6, '__init__': <function Sphere.__init__>, 'getVolume': <function Sphere.getVolume>, 'getPointDistribution': <function Sphere.getPointDistribution>, 'checkOverlap': <function Sphere.checkOverlap>, '__static_attributes__': ('R',), '__dict__': <attribute '__dict__' of 'Sphere' objects>, '__weakref__': <attribute '__weakref__' of 'Sphere' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 6
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.Sphere'
__static_attributes__ = ('R',)
__weakref__

list of weak references to the object

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a sphere

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a sphere

getVolume() float

Returns the volume of a sphere

class sas.sascalc.shape2sas.models.SuperEllipsoid(dimensions: list[float])

Bases: object

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'sas.sascalc.shape2sas.models.SuperEllipsoid', '__firstlineno__': 7, '__init__': <function SuperEllipsoid.__init__>, 'beta': <staticmethod(<function SuperEllipsoid.beta>)>, 'getVolume': <function SuperEllipsoid.getVolume>, 'getPointDistribution': <function SuperEllipsoid.getPointDistribution>, 'checkOverlap': <function SuperEllipsoid.checkOverlap>, '__static_attributes__': ('R', 'eps', 's', 't'), '__dict__': <attribute '__dict__' of 'SuperEllipsoid' objects>, '__weakref__': <attribute '__weakref__' of 'SuperEllipsoid' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__firstlineno__ = 7
__init__(dimensions: list[float])
__module__ = 'sas.sascalc.shape2sas.models.SuperEllipsoid'
__static_attributes__ = ('R', 'eps', 's', 't')
__weakref__

list of weak references to the object

static beta(a, b) float

beta function

checkOverlap(x_eff: ndarray, y_eff: ndarray, z_eff: ndarray) ndarray

Check for points within a superellipsoid

getPointDistribution(Npoints: int) tuple[ndarray, ndarray, ndarray]

Returns the point distribution of a superellipsoid

getVolume() float

Returns the volume of a superellipsoid