<jupyter_start><jupyter_text>A. Before you get startedAuthor:<NAME> //  //2020-05-25 & updates 2021-01-03 ----------- B. What is this project about anyway?Good question! We have recorded an introduction for you guys so you can start with that:  - https://surfdrive.surf.nl/files/index.php/s/rMOcq6C5CpCBf4Q  There are some questions in there that you want to figure out before you continue, otherwise you'll have no idea what you are doing. You may find it very helpful that we have actually nicely written down what this 'Modulation' experiment actually is. This is the experiment where also the data that you are going to look at is coming from. The paper can be found here:  - https://arxiv.org/abs/1804.02765  After that, you can continue doing some (essential) checks below and start with the next tutorial where we take a look at a Co-60 spectrum.Finally if you run into a question related to radioactivity and you want a __very__ complete answer try the following (rather lengthy but excellent) reference: - <NAME> - radiation detection and measurement-----------  C. Installing the required softwareThese are some magic commands you can do in Ipython, I'm not going to explain it unless you ask because it is not needed to understand for the rest of the course.<jupyter_code># Lets try this, if it does not work, it's not much of a problem
!cd .. && python setup.py develop<jupyter_output>running develop
running egg_info
writing RP2021.egg-info\PKG-INFO
writing dependency_links to RP2021.egg-info\dependency_links.txt
writing requirements to RP2021.egg-info\requires.txt
writing top-level names to RP2021.egg-info\top_level.txt
reading manifest file 'RP2021.egg-info\SOURCES.txt'
writing manifest file 'RP2021.egg-info\SOURCES.txt'
running build_ext
Creating c:\users\joran\anaconda3\envs\rp2021\lib\site-packages\RP2021.egg-link (link to .)
RP2021 0.0.1 is already the active version in easy-install.pth

Installed c:\users\joran\rp2021
Processing dependencies for RP2021==0.0.1
Searching for tqdm==4.55.1
Best match: tqdm 4.55.1
Adding tqdm 4.55.1 to easy-install.pth file
Installing tqdm-script.py script to C:\Users\joran\Anaconda3\envs\RP2021\Scripts
Installing tqdm.exe script to C:\Users\joran\Anaconda3\envs\RP2021\Scripts

Using c:\users\joran\anaconda3\envs\rp2021\lib\site-packages
Searching for awkward==1.0.1
Best match: awkward 1.0.1
Adding awkward 1.0.1 to easy-install.pt[...]<jupyter_text>----------- D. Checking the packagesBefore we can start with actually opening files and generating spectra we need to make sure you have a working python environment to work in. To this end we first need to have to cell below working otherwise we may need to install some packages.Execute the cell below:<jupyter_code>import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import uproot
import numba
try:
    import RP2021
except ModuleNotFoundError:
    # This module is not installed correctly, let's hack it in
    import sys
    import os
    path = os.path.join(os.path.abspath('.'), '..')
    sys.path.append(path) 
    import RP2021<jupyter_output><empty_output><jupyter_text>**If** you get somthing  like:```---------------------------------------------------------------------------ModuleNotFoundError                       Traceback (most recent call last) in ----> 1 import numbaModuleNotFoundError: No module named 'numba'```**Then, do the following:** 1. restart this notebook (Kernel -> Restart) 2. if the error persists after `1.`, we need to install that. You can do this by for example uncommenting the relevant line below (or if you are lazy just execute all of them or the last one). If you do not get such an error, you can proceed to `E.`.<jupyter_code># # Uncomment whatever you need
# !pip install pandas
# !pip install numpy
# !pip install uproot
# !pip install numba
# !pip install matplotlib
# !cd ../ ; python setup.py develop # if RP2021 does not import
# # Or, if you are lazy do this:
# !pip install pandas numpy uproot numba matplotlib ; cd .. ; python setup.py develop<jupyter_output><empty_output><jupyter_text>E. Checking python versionWe assume you have python 3.6 or higher. Check that using the lines below:<jupyter_code>import platform
print(platform.python_version())
print(f'This wonderderfull line will not work in old python versions. '
      f'If it does you have a good version: v{platform.python_version()}')<jupyter_output>This wonderderfull line will not work in old python versions. If it does you have a good version: v3.7.9
{'fraction_non_alphanumeric': 0.10011098779134295, 'fraction_numerical': 0.030632630410654827, 'mean_word_length': 3.829581993569132, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '259844', 'license': 'MIT', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1297, 'n_words': 559, 'path': '00_getting_started/0. before_you_get_started.ipynb', 'repo_name': 'jorana/RP2021', 'size': '4516'}