Commit 5d12f54e authored by Carlos GO's avatar Carlos GO
Browse files

motif path fix

parent a634cae3
......@@ -21,8 +21,6 @@ import numpy as np
app = Flask(__name__)
motifs_id = "motifs_bb"
MOTIF_PATH = os.path.join("static", motifs_id)
def get_parents(motif_type, this_motif):
this_motif = ms.Multiset(map(int,this_motif.split("-")))
......@@ -72,7 +70,7 @@ def motif_json(motif_id):
@app.route('/motif_page/<motif_type>/<motif_id>')
def motif_page(motif_type, motif_id):
parents = get_parents(motif_type, motif_id)
motif_path = os.path.join(MOTIF_PATH, motif_id)
motif_path = os.path.join("static", motif_type, motif_id)
instance_paths = [os.path.join(motif_type, motif_id, inst) for inst in os.listdir(motif_path)]
return render_template("motif_page.html",
instance_paths=instance_paths,
......
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