You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a session example that I'm running in ipython now:
>>>b=vcs.createboxfill()
>>>b<vcs.boxfill.Gfbat0x1021f5ec0>>>>b.name'__boxfill_419032409050676'>>>b.rename("test")
>>>vcs.elements['boxfill']['test']
<vcs.boxfill.Gfbat0x1021f5ec0>>>>vcs.show('boxfill')
*******************BoxfillNamesList**********************a_boxfilla_lambert_boxfilla_mollweide_boxfilla_polar_boxfilla_robinson_boxfilldefaultpolarquickrobinsontest*******************EndBoxfillNamesList**********************>>>new_b=vcs.getboxfill('test')
>>>new_b<vcs.boxfill.Gfbat0x1021f5ec0>>>>new_b.name'__boxfill_419032409050676'# assume we have a cdms2 variable named 's', and a Canvas named 'a'>>>a.boxfill(s,b)
vcsError: Errorsourceboxfillobject (__boxfill_419032409050676) doesnotexist!
As we can see from the example, this leaves behind a reference to the renamed boxfill in the names list while making that boxfill unusable, because it is deleted.
I think the issue is that we should just be creating a new boxfill here, instead of using vcs.elements to re-assign things:
Not sure if this is a widespread problem (affecting more than just Gfb).
The text was updated successfully, but these errors were encountered:
Here's a session example that I'm running in ipython now:
As we can see from the example, this leaves behind a reference to the renamed boxfill in the names list while making that boxfill unusable, because it is deleted.
I think the issue is that we should just be creating a new boxfill here, instead of using vcs.elements to re-assign things:
Not sure if this is a widespread problem (affecting more than just Gfb).
The text was updated successfully, but these errors were encountered: