Skip to content

Commit cb84a30

Browse files
Merge pull request #4273 from Omegastick/ordered_hypernetworks
Sort hypernetworks list
2 parents e96c434 + 08feb4c commit cb84a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hypernetworks/hypernetwork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def load(self, filename):
243243

244244
def list_hypernetworks(path):
245245
res = {}
246-
for filename in glob.iglob(os.path.join(path, '**/*.pt'), recursive=True):
246+
for filename in sorted(glob.iglob(os.path.join(path, '**/*.pt'), recursive=True)):
247247
name = os.path.splitext(os.path.basename(filename))[0]
248248
# Prevent a hypothetical "None.pt" from being listed.
249249
if name != "None":

0 commit comments

Comments
 (0)