Skip to content

Commit acd1771

Browse files
aeantipovAndrey Antipovbasnijholt
authored
data and analysis for PRL 130, 207001 (2023) (#5)
* data and analysis for PRL 130, 207001 (2023) * update noxfile * Pin matplotlib to prevent bug Prevents matplotlib/matplotlib#26287 * Pin sklearn --------- Co-authored-by: Andrey Antipov <[email protected]> Co-authored-by: Bas Nijholt <[email protected]>
1 parent b5c2842 commit acd1771

File tree

4 files changed

+119
-2
lines changed

4 files changed

+119
-2
lines changed

data/PRL130_207001.nc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:4962fbe917f375842d1ad3f5182b10fbbad5e10bd7cbd474cfae77f18cccfd40
3+
size 100075802

notebooks/PRL130_207001.ipynb

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "cc9b387c-fb17-44ef-b8bc-6b8996d2ae93",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"import tgp\n",
11+
"from tgp.plot import paper\n",
12+
"import xarray as xr"
13+
]
14+
},
15+
{
16+
"cell_type": "code",
17+
"execution_count": null,
18+
"id": "ebf07338-e9cb-4795-9dd1-d9ab4afd85e4",
19+
"metadata": {},
20+
"outputs": [],
21+
"source": [
22+
"ds_T0 = xr.load_dataset('../data/PRL130_207001.nc')\n",
23+
"ds_T0 = tgp.prepare.prepare(ds_T0)"
24+
]
25+
},
26+
{
27+
"cell_type": "code",
28+
"execution_count": null,
29+
"id": "0d099e77-db27-4812-b880-4194a913b9d2",
30+
"metadata": {},
31+
"outputs": [],
32+
"source": [
33+
"ds_T0"
34+
]
35+
},
36+
{
37+
"cell_type": "code",
38+
"execution_count": null,
39+
"id": "30c6c010-bd14-4aea-8a07-9beca5aae77b",
40+
"metadata": {},
41+
"outputs": [],
42+
"source": [
43+
"# Perform temperature broadening\n",
44+
"ds = tgp.prepare.broaden_with_temperature(ds_T0, T_mK=40)"
45+
]
46+
},
47+
{
48+
"cell_type": "code",
49+
"execution_count": null,
50+
"id": "da44ef29-bc39-4630-bb85-6182159b867a",
51+
"metadata": {},
52+
"outputs": [],
53+
"source": [
54+
"# Inspect data\n",
55+
"ds_left = ds.rename({\"bias\": \"left_bias\"})\n",
56+
"ds_right = ds.rename({\"bias\": \"right_bias\"})\n",
57+
"tgp.plot.two.plot_data_interactive(ds_left, ds_right)"
58+
]
59+
},
60+
{
61+
"cell_type": "code",
62+
"execution_count": null,
63+
"id": "23f4b3bb-e322-4097-9515-6bc35ea3fe01",
64+
"metadata": {},
65+
"outputs": [],
66+
"source": [
67+
"# Identify regions of zero bias peaks and finite gap\n",
68+
"ds_left, ds_right = tgp.two.extract_gap(ds_left, ds_right)\n",
69+
"zbp_ds = tgp.two.zbp_dataset_derivative(ds_left, ds_right, average_over_cutter=False)\n",
70+
"tgp.two.set_gap_threshold(zbp_ds, threshold_high=None)\n",
71+
"zbp_ds = tgp.two.cluster_and_score(zbp_ds)"
72+
]
73+
},
74+
{
75+
"cell_type": "code",
76+
"execution_count": null,
77+
"id": "ab58f1b3-89b3-4b9d-bd7b-ecd58db2bf58",
78+
"metadata": {},
79+
"outputs": [],
80+
"source": [
81+
"selected_cutter = int(ds.where(ds[\"μ_L\"] == 0.0, drop =True).cutter_pair_index)\n",
82+
"fig, axs = tgp.plot.paper.plot_stage2_diagram(zbp_ds, cutter_value=selected_cutter, zbp_cluster_numbers=\"all\")\n",
83+
"axs[0].set_ylabel(r'$\\mu$ [meV]')\n",
84+
"axs[0].set_xlabel(r'$B$ [meV]')\n",
85+
"axs[1].set_xlabel(r'$B$ [meV]')"
86+
]
87+
},
88+
{
89+
"cell_type": "code",
90+
"execution_count": null,
91+
"id": "fe262954-88e1-43c1-83c0-aa6018661d63",
92+
"metadata": {},
93+
"outputs": [],
94+
"source": []
95+
}
96+
],
97+
"metadata": {
98+
"language_info": {
99+
"codemirror_mode": {
100+
"name": "ipython",
101+
"version": 3
102+
},
103+
"file_extension": ".py",
104+
"mimetype": "text/x-python",
105+
"name": "python",
106+
"nbconvert_exporter": "python",
107+
"pygments_lexer": "ipython3",
108+
"version": "3.10.8"
109+
}
110+
},
111+
"nbformat": 4,
112+
"nbformat_minor": 5
113+
}

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"notebooks/stage-one-analysis.ipynb",
1111
"notebooks/stage-two-analysis.ipynb",
1212
"notebooks/fridge-calibration.ipynb",
13+
"notebooks/PRL130_207001.ipynb",
1314
]
1415

1516

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ h5netcdf
22
ipython
33
ipywidgets
44
jinja2
5-
matplotlib
5+
matplotlib==3.7.1
66
numpy
77
pandas
88
pyyaml
99
rich
1010
ruamel.yaml
11-
scikit-learn
11+
scikit-learn==1.2.2
1212
scipy
1313
toolz
1414
tqdm

0 commit comments

Comments
 (0)