Skip to content

fix gui after flattening AnalysisParameters #5

@cudmore

Description

@cudmore

Intro

After implementation of issue #3 we have some errors in the kymflow_gui.

when run with
uv run python -m kymflow_gui.main

we get error:

File "/Users/cudmore/Sites/kymflow/src/kymflow_gui/frontend/layout.py", line 180, in create_main_page
create_file_table(app_state, restore_selection=restore_selection)
File "/Users/cudmore/Sites/kymflow/src/kymflow_gui/frontend/components/file_table.py", line 31, in create_file_table
rows=_rows(app_state.files),
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/cudmore/Sites/kymflow/src/kymflow_gui/frontend/components/file_table.py", line 17, in _rows
return [f.summary_row() for f in files]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/cudmore/Sites/kymflow/src/kymflow_gui/frontend/components/file_table.py", line 17, in
return [f.summary_row() for f in files]
^^^^^^^^^^^^^^^
File "/Users/cudmore/Sites/kymflow/src/kymflow_core/kym_file.py", line 172, in summary_row
"Window Points": self._analysis_parameters.parameters.get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This was actually picked up with errors when running:
uv run pytest -s tests/kymflow_gui

Plan

Update the gui to handle the new simplified 'flat' structure in AnalysisParameters.

  • check unit test pass
  • check mkdocs to see if it needs updates
  • check docstrings to see if they need updates

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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