Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions eis_toolkit/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import numpy as np
import pandas as pd
import rasterio
import rasterio.profiles
import typer
from beartype.typing import List, Optional, Sequence, Tuple, Union
from typing_extensions import Annotated
Expand Down Expand Up @@ -439,14 +438,14 @@ class ProgressLog: # noqa: D101
def reading_input_files(): # noqa: D102
typer.echo("Opening input files....")
yield
typer.echo(" Input files read\n")
typer.echo("[OK] Input files read\n")

@contextmanager
@staticmethod
def running_algorithm(): # noqa: D102
typer.echo("Running algorithm...")
yield
typer.echo(" Algorithm run succesfully\n")
typer.echo("[OK] Algorithm run succesfully\n")

@contextmanager
@staticmethod
Expand All @@ -455,14 +454,14 @@ def saving_output_files(savepath: Union[str, Sequence[str]]): # noqa: D102
yield
if isinstance(savepath, Sequence):
for file in savepath:
typer.echo(f" Output file(s) saved to {file}")
typer.echo(f"[OK] Output file(s) saved to {file}")
typer.echo(" ")
else:
typer.echo(f" Output file(s) saved to {savepath}\n")
typer.echo(f"[OK] Output file(s) saved to {savepath}\n")

@staticmethod
def finish(): # noqa: D102
typer.echo(" Algorithm execution finished succesfully\n")
typer.echo("[OK] Algorithm execution finished succesfully\n")


class ResultSender: # noqa: D101
Expand Down