Giter Site home page Giter Site logo

Comments (6)

dgehringer avatar dgehringer commented on May 27, 2024

@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.

woshijamess avatar woshijamess commented on May 27, 2024

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.

woshijamess avatar woshijamess commented on May 27, 2024

Yes, it is "super(Structure, self).""init""(lattice, frac_coords, symbols, pbc)" It has the underscore but vanish when reply.

from sqsgenerator.

dgehringer avatar dgehringer commented on May 27, 2024

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.

dgehringer avatar dgehringer commented on May 27, 2024

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.

woshijamess avatar woshijamess commented on May 27, 2024

Thanks very much for your hardworking even on weekends. It is fixed now.

from sqsgenerator.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.