Handle empty `indexes` input edge case..
							parent
							
								
									905b37e7ac
								
							
						
					
					
						commit
						575e60bd1d
					
				| 
						 | 
					@ -306,7 +306,10 @@ class DynamicDateAxis(Axis):
 | 
				
			||||||
        times = array['time']
 | 
					        times = array['time']
 | 
				
			||||||
        i_0, i_l = times[0], times[-1]
 | 
					        i_0, i_l = times[0], times[-1]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # edge cases
 | 
				
			||||||
        if (
 | 
					        if (
 | 
				
			||||||
 | 
					            not indexes
 | 
				
			||||||
 | 
					            or
 | 
				
			||||||
            (indexes[0] < i_0
 | 
					            (indexes[0] < i_0
 | 
				
			||||||
             and indexes[-1] < i_l)
 | 
					             and indexes[-1] < i_l)
 | 
				
			||||||
            or
 | 
					            or
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue