Update main.py
Browse files
main.py
CHANGED
@@ -7,12 +7,12 @@ import os
|
|
7 |
app = FastAPI()
|
8 |
|
9 |
@app.get("/plot_trajectory")
|
10 |
-
def plot_trajectory(
|
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([
|
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()
|