WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

AttributeError: 'Variable' object has no attribute 'rel_i' #28

@andreas-h

Description

@andreas-h

I try to reproduce the steps outlined in the Working with rflexible in depth section of the documentation. Since the testdata download doesn't work (or rather, the downloaded file is corrupted), I'm using output from a forward simulation using FLEXPART 9.0.2.

At the rf.plot_totalcolumn(H, myc.total_column, map_region='NorthAtlantic') step, I get the following error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-31-b3505b1f8f18> in <module>()
----> 1 rf.plot_totalcolumn(H, myc.total_column, map_region='NorthAtlantic')

/home/stud_tpl/miniconda3/envs/flexpart/lib/python2.7/site-packages/reflexible-0.5.0-py2.7.egg/reflexible/plotting.pyc in plot_totalcolumn(H, data, data_range, ID, rel_i, species, timestamp, map_region, overlay, datainfo_str, units, plot_title, **kwargs)
     99 
    100     if rel_i is None:
--> 101         rel_i = data.rel_i
    102 
    103     if H.direction == 'backward':

AttributeError: 'Variable' object has no attribute 'rel_i'

> /home/stud_tpl/miniconda3/envs/flexpart/lib/python2.7/site-packages/reflexible-0.5.0-py2.7.egg/reflexible/plotting.py(101)plot_totalcolumn()
     99 
    100     if rel_i is None:
--> 101         rel_i = data.rel_i
    102 
    103     if H.direction == 'backward':

Any ideas are greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions