purple-koala commited on
Commit
9c5ced4
1 Parent(s): 8022f28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -298,10 +298,10 @@ class SADCP_Viewer(param.Parameterized):
298
 
299
  def filter_data(self):
300
  return self.ds.where(
301
- (self.ds.LONGITUDE >= self.longitude_slider.start)
302
- & (self.ds.LONGITUDE <= self.longitude_slider.end)
303
- & (self.ds.LATITUDE >= self.latitude_slider.start)
304
- & (self.ds.LATITUDE <= self.latitude_slider.end),
305
  drop=True,
306
  )
307
 
@@ -414,3 +414,4 @@ template = pn.template.FastListTemplate(
414
  )
415
  template.servable()
416
 
 
 
298
 
299
  def filter_data(self):
300
  return self.ds.where(
301
+ (self.ds.LONGITUDE >= self.longitude_slider.value[0])
302
+ & (self.ds.LONGITUDE <= self.longitude_slider.value[1])
303
+ & (self.ds.LATITUDE >= self.latitude_slider.value[0])
304
+ & (self.ds.LATITUDE <= self.latitude_slider.value[1]),
305
  drop=True,
306
  )
307
 
 
414
  )
415
  template.servable()
416
 
417
+