Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
project = 'semantic-link-labs'
copyright = '2024, Microsoft and community'
author = 'Microsoft and community'
release = '0.9.3'
release = '0.9.10'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name="semantic-link-labs"
authors = [
{ name = "Microsoft Corporation" },
]
version="0.9.3"
version="0.9.10"
description="Semantic Link Labs for Microsoft Fabric"
readme="README.md"
requires-python=">=3.10,<3.12"
Expand Down
8 changes: 8 additions & 0 deletions src/sempy_labs/_helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1637,3 +1637,11 @@ def _run_spark_sql_query(query):
spark = _create_spark_session()

return spark.sql(query)


def _validate_weight(weight: float):

if weight is not None and (weight <= 0 or weight >= 1):
raise ValueError(
f"{icons.red_dot} Invalid weight parameter. Weight must be a value between 0 and 1."
)
12 changes: 6 additions & 6 deletions src/sempy_labs/_icons.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
green_dot = "\U0001F7E2"
yellow_dot = "\U0001F7E1"
red_dot = "\U0001F534"
green_dot = "\U0001f7e2"
yellow_dot = "\U0001f7e1"
red_dot = "\U0001f534"
in_progress = "⌛"
checked = "\u2611"
unchecked = "\u2610"
start_bold = "\033[1m"
end_bold = "\033[0m"
bullet = "\u2022"
warning = "⚠️"
error = "\u274C"
error = "\u274c"
info = "ℹ️"
measure_icon = "\u2211"
table_icon = "\u229E"
column_icon = "\u229F"
table_icon = "\u229e"
column_icon = "\u229f"
model_bpa_name = "ModelBPA"
report_bpa_name = "ReportBPA"
severity_mapping = {warning: "Warning", error: "Error", info: "Info"}
Expand Down
5 changes: 2 additions & 3 deletions src/sempy_labs/_list_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ def list_synonyms(dataset: str | UUID, workspace: Optional[str] = None):
"State": "string",
"Source": "string",
"Weight": "float_fillna",
"Last Modified": "datetime",
"Last Modified": "string",
}

df = _create_dataframe(columns=columns)
Expand Down Expand Up @@ -1815,8 +1815,7 @@ def list_synonyms(dataset: str | UUID, workspace: Optional[str] = None):
merged_terms = defaultdict(dict)
for t in v.get("Terms", []):
for term, properties in t.items():
normalized_term = term.lower()
merged_terms[normalized_term].update(properties)
merged_terms[term].update(properties)

for term, props in merged_terms.items():
new_data = {
Expand Down
6 changes: 3 additions & 3 deletions src/sempy_labs/report/_report_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def report_dependency_tree(workspace: Optional[str | UUID] = None):
dfR.rename(columns={"Name": "Report Name"}, inplace=True)
dfR = dfR[["Report Name", "Dataset Name"]]

report_icon = "\U0001F4F6"
dataset_icon = "\U0001F9CA"
workspace_icon = "\U0001F465"
report_icon = "\U0001f4f6"
dataset_icon = "\U0001f9ca"
workspace_icon = "\U0001f465"

node_dict = {}
rootNode = Node(workspace_name)
Expand Down
Loading