Task #8556 (closed)
Bug: Scripts import numpy unecessarily
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4 |
Component: | Scripting | Version: | n.a. |
Keywords: | n.a. | Cc: | sylittlewood, jamoore |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2012-06-05 (16) |
Description
Need to review the import of numpy and OmeroPopo? in script_utils, since we currently have scripts failing to import these, even if they don't need them.
Traceback (most recent call last): File "./script", line 57, in <module> import omero.util.script_utils as scriptUtil File "c:\omero_dist\lib\python\omero\util\script_utils.py", line 46, in <module> from omero.util.OmeroPopo import EllipseData as EllipseData File "c:\omero_dist\lib\python\omero\util\OmeroPopo.py", line 33, in <module> import numpy; ImportError: No module named numpy
Change History (5)
comment:1 Changed 12 years ago by jburel
- Sprint changed from 2012-04-24 (13) to 2012-05-08 (14)
comment:2 Changed 12 years ago by jburel
- Sprint changed from 2012-05-08 (14) to 2012-05-22 (15)
Moved from sprint 2012-05-08 (14)
comment:3 Changed 12 years ago by jburel
- Sprint changed from 2012-05-22 (15) to 2012-06-05 (16)
Moved from sprint 2012-05-22 (15)
comment:4 Changed 12 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
script_utils.py only imports OmeroPopos? when required (2 methods). https://github.com/will-moore/openmicroscopy/commit/bdba79c3a7c53f11c44d10df3e81d082a38d2fc5
Closing...
comment:5 Changed 12 years ago by Will Moore <will@…>
(In [bdba79c3a7c53f11c44d10df3e81d082a38d2fc5/ome.git] on branch develop) script_utils.py only imports OmeroPopo? as needed. See #8556
Moved from sprint 2012-04-24 (13)