Re: [galaxy-dev] Possible bug in dynamic options

2012-08-28 Thread Mutlu Dogruel
Thanks for the reply but no, I wasn't using any filters.

The relevant XML sections are like this:

code file=listFiles.py/
...
param name = url_paste
label = Select a file to copy
type=select
multiple=false
dynamic_options = listFiles()/


Mutlu

On 24 August 2012 17:28, John Chilton chil...@msi.umn.edu wrote:
 I cannot speak to the code running twi, but are using a unique_value
 filter? The dynamic_options code use to completely lock up our galaxy
 server for minutes at a time before I applied this optimization:


https://bitbucket.org/jmchilton/galaxy-central-dynamic-options-fix/changeset/e4856cc362d92f7857699c5be6cab1a75c29932f

 It is only relevant if you are using a unique_value filter though.

 -John

 On Fri, Aug 24, 2012 at 11:07 AM, Mutlu Dogruel mutludogr...@gmail.com
wrote:
 Hi,

 I wrote a script for dynamically populating a user form. It works but
 it's slow. When I checked the Galaxy log, I saw that the method called
 by my custom tool's xml is being run twice (the same debugging lines
 appear twice in the log, and that happens consistently). Is there any
 explanation for this? The script returns a list of strings fetched
 from a remote server. It's running a bit slow, taking up to 6 seconds,
 so it would be great if I can half that!

 For testing purposes, I wrote a dummy method that returns a few
 characters in a list of tuples. Again, my print statement in the
 Python script is called twice. Has anyone noticed such behaviour?

 Could it be related to this Galaxy bug:

https://bitbucket.org/galaxy/galaxy-central/issue/491/data_column-parameter-bug-cannot-select

 The Galaxy script shown on that page says:
 NOTE: This is wasteful since dynamic options and dataset collection
 happens twice (here and when generating HTML).

 Thanks.
 Best regards,
 --
 Mutlu
 ___
 Please keep all replies on the list by using reply all
 in your mail client.  To manage your subscriptions to this
 and other Galaxy lists, please use the interface at:

   http://lists.bx.psu.edu/



-- 
Mutlu
___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Possible bug in dynamic options

2012-08-24 Thread John Chilton
I cannot speak to the code running twi, but are using a unique_value
filter? The dynamic_options code use to completely lock up our galaxy
server for minutes at a time before I applied this optimization:

https://bitbucket.org/jmchilton/galaxy-central-dynamic-options-fix/changeset/e4856cc362d92f7857699c5be6cab1a75c29932f

It is only relevant if you are using a unique_value filter though.

-John

On Fri, Aug 24, 2012 at 11:07 AM, Mutlu Dogruel mutludogr...@gmail.com wrote:
 Hi,

 I wrote a script for dynamically populating a user form. It works but
 it's slow. When I checked the Galaxy log, I saw that the method called
 by my custom tool's xml is being run twice (the same debugging lines
 appear twice in the log, and that happens consistently). Is there any
 explanation for this? The script returns a list of strings fetched
 from a remote server. It's running a bit slow, taking up to 6 seconds,
 so it would be great if I can half that!

 For testing purposes, I wrote a dummy method that returns a few
 characters in a list of tuples. Again, my print statement in the
 Python script is called twice. Has anyone noticed such behaviour?

 Could it be related to this Galaxy bug:
 https://bitbucket.org/galaxy/galaxy-central/issue/491/data_column-parameter-bug-cannot-select

 The Galaxy script shown on that page says:
 NOTE: This is wasteful since dynamic options and dataset collection
 happens twice (here and when generating HTML).

 Thanks.
 Best regards,
 --
 Mutlu
 ___
 Please keep all replies on the list by using reply all
 in your mail client.  To manage your subscriptions to this
 and other Galaxy lists, please use the interface at:

   http://lists.bx.psu.edu/
___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/