Skip to content
Open
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
10 changes: 1 addition & 9 deletions src/sempy_labs/daxlib/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,6 @@ def package_exists(tom, package_name: str) -> bool:
)
return

if method != "add" and not exists:
print(
f"{icons.info} The '{package_name}' package is not detected in the "
f"semantic model. Please use the 'add_package_to_semantic_model' "
f"function to add it first."
)
return

# add / update logic (shared); First remove existing functions from the package if they exist
for f in tom.model.Functions:
if f.Name.lower().startswith(f"{package_name.lower()}."):
Expand Down Expand Up @@ -311,7 +303,7 @@ def remove_package_from_semantic_model(


@log
def update_package_in_semantic_model(
def add_or_update_package_in_semantic_model(
dataset: str | UUID,
package_name: str,
version: str = None,
Expand Down