Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in pyxtal.symmetry module #214

Closed
ignaspakamore opened this issue Mar 9, 2023 · 1 comment
Closed

Error in pyxtal.symmetry module #214

ignaspakamore opened this issue Mar 9, 2023 · 1 comment

Comments

@ignaspakamore
Copy link

ignaspakamore commented Mar 9, 2023

When running the following code for certain space group numbers an error is returned:

>>> from pyxtal.symmetry import Group
>>> g = Group(int)
>>> g
-- Spacegroup --# 64 (Cmce)--
16g site symm: 1
8f  site symm: m..
8e  site symm: .2.
8d  site symm: 2..
8c  site symm: -1
4b  site symm: 2/m..
4a  site symm: 2/m..
Traceback (most recent call last):
  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 297, in __str__
    return self.string
AttributeError: 'Group' object has no attribute 'string'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 312, in __repr__
    return str(self)
  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 303, in __str__
    ops = ss_string_from_ops(wp.symmetry[0], self.number, dim=self.dim)
  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 2691, in ss_string_from_ops
    if np.isclose(abs(np.dot(opa.axis, axis)), 1):
  File "<__array_function__ internals>", line 180, in dot
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

It seems that it doesn't run for a certain set of space groups:
143
146
147
148
149
150
152
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194

@qzhu2017
Copy link
Owner

qzhu2017 commented Jun 1, 2023

When running the following code for certain space group numbers an error is returned:


>>> from pyxtal.symmetry import Group

>>> g = Group(int)

>>> g

-- Spacegroup --# 64 (Cmce)--

16g site symm: 1

8f  site symm: m..

8e  site symm: .2.

8d  site symm: 2..

8c  site symm: -1

4b  site symm: 2/m..

4a  site symm: 2/m..


Traceback (most recent call last):

  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 297, in __str__

    return self.string

AttributeError: 'Group' object has no attribute 'string'



During handling of the above exception, another exception occurred:



Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 312, in __repr__

    return str(self)

  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 303, in __str__

    ops = ss_string_from_ops(wp.symmetry[0], self.number, dim=self.dim)

  File "/Users/ignaspakamore/miniconda3/lib/python3.9/site-packages/pyxtal-0.5.6-py3.9.egg/pyxtal/symmetry.py", line 2691, in ss_string_from_ops

    if np.isclose(abs(np.dot(opa.axis, axis)), 1):

  File "<__array_function__ internals>", line 180, in dot

TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

It seems that it doesn't run for a certain set of space groups:

143

146

147

148

149

150

152

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

Sorry for the late reply. This error is probably due to recent change. I will resolve it and get back to you asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants