Closed pkpatkel closed 9 years ago
It looks like this may be due to the path to the .res file being incorrect. I can reproduce the error by calling Res() with a .res filename that doesn't exist. Did you check the path?
When I run: os.path.exists('lrg_pest_20150917.res')
returns: True
On Wed, Sep 23, 2015 at 12:04 PM, aleaf notifications@github.com wrote:
It looks like this may be due to the path to the .res file being incorrect. I can reproduce the error by calling Res() with a .res filename that doesn't exist. Did you check the path?
— Reply to this email directly or view it on GitHub https://github.com/PESTools/pestools/issues/55#issuecomment-142682093.
Does it work if you set obs_info_file=None?
No, and fwiw checking the path on the obs_info file returns True as well.
On Wed, Sep 23, 2015 at 12:08 PM, echristi notifications@github.com wrote:
Does it work if you set obs_info_file=None?
— Reply to this email directly or view it on GitHub https://github.com/PESTools/pestools/issues/55#issuecomment-142683704.
Is the pest control file (.pst) in the path and with same basename?
It looks like that assert statement is actually checking for a pest control file (which makes sense, because it is in Jeremy's pst_handler class). The way we have it set up now, it expects a pest control file of the same basename to be collocated with the .res file.
That was it! moving the .pst file to the same directory solved my .res import problem. Thank you.
On Wed, Sep 23, 2015 at 12:27 PM, aleaf notifications@github.com wrote:
It looks like that assert statement is actually checking for a pest control file (which makes sense, because it is in Jeremy's pst_handler class). The way we have it set up now, it expects a pest control file of the same basename to be collocated with the .res file.
— Reply to this email directly or view it on GitHub https://github.com/PESTools/pestools/issues/55#issuecomment-142689377.
Good, I will add that to the instructions.
When I try to import a .res file, I get the following error:
AssertionError Traceback (most recent call last)