ttnn-visualizer 0.67.0__py3-none-any.whl → 0.67.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -620,13 +620,21 @@ def read_remote_file(
620
620
 
621
621
  @remote_exception_handler
622
622
  def check_remote_path_for_reports(remote_connection):
623
- remote_profiler_paths = find_folders_by_files(
624
- remote_connection, remote_connection.profilerPath, [TEST_CONFIG_FILE]
625
- )
623
+ remote_profiler_paths = []
624
+ if remote_connection.profilerPath:
625
+ remote_profiler_paths = find_folders_by_files(
626
+ remote_connection, remote_connection.profilerPath, [TEST_CONFIG_FILE]
627
+ )
628
+ else:
629
+ logger.info("No profiler path configured; skipping check.")
626
630
 
627
- remote_performance_paths = find_folders_by_files(
628
- remote_connection, remote_connection.performancePath, [TEST_PROFILER_FILE]
629
- )
631
+ remote_performance_paths = []
632
+ if remote_connection.performancePath:
633
+ remote_performance_paths = find_folders_by_files(
634
+ remote_connection, remote_connection.performancePath, [TEST_PROFILER_FILE]
635
+ )
636
+ else:
637
+ logger.info("No performance path configured; skipping check.")
630
638
 
631
639
  errors = []
632
640
  if not remote_profiler_paths and remote_connection.profilerPath:
@@ -682,6 +690,9 @@ def find_folders_by_files(
682
690
  remote_connection: RemoteConnection, root_folder: str, file_names: List[str]
683
691
  ) -> List[str]:
684
692
  """Given a remote path, return a list of top-level folders that contain any of the specified files."""
693
+ if not root_folder:
694
+ return []
695
+
685
696
  matched_folders: List[str] = []
686
697
 
687
698
  # Build SSH command to find directories in root_folder
@@ -761,23 +772,28 @@ def get_remote_performance_folders(
761
772
  remote_connection: RemoteConnection,
762
773
  ) -> List[RemoteReportFolder]:
763
774
  """Return a list of remote folders containing a profile_log_device file."""
764
- if remote_connection.performancePath is None:
775
+ performance_paths = []
776
+
777
+ if remote_connection.performancePath:
778
+ performance_paths = find_folders_by_files(
779
+ remote_connection, remote_connection.performancePath, [TEST_PROFILER_FILE]
780
+ )
781
+ else:
765
782
  error = "Performance path is not configured for this connection"
766
783
  logger.error(error)
767
784
  raise NoProjectsException(status=ConnectionTestStates.FAILED, message=error)
768
785
 
769
- performance_paths = find_folders_by_files(
770
- remote_connection, remote_connection.performancePath, [TEST_PROFILER_FILE]
771
- )
772
786
  if not performance_paths:
773
- error = f"No profiler paths found at {remote_connection.performancePath}"
787
+ error = f"No performance reports found at {remote_connection.performancePath}"
774
788
  logger.info(error)
775
789
  raise NoProjectsException(status=ConnectionTestStates.FAILED, message=error)
790
+
776
791
  remote_folder_data = []
777
792
  for path in performance_paths:
778
793
  remote_folder_data.append(
779
794
  get_remote_performance_folder(remote_connection, path)
780
795
  )
796
+
781
797
  return remote_folder_data
782
798
 
783
799
 
@@ -786,19 +802,24 @@ def get_remote_profiler_folders(
786
802
  remote_connection: RemoteConnection,
787
803
  ) -> List[RemoteReportFolder]:
788
804
  """Return a list of remote folders containing a config.json file."""
789
- remote_config_paths = find_folders_by_files(
790
- remote_connection, remote_connection.profilerPath, [TEST_CONFIG_FILE]
791
- )
792
- if not remote_config_paths:
793
- error = f"No projects found at {remote_connection.profilerPath}"
805
+ remote_config_paths = []
806
+
807
+ if remote_connection.profilerPath:
808
+ remote_config_paths = find_folders_by_files(
809
+ remote_connection, remote_connection.profilerPath, [TEST_CONFIG_FILE]
810
+ )
811
+ else:
812
+ error = f"No profiler reports found at {remote_connection.profilerPath}"
794
813
  logger.info(error)
795
814
  raise NoProjectsException(status=ConnectionTestStates.FAILED, message=error)
815
+
796
816
  remote_folder_data = []
797
817
  for config_path in remote_config_paths:
798
818
  remote_folder = get_remote_profiler_folder_from_config_path(
799
819
  remote_connection, str(Path(config_path).joinpath(TEST_CONFIG_FILE))
800
820
  )
801
821
  remote_folder_data.append(remote_folder)
822
+
802
823
  return remote_folder_data
803
824
 
804
825
 
@@ -1 +1 @@
1
- import{I as s}from"./index-voJy5fZe.js";import{I as r}from"./index-BZITDwoa.js";import{p as n,I as c}from"./index-BO1FGYnE.js";function p(t,a){const o=n(t);return a===c.STANDARD?s[o]:r[o]}export{s as IconSvgPaths16,r as IconSvgPaths20,p as getIconPaths};
1
+ import{I as s}from"./index-voJy5fZe.js";import{I as r}from"./index-BZITDwoa.js";import{p as n,I as c}from"./index-Uz_q_wTj.js";function p(t,a){const o=n(t);return a===c.STANDARD?s[o]:r[o]}export{s as IconSvgPaths16,r as IconSvgPaths20,p as getIconPaths};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/allPaths-D8fLup7j.js","assets/index-voJy5fZe.js","assets/index-BZITDwoa.js","assets/index-Uz_q_wTj.js","assets/index-bdndbd_j.css"])))=>i.map(i=>d[i]);
2
+ import{_ as e}from"./index-Uz_q_wTj.js";const s=async(t,a)=>{const{getIconPaths:o}=await e(async()=>{const{getIconPaths:r}=await import("./allPaths-D8fLup7j.js");return{getIconPaths:r}},__vite__mapDeps([0,1,2,3,4]));return o(t,a)};export{s as allPathsLoader};