Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Jun 17, 2024
1 parent 8fe0426 commit 6c62cc8
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/sempy_labs/_model_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from anytree import Node, RenderTree
from sempy._utils._log import log


@log
def get_measure_dependencies(dataset: str, workspace: Optional[str] = None):
"""
Shows all dependencies for all measures in a semantic model.
Expand Down Expand Up @@ -131,7 +131,7 @@ def get_measure_dependencies(dataset: str, workspace: Optional[str] = None):

return df


@log
def get_model_calc_dependencies(dataset: str, workspace: Optional[str] = None):
"""
Shows all dependencies for all objects in a semantic model.
Expand Down
2 changes: 2 additions & 0 deletions src/sempy_labs/directlake/_directlake_schema_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
from sempy_labs._list_functions import list_tables
from typing import Optional
import sempy_labs._icons as icons
from sempy._utils._log import log

@log
def direct_lake_schema_compare(
dataset: str,
workspace: Optional[str] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
from sempy_labs._list_functions import list_tables
from sempy_labs._helper_functions import format_dax_object_name
from typing import Optional, Tuple
from sempy._utils._log import log


@log
def show_unsupported_direct_lake_objects(
dataset: str, workspace: Optional[str] = None
) -> Tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]:
Expand Down
3 changes: 2 additions & 1 deletion src/sempy_labs/lakehouse/_get_lakehouse_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
resolve_lakehouse_id,
)
from typing import Optional
from sempy._utils._log import log


@log
def get_lakehouse_columns(
lakehouse: Optional[str] = None, workspace: Optional[str] = None
):
Expand Down
2 changes: 2 additions & 0 deletions src/sempy_labs/lakehouse/_get_lakehouse_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
from sempy_labs.lakehouse._lakehouse import lakehouse_attached
from typing import Optional
import sempy_labs._icons as icons
from sempy._utils._log import log

@log
def get_lakehouse_tables(
lakehouse: Optional[str] = None,
workspace: Optional[str] = None,
Expand Down
3 changes: 2 additions & 1 deletion src/sempy_labs/lakehouse/_lakehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from sempy_labs._helper_functions import resolve_lakehouse_name
from typing import List, Optional, Union
import sempy_labs._icons as icons
from sempy._utils._log import log

def lakehouse_attached() -> bool:
"""
Expand All @@ -24,7 +25,7 @@ def lakehouse_attached() -> bool:
else:
return False


@log
def optimize_lakehouse_tables(
tables: Optional[Union[str, List[str]]] = None,
lakehouse: Optional[str] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from sempy._utils._log import log
import sempy_labs._icons as icons


@log
def migrate_model_objects_to_semantic_model(
dataset: str,
Expand Down
2 changes: 1 addition & 1 deletion src/sempy_labs/report/_report_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def list_report_bookmarks(report: str, workspace: Optional[str] = None):
f"The '{report}' report within the '{workspace}' workspace has no bookmarks."
)


@log
def translate_report_titles(
report: str, languages: Union[str, List[str]], workspace: Optional[str] = None
):
Expand Down
2 changes: 0 additions & 2 deletions src/sempy_labs/report/_report_rebind.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from sempy._utils._log import log
import sempy_labs._icons as icons


@log
def report_rebind(
report: str,
Expand Down Expand Up @@ -66,7 +65,6 @@ def report_rebind(
f"{icons.red_dot} The '{report}' report within the '{report_workspace}' workspace failed to rebind to the '{dataset}' semantic model within the '{dataset_workspace}' workspace."
)


@log
def report_rebind_all(
dataset: str,
Expand Down

0 comments on commit 6c62cc8

Please sign in to comment.