Code Monkey home page Code Monkey logo

Comments (2)

mattwthompson avatar mattwthompson commented on August 26, 2024

I can reproduce this; there must be something different about this dataset that causes the parsing to fail in ways that the other supported properties do not. Or maybe it's not correctly being loaded as a plugin

from openff-evaluator.

mattwthompson avatar mattwthompson commented on August 26, 2024

Whatever's going wrong is surfacing from here:

properties = _PureOrMixtureData.from_xml_node(node, namespace, compounds)

It can't be that all identifiers are missed, otherwise it wouldn't think everything was pure water

Here's the script I'm using to test, based on what you shared:

from openff.units import unit

from openff.evaluator.datasets import PhysicalProperty, PropertyPhase
from openff.evaluator.datasets.thermoml import thermoml_property
from openff.evaluator.datasets.thermoml.thermoml import ThermoMLDataSet
from openff.evaluator.plugins import register_default_plugins, register_external_plugins


@thermoml_property(
    "Osmotic coefficient",
    supported_phases=PropertyPhase.Liquid | PropertyPhase.Gas,
)
class OsmoticCoefficient(PhysicalProperty):
    def default_unit(cls):
        return unit.dimensionless


register_default_plugins()
register_external_plugins()

ThermoMLDataSet._from_url(
    "https://trc.nist.gov/ThermoML/10.1016/j.fluid.2006.09.025.xml"
)

from openff-evaluator.

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.