0.0.160
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
[metadata]
 | 
					[metadata]
 | 
				
			||||||
# replace with your username:
 | 
					# replace with your username:
 | 
				
			||||||
name = guan
 | 
					name = guan
 | 
				
			||||||
version = 0.0.159
 | 
					version = 0.0.160
 | 
				
			||||||
author = guanjihuan
 | 
					author = guanjihuan
 | 
				
			||||||
author_email = guanjihuan@163.com
 | 
					author_email = guanjihuan@163.com
 | 
				
			||||||
description = An open source python package
 | 
					description = An open source python package
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
Metadata-Version: 2.1
 | 
					Metadata-Version: 2.1
 | 
				
			||||||
Name: guan
 | 
					Name: guan
 | 
				
			||||||
Version: 0.0.159
 | 
					Version: 0.0.160
 | 
				
			||||||
Summary: An open source python package
 | 
					Summary: An open source python package
 | 
				
			||||||
Home-page: https://py.guanjihuan.com
 | 
					Home-page: https://py.guanjihuan.com
 | 
				
			||||||
Author: guanjihuan
 | 
					Author: guanjihuan
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
 | 
					# With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# The current version is guan-0.0.159, updated on January 02, 2023.
 | 
					# The current version is guan-0.0.160, updated on January 13, 2023.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Installation: pip install --upgrade guan
 | 
					# Installation: pip install --upgrade guan
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -2830,12 +2830,15 @@ def find_repeated_file_with_same_filename(directory='./', missed_directory_with_
 | 
				
			|||||||
    for root, dirs, files in os.walk(directory):
 | 
					    for root, dirs, files in os.walk(directory):
 | 
				
			||||||
        for i0 in range(len(files)):
 | 
					        for i0 in range(len(files)):
 | 
				
			||||||
            file_list.append(files[i0])
 | 
					            file_list.append(files[i0])
 | 
				
			||||||
            for word in missed_file_with_words:
 | 
					 | 
				
			||||||
                if word in files[i0]:
 | 
					 | 
				
			||||||
                    file_list.remove(files[i0])   
 | 
					 | 
				
			||||||
            for word in missed_directory_with_words:
 | 
					            for word in missed_directory_with_words:
 | 
				
			||||||
                if word in root:
 | 
					                if word in root:
 | 
				
			||||||
                    file_list.remove(files[i0])       
 | 
					                    file_list.remove(files[i0])       
 | 
				
			||||||
 | 
					            for word in missed_file_with_words:
 | 
				
			||||||
 | 
					                if word in files[i0]:
 | 
				
			||||||
 | 
					                    try:
 | 
				
			||||||
 | 
					                        file_list.remove(files[i0])   
 | 
				
			||||||
 | 
					                    except:
 | 
				
			||||||
 | 
					                        pass 
 | 
				
			||||||
    count_file = Counter(file_list).most_common(num)
 | 
					    count_file = Counter(file_list).most_common(num)
 | 
				
			||||||
    repeated_file = []
 | 
					    repeated_file = []
 | 
				
			||||||
    for item in count_file:
 | 
					    for item in count_file:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user