Skip to content
Snippets Groups Projects
Commit faa2061b authored by Christian Darsow-Fromm's avatar Christian Darsow-Fromm
Browse files

black

parent 14506097
Branches
No related tags found
No related merge requests found
...@@ -227,7 +227,7 @@ def linewidth( ...@@ -227,7 +227,7 @@ def linewidth(
plt.figure() plt.figure()
plt.plot( plt.plot(
plot_frequency, data["Error_filtered"], marker="x", label="Error function", plot_frequency, data["Error_filtered"], marker="x", label="Error function"
) )
plt.plot(plot_frequency, data["Error_gradient"], ls="-", label="Gradient") plt.plot(plot_frequency, data["Error_gradient"], ls="-", label="Gradient")
plt.plot( plt.plot(
...@@ -242,7 +242,7 @@ def linewidth( ...@@ -242,7 +242,7 @@ def linewidth(
plt.figure() # pylint: disable=unused-variable plt.figure() # pylint: disable=unused-variable
plt.plot( plt.plot(
plot_frequency_window, data_offset, linestyle=" ", marker=".", label="data", plot_frequency_window, data_offset, linestyle=" ", marker=".", label="data"
) )
plt.plot(plot_frequency_window, fit, label="fit") plt.plot(plot_frequency_window, fit, label="fit")
......
...@@ -57,12 +57,7 @@ class KeysightVisa(VisaImporter): ...@@ -57,12 +57,7 @@ class KeysightVisa(VisaImporter):
preamble = self.query("WAV:PREamble?").strip() preamble = self.query("WAV:PREamble?").strip()
entries = preamble.split(",") entries = preamble.split(",")
type_dict = { type_dict = {0: "normal", 1: "peak detect", 2: "average", 3: "hresolution"}
0: "normal",
1: "peak detect",
2: "average",
3: "hresolution",
}
self._header = dict( self._header = dict(
# format=entries[0], # format=entries[0],
......
...@@ -54,10 +54,7 @@ class TestGwinstek(unittest.TestCase): ...@@ -54,10 +54,7 @@ class TestGwinstek(unittest.TestCase):
raise AssertionError(f"{file} did not raise {UnknownFileType}") from e raise AssertionError(f"{file} did not raise {UnknownFileType}") from e
def test_missing_data(self): def test_missing_data(self):
files = [ files = [filedir / "missing_data.csv", filedir / "missing_data_1.csv"]
filedir / "missing_data.csv",
filedir / "missing_data_1.csv",
]
for file in files: for file in files:
try: try:
with self.assertRaises(EmptyDataError): with self.assertRaises(EmptyDataError):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment