Skip to content
Snippets Groups Projects
Commit 7f64dd69 authored by Gröne, Tjark Leon Raphael's avatar Gröne, Tjark Leon Raphael
Browse files

Update file bg_subtraction.py

parent 945c39d5
No related branches found
No related tags found
No related merge requests found
...@@ -533,10 +533,6 @@ class Processing_Data: ...@@ -533,10 +533,6 @@ class Processing_Data:
reduced_I = j[Qmin:Qmax] reduced_I = j[Qmin:Qmax]
reduced_bg_I = self.I_bg[Qmin:Qmax] reduced_bg_I = self.I_bg[Qmin:Qmax]
reduced_q = self.q[Qmin:Qmax] reduced_q = self.q[Qmin:Qmax]
print(reduced_q)
print( np.trapz(y=reduced_I, x=reduced_q), np.trapz(y=reduced_bg_I, x=reduced_q) )
self.factor = (np.trapz(y=reduced_I, x=reduced_q , dx=1e-10) )/ np.trapz(y=reduced_bg_I, x=reduced_q , dx=1e-10) + correction[i] self.factor = (np.trapz(y=reduced_I, x=reduced_q , dx=1e-10) )/ np.trapz(y=reduced_bg_I, x=reduced_q , dx=1e-10) + correction[i]
# I_condition = True # I_condition = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment