Skip to content

Commit

Permalink
Merge pull request #16 from dimitri-yatsenko/main
Browse files Browse the repository at this point in the history
clean up the work notebook
  • Loading branch information
dimitri-yatsenko authored Mar 5, 2024
2 parents a9e70c9 + 6b582df commit b43e104
Showing 1 changed file with 5 additions and 96 deletions.
101 changes: 5 additions & 96 deletions examples/workbook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 2,
"id": "9bc83088",
"metadata": {},
"outputs": [],
Expand All @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 3,
"id": "e352f315",
"metadata": {},
"outputs": [],
Expand All @@ -50,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 4,
"id": "e1b5e68d",
"metadata": {},
"outputs": [
Expand All @@ -67,7 +67,7 @@
" 'zero_level': 86.30213578612849}"
]
},
"execution_count": 18,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -86,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 5,
"id": "50f3d031",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -114,76 +114,6 @@
"plt.ylabel('variance');"
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "91680fa0",
"metadata": {},
"outputs": [],
"source": [
"beta = 0.5\n",
"input_max = 0x7FFF \n",
"xx = (np.r_[:input_max + 1] - zero_level) / sensitivity # input expressed in photon rates\n",
"zero_slope = 1 / beta / np.sqrt(3/8) # slope for negative values\n"
]
},
{
"cell_type": "code",
"execution_count": 32,
"id": "da262dbc",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, True])"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 45,
"id": "19bca6ae",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 48,
"id": "e324f531",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"73.9201639357969"
]
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"lookup_table.max()"
]
},
{
"cell_type": "markdown",
"id": "5bac614e",
Expand Down Expand Up @@ -324,27 +254,6 @@
"poisson_filter = PoissonCodec(zero_level, sensitivity)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "5a29ae7a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'int8'"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"poisson_filter.encoded_dtype"
]
},
{
"cell_type": "code",
"execution_count": 11,
Expand Down

0 comments on commit b43e104

Please sign in to comment.