Giter Club home page Giter Club logo

Comments (2)

liamhuber avatar liamhuber commented on June 2, 2024 1

Hi @MakaEdgar

Thanks for bringing this to our attention. I can perfectly reproduce your error on my machine as well. The root problem is the call to ase.build.bulk, which we are simply putting a wrapper around.

The code immediately before the raised error is this (ase.build.bulk.py -- lines 76-81) :

        if xref == 'cubic':
            # P and Mn are listed as 'cubic' but the lattice constants
            # are 7 and 9.  They must be something other than simple cubic
            # then. We used to just return the cubic one but that must
            # have been wrong somehow.  --askhl
            raise RuntimeError('Only simple cubic ("sc") supported')

I don't have any deep understanding of this, but it looks like it's a known problem over at ASE.

I'm disinclined to start patching over ASE deficiencies by adding extra stuff onto our ASE wrapper functions; I'd rather wait until the problem is solved at the source.

In the meantime, I can offer a simple (albeit a bit ugly and annoying!) workaround:

from pyiron import Project
pr = Project("Mn_fix")

workaround_Mn = pr.create.structure.bulk(name="Fe", a=3.02, crystalstructure="bcc")
# create.structure.bulk is just our new syntax for create_ase_bulk
workaround_Mn[:] = "Mn"

from pyiron_atomistics.

pmrv avatar pmrv commented on June 2, 2024

FWIW, this is known in ASE world here and here.

from pyiron_atomistics.

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.