We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5827b23 commit e95acfbCopy full SHA for e95acfb
tests/test_pylammpsmpi_local.py
@@ -5,6 +5,7 @@
5
import unittest
6
import numpy as np
7
import os
8
+import sys
9
from pylammpsmpi import LammpsLibrary
10
11
@@ -55,8 +56,9 @@ def test_extract_variable(self):
55
56
x = self.lmp.extract_variable("tt", "all", 0)
57
self.assertEqual(np.round(x, 2), 1.13)
58
x = self.lmp.extract_variable("fx", "all", 1)
- self.assertEqual(len(x), 256)
59
- self.assertEqual(np.round(x[0], 2), -0.26)
+ if sys.version_info >= (3, 10):
60
+ self.assertEqual(len(x), 256)
61
+ self.assertEqual(np.round(x[0], 2), -0.26)
62
63
def test_scatter_atoms(self):
64
0 commit comments