Skip to content

Commit 971194c

Browse files
committed
Add base init on default obj
1 parent c279910 commit 971194c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

MLStructFP/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
__description__ = 'Machine learning structural floor plan dataset'
1010
__keywords__ = ['ml', 'ai', 'floor-plan', 'architectural', 'dataset', 'cnn']
1111
__email__ = '[email protected]'
12-
__version__ = '0.6.3'
12+
__version__ = '0.6.4'
1313

1414
# URL
1515
__url__ = 'https://github.com/MLSTRUCT/MLSTRUCT-FP'

MLStructFP/db/image/_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,9 @@ def get_file_id(self, filename) -> int:
141141
if filename not in self._names:
142142
raise ValueError(f'File <{filename}> have not been processed yet')
143143
return self._names.index(filename)
144+
145+
def init(self) -> 'BaseImage':
146+
"""
147+
Init the object.
148+
"""
149+
return self

0 commit comments

Comments
 (0)