Changeset - 95ed52dcc3ab
[Not reviewed]
default
0 2 0
Drew Perttula - 11 years ago 2014-06-10 08:46:52
drewp@bigasterisk.com
remove some old curve api
Ignore-this: 2a49d1f24d73b5cc8d718683c6b41793
2 files changed with 2 insertions and 9 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -233,7 +233,7 @@ class Main(object):
 
        """
 
        assert isinstance(newname, Literal), repr(newname)
 
        if withCurve:
 
            self.curveset.new_curve(newname, renameIfExisting=False)
 
            self.curveset.new_curve(newname)
 
        if newname in self.all_subterm_labels():
 
            raise SubtermExists("have a subterm who sub is named %r" % newname)
 
        with self.graph.currentState() as current:
light9/curvecalc/curve.py
Show inline comments
 
@@ -346,16 +346,9 @@ class Curveset(object):
 
    def get_time_range(self):
 
        return 0, dispatcher.send("get max time")[0][1]
 

	
 
    def new_curve(self, name, renameIfExisting=True):
 
    def new_curve(self, name):
 
        if isinstance(name, Literal):
 
            name = str(name)
 
        if name=="":
 
            print "no name given"
 
            return
 
        if not renameIfExisting and name in self.curves:
 
            return
 
        while name in self.curves:
 
           name=name+"-1"
 

	
 
        uri = self.graph.sequentialUri(self.currentSong + '/curve-')
 

	
0 comments (0 inline, 0 general)