Example #1
0
                  bounds=bounds,
                  symmetry=True,
                  hole=False,
                  cede=False,
                  concentric=False,
                  antipodal_symmetry=False,
                  sqrt_num_cells=32,
                  min_sqrt_num_cells=10,
                  max_sqrt_num_cells=64,
                  do_fast=False,
                  num_leaves=100,
                  num_rays=200)

photosphere = xpsi.Photosphere(num_params=0,
                               bounds=[],
                               tag='all',
                               spot=spot,
                               elsewhere=None)

star = xpsi.Star(spacetime=spacetime, photospheres=photosphere)

likelihood = xpsi.Likelihood(star=star, pulses=pulse, threads=1)

prior = CustomPrior(bounds=likelihood.bounds, spacetime=spacetime)

likelihood.prior = prior

import time

p = [
    0.2, 1.4, 12.5, 1.25, 1.0, 0.075, 6.2, math.pi - 1.0, 0.2, 6.0, 0.0, 0.025
Example #2
0
hot = xpsi.TwoHotRegions(num_params=(3, 3),
                         bounds=bounds,
                         symmetry=True,
                         hole=False,
                         cede=False,
                         concentric=False,
                         antipodal_symmetry=False,
                         sqrt_num_cells=32,
                         min_sqrt_num_cells=10,
                         max_sqrt_num_cells=64,
                         do_fast=False,
                         num_leaves=100,
                         num_rays=200)

photosphere = xpsi.Photosphere(tag='all', hot=hot, elsewhere=None)

star = xpsi.Star(spacetime=spacetime, photospheres=photosphere)

likelihood = xpsi.Likelihood(star=star, pulses=pulse, threads=1)

prior = CustomPrior(bounds=likelihood.bounds, spacetime=spacetime)

likelihood.prior = prior

import time

p = [
    0.2, 1.4, 12.5, 1.25, 1.0, 0.075, 6.2, math.pi - 1.0, 0.2, 6.0, 0.0, 0.025
]