Opened 13 years ago

Closed 13 years ago

#1232 closed defect (fixed)

gui modeler don't works as aspected

Reported by: epifanio Owned by: martinl
Priority: normal Milestone: 6.4.1
Component: wxGUI Version:
Keywords: modeler Cc: grass-dev@…
CPU: All Platform: All

Description

Hi i'm trying to use the grass modeler in the wx gui, but i have some problems to use it :

the "run" action do not works

i tried on both osx and linux, with grass65 and 70

tring to run the model from the gui don't print any useful log tring to save it as script, the resulting file is not complete :

projectfile :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE gxm SYSTEM "grass-gxm.dtd">
<gxm>
    <window pos="316,250" size="640,480" />
    <properties>
        <name>model</name>
        <description>Script generated by wxGUI Graphical Modeler.</description>
        <author>habcam</author>
    </properties>
    <action id="1" name="g.region" pos="305,115" size="100,50">
        <task name="g.region">
            <parameter name="rast">
                <value>bugsites</value>
            </parameter>
            <flag name="p" />
        </task>
    </action>
    <data pos="110,120" size="175,50">
        <data-parameter prompt="raster">
            <value>bugsites</value>
        </data-parameter>
        <relation dir="from" id="1" name="rast">
        </relation>
    </data>
</gxm>

python script generated by grass65 (incomplete) :

#!/usr/bin/env python
#
# ..... 
#  

import sys
import os
import atexit

import grass.script as grass

python script generated by grass70 (it works from command line):

import sys
import os
import atexit

import grass.script as grass

def cleanup():
    pass

def main():
    grass.run_command("g.region",
                      flags = 'p',
                      rast = "bugsites")

    return 0

if __name__ == "__main__":
    options, flags = grass.parser()
    atexit.register(cleanup)
    sys.exit(main())

the save as image also don't works on both grass 65 and 70

Change History (2)

comment:1 by martinl, 13 years ago

Cc: grass-dev@… added
Milestone: 6.4.1
Owner: changed from grass-dev@… to martinl
Status: newassigned

Hopefully fixed in r44570.

comment:2 by martinl, 13 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.