Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
annndruha committed Mar 12, 2024
1 parent e56c831 commit a496576
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion generate_dataset/simulator_ivc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_ivc(self, circuit: Circuit):
if ssr == 2000000:
ssr = 10000000

ssr*=2
ssr *= 2 # Increase quality

circuit.R('cs', 'input', 'input_dummy', self.measurement_settings['internal_resistance'])
circuit.AcLine('Current', circuit.gnd, 'input_dummy', rms_voltage=rms_voltage,
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
matplotlib
PySpice
numpy
git+https://github.com/EPC-MSU/EPCore
26 changes: 12 additions & 14 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Cut screenshots from EPLab
# import numpy as np
# import os
# import glob
# Temp file for work with dataset
# Will be removed soon

import os
import glob
from epcore.filemanager import load_board_from_ufiv
import numpy as np
import matplotlib.pyplot as plt
# from epcore.elements import Board
# from epcore.filemanager import save_board_to_ufiv
# from matplotlib.ticker import MultipleLocator
# import cv2
#
#

# files = glob.glob('C:\\dev\\ivc-circuit-detector\\dataset_human_compare\\original\\*\\*.png')
#
# for file in files:
Expand All @@ -14,15 +20,7 @@
# if not os.path.exists(os.path.split(filename)[0]):
# os.makedirs(os.path.split(filename)[0])
# cv2.imwrite(filename, img)
import glob

from epcore.elements import Board
from epcore.filemanager import save_board_to_ufiv, load_board_from_ufiv
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator
import glob
import os

PATH = "dataset/measurement_1kHz_middle_5v/*.uzf"
files = glob.glob(PATH)
Expand Down

0 comments on commit a496576

Please sign in to comment.