Comments (6)
@woshijamess many thanks for bringing the problem up!
It seems that there's a problem with the call to the extension module! Looks like it fails to create the underlying object
You could verify this by executing:
import numpy as np
from sqsgenerator.core.core import Structure
Structure(np.eye(3), np.array([[0.0,0.0,0.0]]), ["Fe"], (True, True, True))
and see what the exception is, that would help to examine the problem further!
There is one strange thing however. You stack trace states
structure.py line 40: super(Structure, self).init(lattice, frac_coords, symbols, pbc)
. However, it line 40 should be super(Structure, self).__init__(lattice, frac_coords, symbols, pbc)
, hence the underscores (__
) are missing.
Were there changes made to the code?
from sqsgenerator.
Thanks for your reply.
"
import numpy as np
from sqsgenerator.core.core import Structure
Structure(np.eye(3), np.array([[0.0,0.0,0.0]]), ["Fe"], (True, True, True))
AttributeError: 'tuple' object has no attribute 'class'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 1, in
SystemError: <method-wrapper 'iter' of list object at 0x1114f10c0> returned a result with an exception set
"
Still the tuple error.
Also, recheck the code.
Yes, it is "super(Structure, self).init(lattice, frac_coords, symbols, pbc)"
from sqsgenerator.
Yes, it is "super(Structure, self).""init""(lattice, frac_coords, symbols, pbc)" It has the underscore but vanish when reply.
from sqsgenerator.
Ohh Markdown rendering removes the underscores for 🤦
Many thanks for investigating the issue further.
I can reproduce the error ...
I'll try to fix it as fast as possible, I'll let you know
from sqsgenerator.
The bug should be fixed in the master branch. The also the Anaconda packages should be fixed, as a new build is available!
@woshijamess again many thanks for bringing the issue up!
from sqsgenerator.
Thanks very much for your hardworking even on weekends. It is fixed now.
from sqsgenerator.
Related Issues (14)
- License
- Calculate Warren-Cowley short-range-order HOT 5
- progress bar HOT 1
- Issue with building sqsgenerator
- Configurational entropy HOT 1
- How to check the number of A-B bonds in sqsgenerator HOT 1
- Thread Limit HOT 1
- Issue with ASE structure conversion HOT 3
- Number of A-B bonds for (111)-oriented supercells of N3Al HOT 3
- Feature Information HOT 10
- Valueerror on unspecified file (here: POSCAR) HOT 3
- setting up the composition flag correctly HOT 1
- Defining sublattice composition HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqsgenerator.