Code Monkey home page Code Monkey logo

Comments (7)

cjh1 avatar cjh1 commented on June 13, 2024 1

This should now be resolve OpenChemistry/oc-web-components/pull/141, it has also been deployed to data.openchemistry.org.

from mongochemclient.

cryos avatar cryos commented on June 13, 2024

Is there a place we could get at the CJSON it sees?

from mongochemclient.

cjh1 avatar cjh1 commented on June 13, 2024

Here is an example of a failing CJSON

from mongochemclient.

cryos avatar cryos commented on June 13, 2024

That is weird, it looks totally valid, and renders as expected in Avogadro 2. I guess something is going wrong in the 3dmol code somewhere, but I can't imagine what.

from mongochemclient.

psavery avatar psavery commented on June 13, 2024

I've also encountered some molecules from qcarchive that do not render with 3dMol.js, but they do render with VTK.js.

However, I don't see any errors in the javascript console when these fail to render, so I am not sure if this is related to this issue.

Two examples are attached below.

mol1.cjson.gz
mol2.cjson.gz

from mongochemclient.

psavery avatar psavery commented on June 13, 2024

It looks like this error is also occurring for this molecule on data.openchemistry.org.

from mongochemclient.

cryos avatar cryos commented on June 13, 2024

@alesgenova do you have any ideas on what is going on here? It isn't clear what is undefined in this context, but it would seem that the 3dmol widget is expecting something that is missing. Ideally it would check that the element was defined before trying to reference attributes and fail more gracefully.

from mongochemclient.

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.