Skip to content

Commit

Permalink
pep 8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie-Brown committed Oct 19, 2024
1 parent 30c6de1 commit 1c49cfb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -853,18 +853,22 @@
"def quadrature(scenario):\n",
" return np.sqrt(np.sum([np.sqrt(i)**2 for i in scenario]))\n",
"\n",
"\n",
"def sum_sq(scenario):\n",
" return np.sqrt(np.sum(scenario))\n",
"\n",
"\n",
"def pixel_err(scenario):\n",
" return np.sqrt(np.sum(\n",
" [(poisson_conf_interval(i, interval='frequentist-confidence')[1]-i)**2 \n",
" for i in scenario]))\n",
"\n",
"\n",
"def upper_err(scenario):\n",
" return (poisson_conf_interval(\n",
" np.sum(scenario), interval='frequentist-confidence')[1]\n",
" - np.sum(scenario))\n",
" - np.sum(scenario))\n",
"\n",
"\n",
"print('Scenario 1: ', scenario1)\n",
"print('Scenario 2: ', scenario2)\n",
Expand Down

0 comments on commit 1c49cfb

Please sign in to comment.