# HG changeset patch # User luca_milaz # Date 1722794394 0 # Node ID 5bfc1b9cde50e72528a3e1d3f750f101878060c1 # Parent 6544f0027c72eb14b453069597940ae7cf07bcc1 Uploaded diff -r 6544f0027c72 -r 5bfc1b9cde50 marea_2/flux_to_map.py --- a/marea_2/flux_to_map.py Sun Aug 04 17:55:22 2024 +0000 +++ b/marea_2/flux_to_map.py Sun Aug 04 17:59:54 2024 +0000 @@ -876,6 +876,10 @@ #arrow.applyTo(getArrowBodyElementId(rxn_id), metabMap_median, arrow.toStyleStr()) arrow.styleReactionElements(metabMap_median, rxn_id, mindReactionDir=False) + idOpt1, idOpt2 = getArrowHeadElementId(rxn_id) + arrow.applyTo(idOpt1, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) + if idOpt2: arrow.applyTo(idOpt2, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) + # Now we style the arrow head(s): #idOpt1, idOpt2 = getArrowHeadElementId(arrow.getMapReactionId(rxn_id, mindReactionDir=True)) #arrow.applyTo(idOpt1, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) @@ -888,6 +892,10 @@ #arrow.applyTo(getArrowBodyElementId(rxn_id), metabMap_mean, arrow.toStyleStr()) arrow.styleReactionElements(metabMap_mean, rxn_id, mindReactionDir=False) + idOpt1, idOpt2 = getArrowHeadElementId(rxn_id) + arrow.applyTo(idOpt1, metabMap_mean, arrow.toStyleStr(downSizedForTips = True)) + if idOpt2: arrow.applyTo(idOpt2, metabMap_mean, arrow.toStyleStr(downSizedForTips = True)) + # Now we style the arrow head(s): #idOpt1, idOpt2 = getArrowHeadElementId(arrow.getMapReactionId(rxn_id, mindReactionDir=True)) #arrow.applyTo(idOpt1, metabMap_mean, arrow.toStyleStr(downSizedForTips = True))