diff --git a/README.md b/README.md index 563d3727..817cb6d3 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ If you encounter any issues, please [raise a bug](https://github.com/microsoft/s If you have ideas for new features/functions, please [request a feature](https://github.com/microsoft/semantic-link-labs/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=). +Check out the video below for an introduction to Semantic Link, Semantic Link Labs and demos of key features! + +[![Semantic Link Labs Video](https://img.youtube.com/vi/LSoWDEZk9b0/0.jpg)](https://www.youtube.com/watch?v=LSoWDEZk9b0) + ## Featured Scenarios * Semantic Models * [Migrating an import/DirectQuery semantic model to Direct Lake](https://github.com/microsoft/semantic-link-labs?tab=readme-ov-file#direct-lake-migration) diff --git a/src/sempy_labs/_model_bpa.py b/src/sempy_labs/_model_bpa.py index 2312bca3..b019da2a 100644 --- a/src/sempy_labs/_model_bpa.py +++ b/src/sempy_labs/_model_bpa.py @@ -125,7 +125,9 @@ def map_language(language, language_list): # Do not run BPA for models with no tables if tom.model.Tables.Count == 0: - print(f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables and therefore there are no valid BPA results.") + print( + f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables and therefore there are no valid BPA results." + ) finalDF = pd.DataFrame( columns=[ "Category", diff --git a/src/sempy_labs/_vertipaq.py b/src/sempy_labs/_vertipaq.py index 41dfacce..f98c0aa3 100644 --- a/src/sempy_labs/_vertipaq.py +++ b/src/sempy_labs/_vertipaq.py @@ -143,7 +143,9 @@ def vertipaq_analyzer( table_count = tom.model.Tables.Count column_count = len(list(tom.all_columns())) if table_count == 0: - print(f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables. Vertipaq Analyzer can only be run if the semantic model has tables.") + print( + f"{icons.warning} The '{dataset}' semantic model within the '{workspace}' workspace has no tables. Vertipaq Analyzer can only be run if the semantic model has tables." + ) return dfT = list_tables(dataset=dataset, extended=True, workspace=workspace) diff --git a/src/sempy_labs/tom/_model.py b/src/sempy_labs/tom/_model.py index cbf2878a..fd1302ea 100644 --- a/src/sempy_labs/tom/_model.py +++ b/src/sempy_labs/tom/_model.py @@ -2280,7 +2280,9 @@ def is_field_parameter(self, table_name: str): return ( self.is_field_parameter(table_name=table_name) and t.Columns.Count == 4 - and any("NAMEOF(" in p.Source.Expression.replace(' ', '') for p in t.Partitions) + and any( + "NAMEOF(" in p.Source.Expression.replace(" ", "") for p in t.Partitions + ) and all( "[Value" in c.SourceColumn for c in t.Columns