zliang commited on
Commit
6586c2f
1 Parent(s): 464bbf7

Update main.py

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