Skip to content

Commit

Permalink
Merge pull request #1226 from cta-observatory/data_quality-fixes
Browse files Browse the repository at this point in the history
Update data_quality.ipynb
  • Loading branch information
rlopezcoto authored Feb 12, 2024
2 parents e00486d + 973b1b9 commit 24d2e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/data_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@
"# NOTE: you may have to play with starting parameters if fit does not converge:\n",
"params, _ = curve_fit(gaus, xx[cc>min_content_for_fit], cc[cc>min_content_for_fit], \n",
" sigma=cc[cc>min_content_for_fit]**0.5, \n",
" p0=[100, 400, 2])\n",
" p0=[100, np.nanmedian(cis['intensity_at_reference_rate'][subrun_mask]), 2])\n",
"\n",
"plt.plot(xx, gaus(xx, params[0], params[1], params[2]), linewidth=1,\n",
" label=f'mean: {params[1]:.4f}, std: {params[2]:.4f}\\n Relative std dev: {params[2]/params[1]:.4f}')\n",
Expand Down Expand Up @@ -1529,7 +1529,7 @@
"# cosmics rate dR/dI @ 422 p.e.\n",
"#\n",
"# Run number:\n",
"rr = 11125\n",
"rr = runlist[0]\n",
"# 11125 example of a good (=selected) run\n",
"# 10882 example of many rate spikes\n",
"# Comment in runbook: \n",
Expand Down

0 comments on commit 24d2e2c

Please sign in to comment.