Mercurial > code > home > repos > light9
comparison bin/curvecalc @ 1106:95ed52dcc3ab
remove some old curve api
Ignore-this: 2a49d1f24d73b5cc8d718683c6b41793
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 10 Jun 2014 08:46:52 +0000 |
parents | f7618f29bb89 |
children | a38955ba6f40 |
comparison
equal
deleted
inserted
replaced
1105:0440fb0f458b | 1106:95ed52dcc3ab |
---|---|
231 raises SubtermExists if we had a subterm with a sub with the given | 231 raises SubtermExists if we had a subterm with a sub with the given |
232 name. what about a no-sub term with the same label? who knows | 232 name. what about a no-sub term with the same label? who knows |
233 """ | 233 """ |
234 assert isinstance(newname, Literal), repr(newname) | 234 assert isinstance(newname, Literal), repr(newname) |
235 if withCurve: | 235 if withCurve: |
236 self.curveset.new_curve(newname, renameIfExisting=False) | 236 self.curveset.new_curve(newname) |
237 if newname in self.all_subterm_labels(): | 237 if newname in self.all_subterm_labels(): |
238 raise SubtermExists("have a subterm who sub is named %r" % newname) | 238 raise SubtermExists("have a subterm who sub is named %r" % newname) |
239 with self.graph.currentState() as current: | 239 with self.graph.currentState() as current: |
240 song = self.currentSong() | 240 song = self.currentSong() |
241 for i in range(1000): | 241 for i in range(1000): |