Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

genutil errors should be wrapped in [] #4

Open
chaosphere2112 opened this issue Nov 23, 2016 · 3 comments · May be fixed by #44
Open

genutil errors should be wrapped in [] #4

chaosphere2112 opened this issue Nov 23, 2016 · 3 comments · May be fixed by #44
Assignees
Labels
kind/bug Categorizes issue related to bug.
Milestone

Comments

@chaosphere2112
Copy link

The following errors are difficult to read and it should be a relatively easy fix to wrap the string in [] so they display more clearly:

In [7]: rms = genutil.statistics.rms(s[0],s[-1],axis='xyt')
---------------------------------------------------------------------------
StatisticsError                           Traceback (most recent call last)
<ipython-input-7-561f9ca97f6a> in <module>()                               
----> 1 rms = genutil.statistics.rms(s[0],s[-1],axis='xyt')                
/usr/local/uvcdat/2.4.0rc1/lib/python2.7/site-packages/genutil/statistics.pyc in rms(x, y, weights, axis, centered, biased, max_pct_missing)                                                                                                                              
    876     cdat_info.pingPCMDIdb("cdat","genutil.statistics.rms")                                                                   
    877     if cdms2.isVariable(x) : xatt=x.attributes                                                                               
--> 878     x,y,weights,axis,ax=__checker(x,y,weights,axis)                                                                          
    879     rmsans=__rms(x,y,weights=weights,centered=centered,biased=biased)                                                      
    880     rmsans=_treat_missing(rmsans,x,max_pct_missing=max_pct_missing)                                                      
/usr/local/uvcdat/2.4.0rc1/lib/python2.7/site-packages/genutil/statistics.pyc in __checker(x, y, w, axes, smally)
    629                                 axesparse[i]=j                                                           
    630                     if type(axesparse[i])==type(''): # Everything failed the axis id must be not existing in the slab...
--> 631                         raise StatisticsError,'Error axis id :'+o+' not found in first slab: '+x.getOrder(ids=1)        
    632             axes=axesparse                                                                                              
    633     # Now we have array those shape match, and a nice list of axes let's keep going                                     
StatisticsError: ('E', 'r', 'r', 'o', 'r', ' ', 'a', 'x', 'i', 's', ' ', 'i', 'd', ' ', ':', 't', ' ', 'n', 'o', 't', ' ', 'f', 'o', 'u', 'n', 'd', ' ', 'i', 'n', ' ', 'f', 'i', 'r', 's', 't', ' ', 's', 'l', 'a', 'b', ':', ' ', 'y', 'x') 

Migrated from: CDAT/cdat#1663

@doutriaux1 doutriaux1 added this to the 2.12 milestone May 8, 2017
@doutriaux1 doutriaux1 modified the milestones: 3.0, 2.12 Sep 6, 2017
@doutriaux1 doutriaux1 self-assigned this Sep 6, 2017
@doutriaux1 doutriaux1 modified the milestones: 3.0, Next Release Mar 29, 2018
@github-actions
Copy link

Marking issue as stale, since there has been no activity in 30 days.

Unless the issue is updated or the 'stale' tag is removed, this issue will be closed in 7 days.

@github-actions github-actions bot added the stale label Aug 27, 2020
@durack1
Copy link
Member

durack1 commented Aug 27, 2020

@jasonb5 this issue is still a problem from what I have encountered

@github-actions github-actions bot removed the stale label Aug 27, 2020
@jasonb5 jasonb5 added bug and removed enhancement labels Aug 29, 2020
@jasonb5 jasonb5 assigned jasonb5 and unassigned doutriaux1 Aug 29, 2020
@jasonb5 jasonb5 modified the milestones: Next Release, 8.2.2 Aug 29, 2020
@jasonb5 jasonb5 linked a pull request Aug 29, 2020 that will close this issue
@github-actions
Copy link

Marking issue as stale, since there has been no activity in 30 days.

Unless the issue is updated or the 'stale' tag is removed, this issue will be closed in 7 days.

@github-actions github-actions bot added the stale label Sep 28, 2020
@jasonb5 jasonb5 added kind/bug Categorizes issue related to bug. and removed bug stale labels Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue related to bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants