Skip to content

Commit

Permalink
Add base init on default obj
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Aug 14, 2024
1 parent c279910 commit 971194c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MLStructFP/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__description__ = 'Machine learning structural floor plan dataset'
__keywords__ = ['ml', 'ai', 'floor-plan', 'architectural', 'dataset', 'cnn']
__email__ = 'pablo@ppizarror.com'
__version__ = '0.6.3'
__version__ = '0.6.4'

# URL
__url__ = 'https://github.com/MLSTRUCT/MLSTRUCT-FP'
Expand Down
6 changes: 6 additions & 0 deletions MLStructFP/db/image/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,9 @@ def get_file_id(self, filename) -> int:
if filename not in self._names:
raise ValueError(f'File <{filename}> have not been processed yet')
return self._names.index(filename)

def init(self) -> 'BaseImage':
"""
Init the object.
"""
return self

0 comments on commit 971194c

Please sign in to comment.