Skip to content

Command-line invocation as part of a pipeline #312

@davidbenncsiro

Description

@davidbenncsiro

I'm working toward the use of HyperCP as part of a RAMSES TriOS pipeline.

I've been locally modifying run_Sample_Data.py for this purpose, which seems to work fine, at least single-threaded with multi-level (L0 to L2).

My natural inclination would be to make a variant of this with command-line arguments.

I initially started to use Main.py's command-line arguments, but notice that there seems to be a mismatch between the actual parameter values passed to the Command object constructor and the formal parameters of Command.__init__ in Main.py.

So, my question is: what approach would you recommend for a command-line invocation of HyperCP? Some options are:

  1. Start with run_Sample_Data.py, generalise and add command-line arguments.
  2. Start with the Multi-Level processing option code in the GUI and convert to be command-line.
  3. Fix any errors in the command-line handling of Main.py. This may be closely associated with 2.

Option 3 would probably be simplest.

I note also the comment under __main__ in Main.py:

######## This section is not up to date. Scripted calls to Command are preferred. ##########

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions