Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
defausti authored Feb 11, 2022
1 parent 5f1372f commit c93b337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cosmo-backend/python-server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def load_file_intraEU():
#print(df_transportIntra.info())
return df_transportIntra


'''
def build_NTSR_dict():
#build dict mapping NTSR prod and viceversa
NTSR_prod=pd.read_csv(NTSR_PROD_FILE,"\t",index_col=0)#.to_dict()
Expand All @@ -90,7 +90,7 @@ def build_NTSR_dict():
prod_NTSR_dict=prod_NTSR_dict[prod_NTSR_dict['0'].str.len()==NTSR_DIGITS]
prod_NTSR_dict=prod_NTSR_dict.set_index("AGRICULTURAL PRODUCTS AND LIVE ANIMALS").to_dict()["0"]
return prod_NTSR_dict

'''
def estrai_tabella_per_grafo(tg_period,tg_perc,listaMezzi,flow,product,criterio,selezioneMezziEdges,df_transport_estrazione):
#estraggo dalla tabella solo le informazioni richieste nei filtri richiesti al runtime
logging.info("### estrai_tabella_per_grafo...")
Expand Down Expand Up @@ -259,7 +259,7 @@ def jsonpos2coord(jsonpos):
df_transport = load_files_available()
df_transportIntra = load_file_intraEU()

prod_NTSR_dict=build_NTSR_dict()
#prod_NTSR_dict=build_NTSR_dict()

from flask import Flask,request,Response
from flask_cors import CORS
Expand Down

0 comments on commit c93b337

Please sign in to comment.