AndySAnker commited on
Commit
8b24986
1 Parent(s): 004da99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,8 +44,8 @@ def PDF_Preparation(Your_PDF_Name, Qmin, Qmax, Qdamp, rmax, nyquist):
44
  Gr = Gr[np.where(r==1)[0][0]:] # Remove Data from 0 to 0.5 AA
45
  Gr = Gr[::10] # Nyquist sample the rest of the Data
46
  Gr = np.concatenate(([0,0,0,0,0,0,0,0,0,0], Gr), axis=0) # Concatenate 0 - 0.5 AA on the Gr.
47
- if nyquist == "No" or nyquist == "no":
48
- Gr = Gr[::10] # Nyquist sample Data
49
  if len(Gr) >= (rmax*10+1):
50
  Gr = Gr[:(rmax*10+1)] # In the case Data is up to more than 30 AA, we do not use it.
51
  else:
 
44
  Gr = Gr[np.where(r==1)[0][0]:] # Remove Data from 0 to 0.5 AA
45
  Gr = Gr[::10] # Nyquist sample the rest of the Data
46
  Gr = np.concatenate(([0,0,0,0,0,0,0,0,0,0], Gr), axis=0) # Concatenate 0 - 0.5 AA on the Gr.
47
+ if not nyquist:
48
+ Gr = Gr[::10] # Pseudo Nyquist sample Data
49
  if len(Gr) >= (rmax*10+1):
50
  Gr = Gr[:(rmax*10+1)] # In the case Data is up to more than 30 AA, we do not use it.
51
  else: