initial commit
This commit is contained in:
15
tests/playground.py
Normal file
15
tests/playground.py
Normal 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()
|
||||
Reference in New Issue
Block a user