From 522aa7882efafa14cc70163537863aec89ba0cc1 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 25 Mar 2019 08:57:56 +0000 Subject: [PATCH] JAL-3127 scripts updated for method signature change --- examples/groovy/colourConserved.groovy | 2 +- examples/groovy/colourSchemes.groovy | 4 ++-- examples/groovy/colourUnconserved.groovy | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/groovy/colourConserved.groovy b/examples/groovy/colourConserved.groovy index 35c54d5..5fc2ad1 100644 --- a/examples/groovy/colourConserved.groovy +++ b/examples/groovy/colourConserved.groovy @@ -43,7 +43,7 @@ conserved = { -> /* * to make a new instance for each alignment view */ - getInstance: { AlignViewportI view, AnnotatedCollectionI coll, Map map -> conserved() }, + getInstance: { AlignViewportI view, AnnotatedCollectionI coll -> conserved() }, /* * method only needed if colour scheme has to recalculate diff --git a/examples/groovy/colourSchemes.groovy b/examples/groovy/colourSchemes.groovy index 3f1f953..eb40cc6 100644 --- a/examples/groovy/colourSchemes.groovy +++ b/examples/groovy/colourSchemes.groovy @@ -26,7 +26,7 @@ candy = { -> /* * to make a new instance for each alignment view */ - getInstance: { AlignViewportI view, AnnotatedCollectionI coll, Map map -> candy() }, + getInstance: { view, coll -> candy() }, /* * method only needed if colour scheme has to recalculate @@ -86,7 +86,7 @@ byWeight = { -> // this colour scheme is peptide-specific: isApplicableTo: { coll -> !coll.isNucleotide() }, alignmentChanged: { coll, map -> }, - getInstance: { coll, map -> byWeight() }, + getInstance: { view, coll -> byWeight() }, isSimple: { true }, findColour: {res, col, seq, consensus, pid -> switch (res) { diff --git a/examples/groovy/colourUnconserved.groovy b/examples/groovy/colourUnconserved.groovy index e186766..2365c1e 100644 --- a/examples/groovy/colourUnconserved.groovy +++ b/examples/groovy/colourUnconserved.groovy @@ -42,7 +42,7 @@ unconserved = { -> /* * to make a new instance for each alignment view */ - getInstance: { AnnotatedCollectionI coll, Map map -> unconserved() }, + getInstance: { view, coll -> unconserved() }, /* * method only needed if colour scheme has to recalculate -- 1.7.10.2