Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated str to dict #15

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/sempy_labs/_generate_semantic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_blank_semantic_model(


def create_semantic_model_from_bim(
dataset: str, bim_file: str, workspace: Optional[str] = None
dataset: str, bim_file: dict, workspace: Optional[str] = None
):
"""
Creates a new semantic model based on a Model.bim file.
Expand All @@ -74,7 +74,7 @@ def create_semantic_model_from_bim(
----------
dataset : str
Name of the semantic model.
bim_file : str
bim_file : dict
The model.bim file.
workspace : str, default=None
The Fabric workspace name.
Expand Down
1 change: 1 addition & 0 deletions src/sempy_labs/_model_dependencies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
m-kovalsky marked this conversation as resolved.
Show resolved Hide resolved
import sempy.fabric as fabric
import pandas as pd
from sempy_labs._helper_functions import format_dax_object_name
Expand Down
1 change: 1 addition & 0 deletions src/sempy_labs/_query_scale_out.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
import pandas as pd
from sempy_labs._helper_functions import resolve_dataset_id
Expand Down
1 change: 1 addition & 0 deletions src/sempy_labs/directlake/_directlake_schema_compare.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
import pandas as pd
from sempy_labs._helper_functions import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
from sempy_labs.directlake._get_shared_expression import get_shared_expression
from sempy_labs._helper_functions import (
Expand Down
1 change: 1 addition & 0 deletions src/sempy_labs/directlake/_warm_cache.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
import pandas as pd
from tqdm.auto import tqdm
Expand Down
1 change: 1 addition & 0 deletions src/sempy_labs/lakehouse/_shortcuts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
from sempy_labs._helper_functions import (
resolve_lakehouse_name,
Expand Down
9 changes: 5 additions & 4 deletions src/sempy_labs/report/_generate_report.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
import pandas as pd
import json, base64, time
Expand All @@ -9,8 +10,8 @@
def create_report_from_reportjson(
report: str,
dataset: str,
report_json: str,
theme_json: Optional[str] = None,
report_json: dict,
theme_json: Optional[dict] = None,
workspace: Optional[str] = None,
):
"""
Expand All @@ -22,9 +23,9 @@ def create_report_from_reportjson(
Name of the report.
dataset : str
Name of the semantic model to connect to the report.
report_json : str
report_json : dict
The report.json file to be used to create the report.
theme_json : str, default=None
theme_json : dict, default=None
The theme.json file to be used for the theme of the report.
workspace : str, default=None
The Fabric workspace name.
Expand Down
1 change: 1 addition & 0 deletions src/sempy_labs/report/_report_functions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
import pandas as pd
import json, os, time, base64, copy
Expand Down
1 change: 1 addition & 0 deletions src/sempy_labs/report/_report_rebind.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sempy
import sempy.fabric as fabric
from sempy_labs._helper_functions import resolve_dataset_id, resolve_report_id
from typing import Optional
Expand Down
Loading