Skip to content

Commit

Permalink
Merge branch 'enh/summarize-status' of github.com:hpsim/OBR into enh/…
Browse files Browse the repository at this point in the history
…summarize-status
  • Loading branch information
lupeterm committed Mar 18, 2024
2 parents c9768d2 + 9246bd4 commit 96cdfc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 9 additions & 5 deletions src/obr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@
from .signac_wrapper.submit import submit_impl
from .create_tree import create_tree
from .core.parse_yaml import read_yaml
from .cli_util import query_impl, check_cli_operations, is_valid_workspace, cli_cmd_setup, copy_to_archive
from .cli_util import (
query_impl,
check_cli_operations,
is_valid_workspace,
cli_cmd_setup,
copy_to_archive,
)
from .core.core import map_view_folder_to_job_id, profile_call
from .core.logger_setup import logger, setup_logging

Expand Down Expand Up @@ -65,6 +71,7 @@ def wrapper(*args, **kwargs):

return wrapper


@click.group()
@click.version_option()
@click.option("--debug/--no-debug", default=False)
Expand Down Expand Up @@ -317,10 +324,7 @@ def status(ctx: click.Context, **kwargs):
else:
unfinished += 1
pad = " " * (max_view_len - len(view) + 1)
logger.info(
f"{view}:{pad}| {finished}x Completed |"
f" {unfinished}x Incomplete |"
)
logger.info(f"{view}:{pad}| {finished}x Completed | {unfinished}x Incomplete |")


@cli.command()
Expand Down
6 changes: 5 additions & 1 deletion src/obr/signac_wrapper/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
from datetime import datetime

from .labels import owns_mesh, final, finished
from ..core.core import execute_shell, GLOBAL_INIT_COUNT, map_view_folder_to_job_id # noqa
from ..core.core import (
execute_shell,
GLOBAL_INIT_COUNT,
map_view_folder_to_job_id,
) # noqa
from obr.OpenFOAM.case import OpenFOAMCase
from obr.core.queries import filter_jobs, query_impl, Query, statepoint_get
from obr.core.caseOrigins import instantiate_origin_class
Expand Down

0 comments on commit 96cdfc2

Please sign in to comment.