File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -85,14 +85,16 @@ def _construct_midpoint_coord(coord, circular=None):
8585
8686    """ 
8787    if  circular  and  not  hasattr (coord , 'circular' ):
88-         raise  ValueError ('Cannot produce circular midpoint from a coord ' 
89-                          'without the circular attribute' )
88+         msg  =  ("Cannot produce a circular midpoint for the '{}' coord, " 
89+                "which does not have a 'circular' attribute." )
90+         raise  ValueError (msg .format (coord .name ()))
9091
9192    if  circular  is  None :
9293        circular  =  getattr (coord , 'circular' , False )
9394    elif  circular  !=  getattr (coord , 'circular' , False ):
94-         warnings .warn ('circular flag and Coord.circular attribute do ' 
95-                       'not match' )
95+         msg  =  ("Construction coordinate midpoints for the '{}' coordinate, " 
96+                "though it has the attribute 'circular'={}." )
97+         warnings .warn (msg .format (circular , coord .circular , coord .name ()))
9698
9799    if  coord .ndim  !=  1 :
98100        raise  iris .exceptions .CoordinateMultiDimError (coord )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments