Skip to content

Commit

Permalink
revised layout documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
KrissiHub committed Jan 19, 2024
1 parent 3e45b16 commit a16d3ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
10 changes: 5 additions & 5 deletions deepcave/layouts/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
# GeneralLayout
This module provides the General Layout class.
This module provides the General Layout.
It handles different callbacks of the layout.
Expand Down Expand Up @@ -77,7 +77,7 @@ def callback(
dynamic_working_dirs: List[str],
):
"""
Change the working directory.
Register updates from inputs.
Parameters
----------
Expand Down Expand Up @@ -361,7 +361,7 @@ def _callback_manage_groups(self) -> None:

@app.callback(outputs, inputs) # type: ignore
def callback(group_names: List[str], all_run_paths, i):
"""Update the groups."""
"""Manage the groups."""
# Abort on page load
self._refresh_groups: bool
if self._refresh_groups:
Expand Down Expand Up @@ -430,12 +430,12 @@ def get_converter_text(converters: List[Type[Run]]) -> html.Div:
Parameters
----------
converters : List[Type[Run]]
The converters to be put into text.
A list of the avaialble run converters.
Returns
-------
html.Div
The text for the input converters.
The text with all the available converters.
"""
converter_text = []
for converter in converters:
Expand Down
2 changes: 1 addition & 1 deletion deepcave/layouts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MainLayout(Layout):
"""
Define and provide the main layout.
It handles different callbacks of the layout.
Handle different callbacks of the layout.
Properties
----------
Expand Down
6 changes: 2 additions & 4 deletions deepcave/layouts/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
This module provides a notification layout.
It utilizes Dash and provides utilities for displaying notifications.
The here provided NotificationLayout class inherits from Layout.
With a notification from the Notification module an alert component can be updated.
It can be updated in content, color as well as visibility.
Callbacks are registered and handled.
## Classes
Expand All @@ -30,14 +28,14 @@ class NotificationLayout(Layout):
"""
Layout class for displaying notifications.
Extends Layout class, provides callback registering methods.
Provide callback registering methods.
"""

def __init__(self) -> None:
super().__init__()

def register_callbacks(self) -> None:
"""Register callback for updating notification alert."""
"""Register callbacks for updating notification alert."""

@app.callback(
Output("alert", "children"),
Expand Down
4 changes: 2 additions & 2 deletions deepcave/layouts/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
# SidebarLayout
This module defines a plugin to define and visualize the Sidebar Layout.
This module defines layout for the sidebar.
Callbacks are registered and handled.
Expand Down Expand Up @@ -133,7 +133,7 @@ def delete_job(n_clicks, job_ids): # type: ignore

@app.callback(output, Trigger("global-update", "n_intervals")) # type: ignore
def update_queue_info() -> List[Component]:
"""Delete the information of the queue."""
"""Update the information of the queue."""
try:
all_jobs = [
queue.get_finished_jobs(),
Expand Down

0 comments on commit a16d3ae

Please sign in to comment.