zliang commited on
Commit
1834e41
1 Parent(s): 99befaf

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -8,12 +8,12 @@ import io
8
  app = FastAPI()
9
 
10
  @app.get("/plot_trajectory")
11
- def plot_trajectory(lat_min: float, lat_max: float, lon_min: float, lon_max: float,
12
  depth_min: float, depth_max: float,
13
  date_start: str, date_end: str):
14
  try:
15
  # Create data fetcher with user inputs
16
- f = DataFetcher().region([lat_min, lat_max, lon_min, lon_max, depth_min, depth_max, date_start, date_end])
17
 
18
  # Plotting
19
  plt.figure()
 
8
  app = FastAPI()
9
 
10
  @app.get("/plot_trajectory")
11
+ def plot_trajectory(lon_min: float, lon_max: float, lat_min: float, lat_max: float,
12
  depth_min: float, depth_max: float,
13
  date_start: str, date_end: str):
14
  try:
15
  # Create data fetcher with user inputs
16
+ f = DataFetcher().region([lon_min, lon_max, lat_min, lat_max, depth_min, depth_max, date_start, date_end])
17
 
18
  # Plotting
19
  plt.figure()