Menu

view image won't stay open

Help
2011-06-23
2013-01-25
  • Nobody/Anonymous

    Hi, I've written a python script in which I open a band in a hyperspectral image using the view command after I've called and opened the image.  From a python shell script, the view window stays open.  When running the same commands from a python script, the image immediately closes unless I put in a timer. 

    Any suggestions on how to address the problem.
    Thanks,
    Sam

     
  • Thomas Boggs

    Thomas Boggs - 2011-06-23

    Hi Sam,

    In the second case (running from a python script), does the view window stay open indefinitely or does it close as soon as your timer stops?  And are you running your script from the python command prompt like

    >>> from my_script import *
    

    or are you calling it from the system command prompt like

    # python my_script.py
    

    ?

    Thomas

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.