Skip to content
Snippets Groups Projects

update_config with new mapping

Merged Karim Ahmed requested to merge feat/update_config_using_karabo_id into master
5 unresolved threads

@karnem MR with changes to webservice to have the update config service working properly

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
801 809 ).split()
802 810
803 811 cmd = await parse_config(cmd, dconfig)
804 812 ret = await run_action(job_db, cmd, mode, proposal, runnr,
  • Karim Ahmed added 1 commit

    added 1 commit

    Compare with previous version

  • Karim Ahmed added 1 commit

    added 1 commit

    Compare with previous version

  • Karim Ahmed added 1 commit

    added 1 commit

    Compare with previous version

  • 63
    53 64
    54 if detector is not None:
    55 for option, typ in available_options[detector].items():
    56 if typ == list:
    57 nargs = '+'
    58 else:
    59 nargs = None
    60 parser.add_argument(f"--{option}", type=typ, nargs=nargs)
    65 # Avoid erros when karabo_id not yet given through the command line.
    66 if karabo_id is not None:
    67 for det, val in available_options[karabo_id][0].items():
    68 if val['typ'] == bool:
    69 bool_keys.append(det)
    70
    71 for b in bool_keys:
  • Apart small comment, LGTM.

  • Karim Ahmed added 1 commit

    added 1 commit

    Compare with previous version

  • Karim Ahmed added 1 commit

    added 1 commit

    Compare with previous version

  • merged

  • Karim Ahmed mentioned in commit b477580e

    mentioned in commit b477580e

  • Please register or sign in to reply
    Loading