Skip to content

Commit

Permalink
updated str to dict (#15)
Browse files Browse the repository at this point in the history
* updated str to dict

* fixed issue
  • Loading branch information
m-kovalsky authored Jun 18, 2024
1 parent 3f2f7be commit 97bb363
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 6 deletions.
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/_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

0 comments on commit 97bb363

Please sign in to comment.