Commit df5ee001 authored by Leo Gordon's avatar Leo Gordon
Browse files

using a db-free unique ids for edges' midpoints

parent 2f308e8f
......@@ -129,6 +129,7 @@ sub _analysis_node_name {
return 'analysis_' . $analysis->logic_name;
}
sub _table_node_name {
my ($self, $df_rule) = @_;
......@@ -140,7 +141,11 @@ sub _table_node_name {
sub _midpoint_name {
my ($df_rule) = @_;
return 'dfr_'.$df_rule->dbID.'_mp';
if(scalar($df_rule)=~/\((\w+)\)/) { # a unique id of a df_rule assuming dbIDs are not available
return 'dfr_'.$1.'_mp';
} else {
die "Wrong argument to _midpoint_name";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment