Skip to content

Commit 22fd665

Browse files
committed
updated EPM notebook
1 parent 21e5b7b commit 22fd665

File tree

6 files changed

+375
-188
lines changed

6 files changed

+375
-188
lines changed

amadeusgpt/managers/gui_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
register_core_api)
1212

1313
from .base import Manager
14+
from amadeusgpt.analysis_objects.object import ROIObject
1415
from .object_manager import ObjectManager
1516

1617

@@ -50,9 +51,9 @@ def onselect(self, vertices):
5051

5152
# Here you can add any further processing of the polygons
5253
self.object_manager.roi_objects = []
53-
self.object_manager.add_roi_object(self.paths)
54+
for idx, path in enumerate(self.paths):
55+
self.object_manager.add_roi_object(ROIObject(f'ROI{idx}', path))
5456

55-
print(len(self.object_manager.roi_objects))
5657
# Assuming the object_manager's add_roi_object is meant to handle the completed polygons
5758

5859

amadeusgpt/managers/object_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def load_objects_from_disk(self):
6060
pass
6161

6262
def get_roi_object_names(self) -> List[str]:
63+
6364
return [obj.name for obj in self.roi_objects]
6465

6566
def get_roi_objects(self) -> List[Object]:

conda/amadesuGPT-minimal.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: amadeusgpt-minimal
33
channels:
44
- defaults
55
dependencies:
6-
- python<3.10
6+
- python==3.10
7+
- pytables==3.8.0
78
- hdf5
89
- pip
910
- jupyter

notebook/EPM_demo.ipynb

Lines changed: 367 additions & 183 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "AmadeusGPT"
77
readme = "README.md"
8-
requires-python = ">=3.8"
8+
requires-python = ">=3.10"
99
dynamic = ["version"]
1010
version = "0.0.2"
1111

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers =
2323
[options]
2424
packages = find:
2525
include_package_data = True
26-
python_requires = >=3.8
26+
python_requires = >=3.10
2727
install_requires =
2828
openai # 0.03 is compatible with the newest openai
2929
opencv-python-headless # 0.02

0 commit comments

Comments
 (0)