[geneagrapher] 84/226: Removed option and supporting code to add supplementary nodes.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository geneagrapher.
commit 282361eeb4268ae9f0a6c71a33d5cd103b607a71
Author: David Alber <alber.david at gmail.com>
Date: Sun Oct 5 17:37:23 2008 +0000
Removed option and supporting code to add supplementary nodes.
---
geneagrapher/geneagrapher.py | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/geneagrapher/geneagrapher.py b/geneagrapher/geneagrapher.py
index 5c59bdf..b9bc822 100644
--- a/geneagrapher/geneagrapher.py
+++ b/geneagrapher/geneagrapher.py
@@ -13,7 +13,6 @@ class Geneagrapher:
self.get_ancestors = False
self.get_descendants = False
self.verbose = False
- self.supp_node_filename = None
self.write_filename = None
def parseInput(self):
@@ -35,8 +34,6 @@ class Geneagrapher:
help="print information showing progress")
self.parser.add_option("--version", "-V", action="store_true", dest="print_version", default=False,
help="print geneagrapher version and exit")
- self.parser.add_option("-n", "--attach-node-file", dest="supp_node_filename", metavar="FILE",
- help="attach supplementary nodes returned by function 'define_supp_nodes()' in FILE to the graph", default=None)
(options, args) = self.parser.parse_args()
@@ -50,7 +47,6 @@ class Geneagrapher:
self.get_ancestors = options.get_ancestors
self.get_descendants = options.get_descendants
self.verbose = options.verbose
- self.supp_node_filename = options.supp_node_filename
self.write_filename = options.filename
for arg in args:
self.leaf_ids.append(int(arg))
@@ -64,18 +60,6 @@ class Geneagrapher:
ancestor_grab_queue = []
descendant_grab_queue = []
- # Grab "supplementary" nodes from file.
- if self.supp_node_filename is not None:
- supp_node_modname = self.supp_node_filename.split('.')[0]
- importstr = "import %s" % (supp_node_modname)
- exec(importstr)
- if "define_supp_nodes" not in dir(eval(supp_node_modname)):
- errstr = "'%s' module has no function 'define_supp_nodes'" % (supp_node_modname)
- raise AttributeError(errstr)
- supp_nodes = eval(supp_node_modname).define_supp_nodes()
- for node in supp_nodes:
- self.graph.addNodeObject(node, True)
-
# Grab "leaf" nodes.
while len(leaf_grab_queue) != 0:
id = leaf_grab_queue.pop()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git
More information about the debian-science-commits
mailing list