Python wrapper for running instances of trisurf-ng
Samo Penic
2017-11-28 824b3e562b5e0e7f9450b06a45deabda6ebe20df
local commits on remote computer
2 files modified
13 ■■■■ changed files
trisurf/Remote.py 1 ●●●● patch | view | raw | blame | history
trisurf/trisurf.py 12 ●●●● patch | view | raw | blame | history
trisurf/Remote.py
@@ -26,6 +26,7 @@
            self.connected=True
#            except:
#                print("Error establishing connection with "+self.username+"@"+self.hostname+":"+str(self.port)+".")
#                self.connected=False
#                exit(1)
        else:
            print("Already connected!")
trisurf/trisurf.py
@@ -462,12 +462,12 @@
    def setMaindir(self,prefix,variables):
        maindir=""
        for p,v in zip(prefix,variables):
            if(v=="xk0"):
                tv=str(round(float(self.Tape.config[v])))
                if sys.version_info<(3,0):
                    tv=str(int(float(self.Tape.config[v])))
            else:
                tv=self.Tape.config[v]
            #if(v=="xk0"):
            #    tv=str(round(float(self.Tape.config[v])))
            #    if sys.version_info<(3,0):
            #        tv=str(int(float(self.Tape.config[v])))
            #else:
            tv=str(self.Tape.config[v])
            maindir=maindir+p+tv
        self.maindir=maindir
        return