uwu 2
This commit is contained in:
parent
186e641a98
commit
42e0cf6a0e
|
@ -76,11 +76,7 @@ def align(db, ntraces):
|
||||||
|
|
||||||
def main(db):
|
def main(db):
|
||||||
ntraces = 1000
|
ntraces = 1000
|
||||||
# traces = align(db, ntraces)
|
traces = align(db, ntraces)
|
||||||
|
|
||||||
traces = numpy.zeros((ntraces, 700), 'double')
|
|
||||||
for i in range(ntraces):
|
|
||||||
traces[i, :] = db["traces"][i]
|
|
||||||
|
|
||||||
# for i in range(10):
|
# for i in range(10):
|
||||||
# plt.plot(traces[i], color=numpy.hstack((numpy.random.random(3), [0.5])))
|
# plt.plot(traces[i], color=numpy.hstack((numpy.random.random(3), [0.5])))
|
||||||
|
@ -136,6 +132,5 @@ if __name__ == "__main__":
|
||||||
from tqdm.contrib.logging import logging_redirect_tqdm
|
from tqdm.contrib.logging import logging_redirect_tqdm
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
with logging_redirect_tqdm():
|
with logging_redirect_tqdm():
|
||||||
# db = h5py.File("./ASCAD_databases/ASCAD_desync100.h5", "r")
|
db = h5py.File("./ASCAD_databases/ASCAD_desync100.h5", "r")
|
||||||
db = h5py.File("./ASCAD_databases/ASCAD.h5", "r")
|
|
||||||
main(db["Attack_traces"])
|
main(db["Attack_traces"])
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Reference in New Issue