Skip to content
Snippets Groups Projects
Commit 1042c544 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

model can report its own name

parent 148a0abe
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,11 @@ class Model(ABC):
def reload(self):
self.load()
@property
def name(self):
return f'{self.__class__}'
class ImageToImageModel(Model):
"""
......
......@@ -240,8 +240,7 @@ class _Session(object):
if key is None:
def mid(i):
# TODO: give model the option to report its own name
return f'{ModelClass.__name__}_{i:02d}'
return f'{mi.name}_{i:02d}'
while mid(ii) in self.models.keys():
ii += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment