xopto.pf.util.pfpolygonmhg module¶
- class MHgPolygon(g_lim: Tuple[float, float] = (0, 0.99), beta_lim: Tuple[float, float] = (0, 1), n: int = 5000, verbose: bool = False, filename: Optional[str] = None)[source]¶
Bases:
xopto.pf.util.pfpolygonbase.GammaDeltaPolygonBase
Creates an object for fast polygon-based validation of the MHG scattering phase function domain.
- Parameters
g_lim ((float, float)) – Range of the g parameter of the MHG scattering phase function.
beta_lim ((float, float)) – Range of the beta parameter of the MHG scattering phase function.
n (int) – Number of points along each border of the scattering phase function domain.
verbose (bool) – Print progress information to stdout.
filename (str) – Load polygon data from a file. See the static method
fromfile()
.
- DEFAULT_POLYGON_FILE = 'mhg_polygon.npz'¶
- NUM_POINTS = 100000¶