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(
plt.figure()
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(
......@@ -242,7 +242,7 @@ def linewidth(
plt.figure() # pylint: disable=unused-variable
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")
......
......@@ -57,12 +57,7 @@ class KeysightVisa(VisaImporter):
preamble = self.query("WAV:PREamble?").strip()
entries = preamble.split(",")
type_dict = {
0: "normal",
1: "peak detect",
2: "average",
3: "hresolution",
}
type_dict = {0: "normal", 1: "peak detect", 2: "average", 3: "hresolution"}
self._header = dict(
# format=entries[0],
......
......@@ -54,10 +54,7 @@ class TestGwinstek(unittest.TestCase):
raise AssertionError(f"{file} did not raise {UnknownFileType}") from e
def test_missing_data(self):
files = [
filedir / "missing_data.csv",
filedir / "missing_data_1.csv",
]
files = [filedir / "missing_data.csv", filedir / "missing_data_1.csv"]
for file in files:
try:
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