Python wrapper for running instances of trisurf-ng
Samo Penic
2017-11-28 84450d8424bed78a8ae5f8c7594c847aa361e6ca
Fixes the bug when xk0 was rounded, whereas other variables were not when creating main directory
1 files modified
7 ■■■■ changed files
trisurf/trisurf.py 7 ●●●● patch | view | raw | blame | history
trisurf/trisurf.py
@@ -465,12 +465,7 @@
    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]
            tv=str(self.Tape.config[v])
            maindir=maindir+p+tv
        self.maindir=maindir
        return