Skip to content
Snippets Groups Projects
Commit ff77c24c authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Removed missing in float and used nothing instead

parent db135f02
No related branches found
No related tags found
No related merge requests found
......@@ -33,13 +33,13 @@ function elevation_data_full(ws_host_port::String, selection::Dict)
entropy_elevations = Float64[]
for (id, shape) in zip(geo_id, shape_obj)
# setting starting values to missing
min_elevation = missing
max_elevation = missing
mean_elevation = missing
std_elevation = missing
median_elevation = missing
entropy_elevation = missing
# setting starting values to nothing
min_elevation = nothing
max_elevation = nothing
mean_elevation = nothing
std_elevation = nothing
median_elevation = nothing
entropy_elevation = nothing
# Construct the JSON payload
......
......@@ -94,7 +94,7 @@ function us_qcew(conn::MySQL.Connection, selection::Dict)
end
# prepare query
query = "SELECT Naics as industry, (Jan_jobs+Feb_jobs+Mar_jobs+Apr_jobs+May_jobs+Jun_jobs+Jul_jobs+Aug_jobs+Sep_jobs+Oct_jobs+Nov_jobs+Dec_jobs)/12 as jobs FROM QCEW WHERE Year = "*string(year)*" AND GeoID = '"*full_id*"' AND Agglvl_code = '"*string(agglvl_code)*"';"
query = "SELECT Naics as industry, (Jan_jobs+Feb_jobs+Mar_jobs+Apr_jobs+May_jobs+Jun_jobs+Jul_jobs+Aug_jobs+Sep_jobs+Oct_jobs+Nov_jobs+Dec_jobs)/12 as jobs FROM QCEW WHERE Year = $year AND GeoID = '$full_id' AND Agglvl_code = '$agglvl_code';"
# execute
result = query_connection(conn, query)
# Check if the 'industry' column exists
......
......@@ -49,7 +49,7 @@ function travel_time_in_minutes(ws_host_port::String, selection::Dict)
# Construct the request URL
url = "$ws_host_port/route/v1/driving/$(start_longitude),$(start_latitude);$(end_longitude),$(end_latitude)?overview=false"
travel_time = missing # Use `missing` to represent null in Julia
travel_time = nothing # Use `nothing` to represent null in Julia
try
# Make the request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment