FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

WIP: Slicereg

Closed Eduardo Gonzalez Solares requested to merge slicereg into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
65 66
66 67 if "tiff" in recipes:
67 68 mos.to_tiff(basedir)
69
70 mos_dis = basedir / "mos.zarr"
  • 1 import numpy as np
    2 from scipy.special import factorial
    3 #
    4 # Bead fitting procedures
    5 #
    6
    7
    8 def print_theta(theta):
  • 40 return np.inf
    41 if y0 < -10:
    42 return np.inf
    43 if c < 1:
    44 return np.inf
    45 if s < 0.0:
    46 return np.inf
    47 if p < 0.0:
    48 return np.inf
    49 # model=1.+bead_profile_2d(xx,yy,x0,y0,rt,p,a,c)
    50 model = 1. + bead_profile_supergaussian(xx, yy, x0, y0, p, s, c)
    51 ll = -model + (1. + zz) * np.log(model)
    52 if do_full:
    53 ll -= np.log(factorial(1. + zz))
    54 #
    55 if do_print:
  • 66 return np.inf
    67 if y0 < -10:
    68 return np.inf
    69 if c < 1:
    70 return np.inf
    71 if s < 0.0:
    72 return np.inf
    73 if p < 0.0:
    74 return np.inf
    75 # model=1.+bead_profile_2d(xx,yy,x0,y0,rt,p,a,c)
    76 model = 1. + bead_profile_supergaussian(xx, yy, x0, y0, p, s, c)
    77 ll = (-model + (1. + zz) * np.log(model)) * conf
    78 if do_full:
    79 ll -= np.log(factorial(1. + zz))
    80 #
    81 if do_print:
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading