<jupyter_start><jupyter_text>In this Notebook, we import the loop voltage of a given GOLEM shot<jupyter_code>ShotNo = 26023
diagnSPEC = "loop_voltage"
# Forge the data URL
baseURL = "http://golem.fjfi.cvut.cz/utils/data/" 
dataURL = baseURL+ str(ShotNo) + '/' + diagnSPEC + '.npz'
# Retrieve data
print(f"Retrieve data from {dataURL}")
data_source = np.DataSource('.').open(dataURL) # also save the downloaded file into current dir
uloop = np.load(data_source.name)<jupyter_output>Retrieve data from http://golem.fjfi.cvut.cz/utils/data/26023/loop_voltage.npz<jupyter_text>Loading a .npz file contains more than the raw data, but also additional information of the diagnostic<jupyter_code>for key, value in uloop.items():
    print(f"data[{key}]={value}")
fig, ax = plt.subplots()
ax.plot(uloop['data'])
# the time array can be reconstructed from the diagnostic data:
t_uloop = np.linspace(uloop['t_start'], uloop['t_end'], len(uloop['data']))
fig, ax = plt.subplots()
ax.plot(t_uloop, uloop['data'])
ax.set_title(uloop['name'].astype(str)) # astype(str) to convert the byte mode<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14337240757439135, 'fraction_numerical': 0.009017132551848512, 'mean_word_length': 6.115384615384615, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '226651', 'license': 'MIT', 'n_tokens_mistral': 416, 'n_tokens_neox': 401, 'n_words': 99, 'path': 'GOLEM_Uloop example.ipynb', 'repo_name': 'jhillairet/GOLEM', 'size': '1109'}