<jupyter_start><jupyter_text>CONFOCAL1<jupyter_code>fname = "20211004-1254-39_pillar1_confocal_xy_image_1.dat"

params = sio.read_qudi_parameters(fname, CONFOCAL_SUBFOLDERPATH)
data = np.genfromtxt(CONFOCAL_SUBFOLDERPATH + fname, dtype=None, delimiter='\t')
%matplotlib widget
extent = np.array([params['X image min (m)'], params['X image max (m)'], params['Y image min'], params['Y image max']]) * 1e6

fig, ax = plt.subplots()
img = ax.imshow(data/1e3, cmap="inferno", origin="lower", vmin=30, vmax=400, extent=extent)
cbar = fig.colorbar(img, ax=ax)
cbar.set_label("Fluorescence (Mc/s)")
ax.set_xlabel("X position (μm)")
ax.set_ylabel("Y position (μm)")
#sio.save_figures(fname, folder=os.path.join(FIGURE_FOLDERPATH, CONFOCAL_SUBFOLDER))<jupyter_output><empty_output><jupyter_text>CONFOCAL2<jupyter_code>fname = "20211004-1346-16_pillar1_confocal_xy_image_1.dat"

params = sio.read_qudi_parameters(fname, CONFOCAL_SUBFOLDERPATH)
data = np.genfromtxt(CONFOCAL_SUBFOLDERPATH + fname, dtype=None, delimiter='\t')
%matplotlib widget
extent = np.array([params['X image min (m)'], params['X image max (m)'], params['Y image min'], params['Y image max']]) * 1e6

fig, ax = plt.subplots()
img = ax.imshow(data/1e3, cmap="inferno", origin="lower", vmin=60, vmax=400, extent=extent)
cbar = fig.colorbar(img, ax=ax)
cbar.set_label("Fluorescence (Mc/s)")
ax.set_xlabel("X position (μm)")
ax.set_ylabel("Y position (μm)")
sio.save_figures(fname, folder=os.path.join(FIGURE_FOLDERPATH, CONFOCAL_SUBFOLDER))
fig, (ax1, ax2) = plt.subplots(nrows=2)


fname = "20211020-1701-48_ODMR_data_ch0.dat"
params = sio.read_qudi_parameters(fname, ODMR_SUBFOLDERPATH1)
data = np.genfromtxt(ODMR_SUBFOLDERPATH1 + fname, dtype=np.float, delimiter='\t')
freq, counts = data[:, 0], data[:, 1]

a = 15
ax1.plot(freq[a:]/1e9, counts[a:]/1e3, "o--", label="NV1")
ax1.set_xlabel("Frequency (GHz)")
ax1.set_ylabel("Fluorescence (kc/s)")

fname = "20210930-1836-08_ODMR_data_ch0.dat"
params = sio.read_qudi_parameters(fname, ODMR_SUBFOLDERPATH2)
data = np.genfromtxt(ODMR_SUBFOLDERPATH2 + fname, dtype=np.float, delimiter='\t')
freq, counts = data[:, 0], data[:, 1]

a, b = 20, 55
ax2.plot(freq[a:b]/1e9, counts[a:b]/1e3, "o--", color="tab:orange", label="NV2")
ax2.set_xlabel("Frequency (GHz)")
ax2.set_ylabel("Fluorescence (kc/s)")
fig.legend()

sio.save_figures("Comparison_ODMR_at_two_NVs", folder=os.path.join(FIGURE_FOLDERPATH, ODMR_SUBFOLDER1))<jupyter_output><empty_output><jupyter_text>ODMR1<jupyter_code>fname = "20211020-1701-48_ODMR_data_ch0.dat"

params = sio.read_qudi_parameters(fname, ODMR_SUBFOLDERPATH1)
data = np.genfromtxt(ODMR_SUBFOLDERPATH1 + fname, dtype=np.float, delimiter='\t')
freq, counts = data[:, 0], data[:, 1]
fig, ax = plt.subplots()
a = 15
ax.plot(freq[a:]/1e9, counts[a:]/1e3, "o--")
ax.set_xlabel("Frequency (GHz)")
ax.set_ylabel("Fluorescence (kc/s)")
sio.save_figures(fname, folder=os.path.join(FIGURE_FOLDERPATH, ODMR_SUBFOLDER1))<jupyter_output><empty_output><jupyter_text>ODMR2<jupyter_code>fname = "20210930-1836-08_ODMR_data_ch0.dat"

params = sio.read_qudi_parameters(fname, ODMR_SUBFOLDERPATH2)
data = np.genfromtxt(ODMR_SUBFOLDERPATH2 + fname, dtype=np.float, delimiter='\t')
freq, counts = data[:, 0], data[:, 1]
fig, ax = plt.subplots()
a, b = 20, 55
ax.plot(freq[a:b]/1e9, counts[a:b]/1e3, "o--")
ax.set_xlabel("Frequency (GHz)")
ax.set_ylabel("Fluorescence (kc/s)")
sio.save_figures(fname, folder=os.path.join(FIGURE_FOLDERPATH, ODMR_SUBFOLDER2))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17463498425422272, 'fraction_numerical': 0.049241339822502145, 'mean_word_length': 7.868020304568528, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '65058', 'license': 'MIT', 'n_tokens_mistral': 1654, 'n_tokens_neox': 1540, 'n_words': 228, 'path': 'notebooks/20210816_RTStageTesting_MW_MembraneSample.ipynb', 'repo_name': 'dineshpinto/qudiamond-analysis', 'size': '3493'}