Browse Source

finished adding rotation

add_rotation
Joschka 1 year ago
parent
commit
e6e20a8ae3
  1. 3
      Analyser/FitAnalyser.py
  2. 843
      Analyser/Joschka/20230630_Data_Analysis copy.ipynb
  3. 1236
      Analyser/Joschka/test_rotation.ipynb

3
Analyser/FitAnalyser.py

@ -27,6 +27,7 @@ from scipy.special import wofz
from scipy.optimize import curve_fit from scipy.optimize import curve_fit
from scipy.interpolate import CubicSpline from scipy.interpolate import CubicSpline
from scipy.ndimage import gaussian_filter, rotate from scipy.ndimage import gaussian_filter, rotate
import scipy.constants as const
import xarray as xr import xarray as xr
@ -417,7 +418,7 @@ class DensityProfileBEC2dModel(lmfit.Model):
self.set_param_hint('sigmay_bec', min=0) self.set_param_hint('sigmay_bec', min=0)
self.set_param_hint('sigma_th', min=0) self.set_param_hint('sigma_th', min=0)
self.set_param_hint('rot_angle', min=0, max=360)
self.set_param_hint('rot_angle', min=-90, max=90)
self.set_param_hint('atom_number_bec', expr=f'{self.prefix}amp_bec / 5 * 2 * 3.14159265359 * {self.prefix}sigmax_bec * {self.prefix}sigmay_bec') self.set_param_hint('atom_number_bec', expr=f'{self.prefix}amp_bec / 5 * 2 * 3.14159265359 * {self.prefix}sigmax_bec * {self.prefix}sigmay_bec')
self.set_param_hint('atom_number_th', expr=f'{self.prefix}amp_th * 2 * 3.14159265359 * 1.20206 / 1.643 * {self.prefix}sigma_th * {self.prefix}sigma_th') self.set_param_hint('atom_number_th', expr=f'{self.prefix}amp_th * 2 * 3.14159265359 * 1.20206 / 1.643 * {self.prefix}sigma_th * {self.prefix}sigma_th')

843
Analyser/Joschka/20230630_Data_Analysis copy.ipynb
File diff suppressed because one or more lines are too long
View File

1236
Analyser/Joschka/test_rotation.ipynb
File diff suppressed because one or more lines are too long
View File

Loading…
Cancel
Save