picar / pyrrd

Automatically exported from code.google.com/p/pyrrd
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

calling fetch returns error of "Fetch() requires exactly 2 inputs (3 are given)" #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. any call of fetch? Multiple RRAs are used.
2.
3.

What is the expected output? What do you see instead?
expected a list of values. Got an error instead. 

What version of the product are you using? On what operating system?
downloaded this 3 weeks ago, using it on Ubuntu Linux

Please provide any additional information below.

Fixed the problem by editing def prepareObject() in external.py: 

    if function == 'fetch':

        validParams = ['resolution', 'start', 'end']
        params = common.buildParameters(obj, validParams)
        return (obj.filename, [obj.cf] + params)

        # debug LJS orig follows
        #validParams = ['resolution', 'start', 'end']
        #params = common.buildParameters(obj, validParams)
        #return (obj.filename, obj.cf, params)

Original issue reported on code.google.com by Lucas.in...@gmail.com on 9 Aug 2012 at 1:05

GoogleCodeExporter commented 9 years ago
This is a duplicate of Issue 26 and it has been fixed in a checkout of the 
current development code.

Original comment by g...@2ndquadrant.com on 22 Feb 2013 at 6:47