Code Monkey home page Code Monkey logo

Comments (5)

sjrl avatar sjrl commented on July 17, 2024

I just noticed that the bool type was added to the extra_commands option in the Molpro program harness,

def execute(self,
inputs: Dict[str, Any],
extra_infiles: Optional[List[str]] = None,
extra_outfiles: Optional[List[str]] = None,
as_binary: Optional[List[str]] = None,
extra_commands: bool = None,
scratch_name: Optional[str] = None,
scratch_messy: bool = False,
timeout: Optional[int] = None) -> Tuple[bool, Dict[str, Any]]:

but it's currently being treated as if it were a list.
# Replace commands with extra_commands if present
commands = inputs["commands"]
if extra_commands is not None:
commands = extra_commands

It does not currently have a type set in the base execute function of the ProgramHarness so I wanted to ask how is the extra_commands option intended to be used?

from qcengine.

dgasmith avatar dgasmith commented on July 17, 2024

I think that must be a mistake. It should be List[str] no? @loriab

from qcengine.

loriab avatar loriab commented on July 17, 2024

Yes, Optional[List[str]]. It's also deceptively named because that list isn't of additional commands (plural) but of a single replacement command where the list is arguments (e.g., ['ls', '-l']).

from qcengine.

mattwelborn avatar mattwelborn commented on July 17, 2024

@sjrl Does the merging of PR #143 close this issue?

from qcengine.

sjrl avatar sjrl commented on July 17, 2024

Not entirely. The execute function in the base class is still missing a return type. I think I missed adding it there since the execute functions in different ProgramHarnesses were returning slightly different objects. I think it would be safe to add the return type to be -> Tuple[bool, Dict[str, Any]]

from qcengine.

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.