fix(v5): default fft spectrum to log magnitude
This commit is contained in:
@@ -83,6 +83,7 @@ class ApiTests(TestCase):
|
||||
self.assertEqual(operations["periodic_noise"]["params"]["T"]["default"], 100)
|
||||
self.assertEqual(operations["inverse_fft_reconstruction"]["label"], "Inverse FFT Reconstruction")
|
||||
self.assertFalse(operations["inverse_fft_reconstruction"]["repeatable"])
|
||||
self.assertEqual(operations["fft_spectrum"]["params"], {})
|
||||
self.assertEqual(operations["box_filter"]["label"], "Average / Box Filter")
|
||||
self.assertEqual(operations["gaussian_filter"]["label"], "Gaussian Filter")
|
||||
self.assertFalse(operations["negative"]["repeatable"])
|
||||
@@ -312,7 +313,7 @@ class ApiTests(TestCase):
|
||||
s0_id = upload.data["states"][0]["state_id"]
|
||||
spectrum = self.client.post(
|
||||
f"/api/states/{s0_id}/operations/",
|
||||
{"operation": "fft_spectrum", "params": {"mode": "log_magnitude"}},
|
||||
{"operation": "fft_spectrum", "params": {}},
|
||||
format="json",
|
||||
)
|
||||
|
||||
@@ -327,7 +328,7 @@ class ApiTests(TestCase):
|
||||
s0_id = upload.data["states"][0]["state_id"]
|
||||
spectrum = self.client.post(
|
||||
f"/api/states/{s0_id}/operations/",
|
||||
{"operation": "fft_spectrum", "params": {"mode": "log_magnitude"}},
|
||||
{"operation": "fft_spectrum", "params": {}},
|
||||
format="json",
|
||||
)
|
||||
response = self.client.post(
|
||||
@@ -347,7 +348,7 @@ class ApiTests(TestCase):
|
||||
s0_id = upload.data["states"][0]["state_id"]
|
||||
spectrum = self.client.post(
|
||||
f"/api/states/{s0_id}/operations/",
|
||||
{"operation": "fft_spectrum", "params": {"mode": "log_magnitude"}},
|
||||
{"operation": "fft_spectrum", "params": {}},
|
||||
format="json",
|
||||
)
|
||||
response = self.client.post(
|
||||
|
||||
Reference in New Issue
Block a user