# HG changeset patch # User luca_milaz # Date 1722791001 0 # Node ID 8d705672291b21266a93fe95c3968b5ad089bb3c # Parent b193805e19b1d7ba45a42f213e84e67b4677c456 Uploaded diff -r b193805e19b1 -r 8d705672291b marea_2/flux_to_map.py --- a/marea_2/flux_to_map.py Sun Aug 04 16:58:31 2024 +0000 +++ b/marea_2/flux_to_map.py Sun Aug 04 17:03:21 2024 +0000 @@ -876,16 +876,18 @@ arrow = Arrow(width=5, col=colors_median[rxn_id]) #arrow.applyTo(arrow.getMapReactionId(rxn_id, mindReactionDir=False), metabMap_median, arrow.toStyleStr()) # 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)) - if idOpt2: arrow.applyTo(idOpt2, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) + #idOpt1, idOpt2 = getArrowHeadElementId(arrow.getMapReactionId(rxn_id, mindReactionDir=True)) + #arrow.applyTo(idOpt1, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) + #if idOpt2: arrow.applyTo(idOpt2, metabMap_median, arrow.toStyleStr(downSizedForTips = True)) + arrow.styleReactionElements(metabMap_median, arrow.getMapReactionId(rxn_id, mindReactionDir=True), True) arrow = Arrow(width=5, col=colors_mean[rxn_id]) #arrow.applyTo(arrow.getMapReactionId(rxn_id, mindReactionDir=False), metabMap_mean, arrow.toStyleStr()) # 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)) - if idOpt2: arrow.applyTo(idOpt2, metabMap_mean, arrow.toStyleStr(downSizedForTips = True)) + #idOpt1, idOpt2 = getArrowHeadElementId(arrow.getMapReactionId(rxn_id, mindReactionDir=True)) + #arrow.applyTo(idOpt1, metabMap_mean, arrow.toStyleStr(downSizedForTips = True)) + #if idOpt2: arrow.applyTo(idOpt2, metabMap_mean, arrow.toStyleStr(downSizedForTips = True)) + arrow.styleReactionElements(metabMap_mean, arrow.getMapReactionId(rxn_id, mindReactionDir=True), True) svgFilePath = utils.FilePath("SVG Map mean - " + str(key), ext = utils.FileFormat.SVG, prefix="result") utils.writeSvg(svgFilePath, metabMap_mean)