Skip to content
Snippets Groups Projects
Commit 338d061f authored by Antonello, Dr. Massimiliano's avatar Antonello, Dr. Massimiliano
Browse files

slightly different structure

parent c13ce820
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ __pycache__/
# Jupyter Notebook checkpoints
.ipynb_checkpoints
# Matplotlib plot images
*.png
# Output folder
output/*
# Data files
*.csv
......
......@@ -28,7 +28,8 @@ pip install -r requirements.txt
to install all the required python packages (best in a new python virtual environment)
## Usage
Create/modify Main_example.py:
Create/modify Example.py:
```
python Main_example.py
python user/Example.py
python user/ExampleTransients.py
```
\ No newline at end of file
File moved
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from LightSimtastic import SiPMSimulation
import matplotlib.pyplot as plt
import numpy as np
......@@ -89,5 +92,4 @@ plt.yscale("log")
plt.xticks(fontsize=25)
plt.yticks(fontsize=25)
plt.xlabel("# GD", fontsize=25),
plt.savefig("./Example.png")
plt.savefig("./output/Example.png")
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from LightSimtastic import SiPMSimulation
import matplotlib.pyplot as plt
import numpy as np
......@@ -126,5 +129,4 @@ plt.yscale("log")
plt.xticks(fontsize=25)
plt.yticks(fontsize=25)
plt.xlabel("# GD", fontsize=25),
plt.savefig("./Example.png")
plt.savefig("./output/ExampleTransients.png")
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from LightSimtastic import SiPMSimulation
import matplotlib.pyplot as plt
import numpy as np
......@@ -126,5 +130,4 @@ plt.yscale("log")
plt.xticks(fontsize=25)
plt.yticks(fontsize=25)
plt.xlabel("# GD", fontsize=25),
plt.savefig("./Example.png")
plt.savefig("./output/Example.png")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment