Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2832 (closed)

Opened 14 years ago

Closed 14 years ago

Bug: Combine_Images.py is not Python 2.4 compatible

Reported by: jamoore Owned by: cblackburn
Priority: critical Milestone: OMERO-Beta4.2.1
Component: Scripting Version: n.a.
Keywords: n.a. Cc: wmoore, jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-09-09 (16)

Description

Combine_Images.py contains the try/except/finally block:

    try:
        session = client.getSession()
    
        # process the list of args above. 
        parameterMap = {}
        for key in client.getInputKeys():
            if client.getInput(key):
                parameterMap[key] = client.getInput(key).getValue()
    
        print parameterMap
        
        # create the combined image
        image = combineImages(session, parameterMap)        
        
        if image:
            client.setOutput("Message", rstring("Script Ran OK. New Image created ID: %s" % image.id.val))
            client.setOutput("Combined_Image",robject(image))
        else:
            print "No image created."
    except: raise
    finally:
        client.closeSession()
        printDuration()

which is not valid Python 2.4 syntax.

See: https://www.openmicroscopy.org/community/viewtopic.php?f=5&t=465&sid=d6f11f9393f5bc7dc45e018007c5bc20&p=1405#p1405

Change History (6)

comment:2 Changed 14 years ago by jmoore

  • Remaining Time set to 0.1

comment:3 Changed 14 years ago by atarkowska

  • Sprint set to 2010-09-09 (16)

comment:5 Changed 14 years ago by jburel

  • Owner set to cblackburn

comment:6 Changed 14 years ago by cblackburn

  • Remaining Time changed from 0.1 to 0
  • Resolution set to fixed
  • Status changed from new to closed

[8138] Fixes

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67370 sec.)

We're Hiring!