Skip to content

Error in calling daast_from_file(filename). #21

@shalakhansidmul

Description

@shalakhansidmul

In version 1.1.0b13, the method daast_from_file requires a positional argument args.
The comment in the method says: 'filename' is the filename of source file. Optional argument 'args' is a
Namespace object containing the command line parameters for the compiler.
Returns the generated DistAlgo AST.

However, args is not an optional argument here. Thus, method call such as: daast_from_file(filename) throws an error.
The argument args is not used in the method daast_from_file, it is simply passed on to the method daast_from_str where it is indeed optional.

I am using version 1.1.0b10 and it had the args argument as optional.
It should be made optional in the current version to support method call such as: daast_from_file(filename).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions