From 8a105b1dd3887516ddaf833813c50fa59aaa7072 Mon Sep 17 00:00:00 2001 From: Tim Fischer Date: Wed, 3 Jul 2024 14:06:44 +0200 Subject: [PATCH] Remove script to discover non-resetable FFs --- FindNonResettableFFs.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 FindNonResettableFFs.py diff --git a/FindNonResettableFFs.py b/FindNonResettableFFs.py deleted file mode 100644 index ae6e820f04..0000000000 --- a/FindNonResettableFFs.py +++ /dev/null @@ -1,27 +0,0 @@ -import os - -text = 'amo_op_e' -path = '/scratch/bsc24f10/Documents/MonocerosGithubRepo/monoceros/snitch_cluster/hw' - -def searchText(path): - - os.chdir(path) - files = os.listdir(path) - #print(files) - - for file_name in files: - abs_path = os.path.join(path, file_name) - #print('is '+ abs_path + ' directory? : ') - if os.path.isdir(abs_path): - #print("Directory found: " + abs_path) - searchText(abs_path) - - if os.path.isfile(abs_path): - #print("File found: " + abs_path) - with open(abs_path, 'r') as f: - if text in f.read(): - final_path = os.path.abspath(file_name) - print(text + " word found in this path " + final_path) - pass -searchText(path) -print("DONE")