Giter VIP home page Giter VIP logo

Comments (2)

jmlorenzi avatar jmlorenzi commented on July 28, 2024 1

I took a quick look and it looks like somewhere between ase version 3.12.0b1 (the one I happen to have in my workstation) and the current version, they changed the signature for ase.gui.view.View from

def __init__(self, vbox, rotations):
to
def __init__(self, rotations):

Sadly, I am not familiar with how this class works on ase and/or the significance of the vbox parameter for kmos. If you need to use the viewer as soon as possible, I would recommend reverting to and older ase version for now.

An alternative quick hack that could work, but is definitely not guarranteed to is to change
View.__init__(self, self.vbox, rotations)
to
View.__init__(self, rotations).
If you test this and works, you could then wrap this line in a try-except block, that calls the function without the vbox arguments in case of an exception.

However, I doubt this will work. I guess @mhoffman should be able to come up with an estimate on how difficult implementing support for this newer ase version would be.

Hope this helps,
Juan

from kmos.

Abel-Ding avatar Abel-Ding commented on July 28, 2024

Thank you for your suggestion, I will try as you said and response to you as soon as possible.

Have a nice day,

DING Haoran

from kmos.

Related Issues (20)

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.