GithubHelp home page GithubHelp logo

Comments (8)

felipeZ avatar felipeZ commented on June 15, 2024

That is already done in the definition of __getattr__ in class Results:

    def __getattr__(self, prop):
        """Returns a section of the results.

        Example:

        ..
            dipole = result.dipole
        """
        if prop in self.prop_dict:
            return self.get_property(prop)
        else:
            raise KeyError("Generic property '" + str(prop) + "' not defined")

from qmflows.

ridderl avatar ridderl commented on June 15, 2024

No I mean generic keywords in the settings, it means we should raise a RuntimeError in handle_special_keywords it the key is not found. I now see it is already done in ADF, but not in DFTB. I will do it. Not sure about the other packages.

from qmflows.

felipeZ avatar felipeZ commented on June 15, 2024

Ok, I will do it for gamess, Orca and Cp2k

from qmflows.

felipeZ avatar felipeZ commented on June 15, 2024

Can We make a list of all the special keywords that should be implemented in all packages?

Keywords:

  • basis

from qmflows.

ridderl avatar ridderl commented on June 15, 2024

Actually a warning might be better. Sometimes I want to quickly test a workflow by replacing a package by DFTB, and for sure DFTB doesn't have some of the keywords (e.g. basis)

I think we should introduce a logger, so we can use different warning levels. Then the script can be run at different tolerance levels as well.

from qmflows.

felipeZ avatar felipeZ commented on June 15, 2024

What about an UserWarning?

from qmflows.

felipeZ avatar felipeZ commented on June 15, 2024

like:

from warnings import warn
msg = "Beware!"
warn(UserWarning(msg))

from qmflows.

ridderl avatar ridderl commented on June 15, 2024

OK, let's use that ....

from qmflows.

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.