Closed sanjayankur31 closed 3 months ago
Hey, thanks for reporting this @sanjayankur31.
We will look into this in connection with issue #410 , since both issues are related to an execution on a different architecture. So far, neither architecture has been the focus of our attention during elephant development, but we consider taking this into account for the future.
Thanks very much. Please do let me know if I can help in any way. I guess it's also OK for elephant to not support these arches if the dev team does not want to target them, just as long as this is noted somewhere so that users are aware.
x86_64
architecture.Feel free to reopen this, if it comes up again.
Another on aarch64 with 0.12.0, noting here for records:
______ MultitaperCoherenceTestCase.test_multitaper_cohere_perfect_cohere _______
self = <elephant.test.test_spectral.MultitaperCoherenceTestCase testMethod=test_multitaper_cohere_perfect_cohere>
def test_multitaper_cohere_perfect_cohere(self):
# Generate dummy data
data_length = 10000
sampling_period = 0.001
signal_freq = 100.0
noise = np.random.normal(size=(1, data_length))
time_points = np.arange(0, data_length * sampling_period,
sampling_period)
signal = np.cos(2 * np.pi * signal_freq * time_points) + noise
# Estimate coherence and phase lag with the multitaper method
freq1, coh, phase_lag = elephant.spectral.multitaper_coherence(
signal,
signal,
fs=1/sampling_period,
n_segments=16)
self.assertTrue((coh == np.ones(coh.size)).all())
> self.assertTrue((phase_lag == np.zeros(phase_lag.size)).all())
E AssertionError: False is not true
elephant/test/test_spectral.py:867: AssertionError
Thank you for reporting this. Indeed, numerical precision is an issue for these unit tests. We'll try to come up with a better solution for handling these cases.
Addressed in #573 .
Feel free to reopen at any time.
Describe the bug
When building 0.11.0 for Fedora, these two tests fail on aarch64
To Reproduce
Expected behavior
Tests should pass
Environment
conda
,pip
, source): From sourceneo
python package version: 0.10.2elephant
python package version: 0.11.0Logs:
Output for convenience:
The tests passed on all other arches we support: x86_64, i686, s390x, ppc64le. Here's the temporary build (will be garbage collected in a few days):
https://koji.fedoraproject.org/koji/taskinfo?taskID=85975318