Skip to content

Commit

Permalink
Fixed photon overflow corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
harripd committed Jun 20, 2024
1 parent 16a1e37 commit 6c60bf4
Show file tree
Hide file tree
Showing 4 changed files with 566 additions and 120 deletions.
21 changes: 4 additions & 17 deletions notebooks/Convert PicoQuant ns-ALEX files to Photon-HDF5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -239,20 +239,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## 3.1 Filtering photons\n",
"\n",
"Most photons are the detector 127, we can filter them out to save space:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"valid = detectors != 127\n",
"for field in ('detectors', 'timestamps', 'nanotimes'):\n",
" d['photon_data'][field] = d['photon_data'][field][valid]"
"## 3.1 Check all photons in ascending order"
]
},
{
Expand Down Expand Up @@ -547,7 +534,7 @@
"name": "py36"
},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -561,7 +548,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.12.3"
},
"nteract": {
"version": "0.12.3"
Expand All @@ -578,5 +565,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
Loading

0 comments on commit 6c60bf4

Please sign in to comment.