initial commit

This commit is contained in:
Benoît Sierro
2021-01-28 22:43:54 +01:00
commit bf8e2ec0b1
80 changed files with 61379 additions and 0 deletions

15
tests/playground.py Normal file
View File

@@ -0,0 +1,15 @@
from scgenerator import io
from scgenerator.io import _get_data_subfolders
import numpy as np
from glob import glob
from scgenerator.math import abs2
from matplotlib import pyplot as plt
path = "scgenerator_full anomalous123/wavelength_8.35e-07"
for i in [0, 63]:
dat = np.load(f"{path}/spectra_{i}.npy")
for d in dat:
plt.plot(abs2(d))
plt.show()