Skip to content

Add validate-overrides script to check that the parameter override JSON isn't malformed #195

@scottstanie

Description

@scottstanie
  1. Add a check for malformed JSON.
    Could be a simple as pulling out the logic from Runconfig.to_workflow:
        frame_id = self.input_file_group.frame_id
        # Load any overrides for this frame
        override_params = _parse_algorithm_overrides(overrides_json, frame_id)

        # Override the dict with the new options
        param_dict = _nested_update(param_dict, override_params)
        # but then convert back to ensure all defaults remained in `param_dict`
        param_dict = AlgorithmParameters(**param_dict).model_dump()

it seems harder to really load a runconfig because of the check where we get_burst_ids_for_frame tha would error based on bad input CSLCs

  1. Add a notebook to plot which frames have overrides

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