Skip to content
Snippets Groups Projects
Unverified Commit d6953076 authored by Hernán Asorey's avatar Hernán Asorey Committed by GitHub
Browse files

Merge pull request #1 from AJRubio-Montero/master

Python2 to Python3 transition
parents 14fa298c bcc7afbe
No related branches found
No related tags found
No related merge requests found
......@@ -5,29 +5,29 @@ import matplotlib.image as mpimg
import numpy as np
def logo():
print " \n\n\n "
print " ___ ___ ___ ___"
print " /\__\ /\ \ /\ \ /\ \ "
print " /:/ / /::\ \ /::\ \ /::\ \ "
print " /:/ / /:/\:\ \ /:/\:\ \ /:/\:\ \ "
print " /:/ / /::\~\:\ \ /:/ \:\ \ /:/ \:\ \ "
print " /:/__/ /:/\:\ \:\__\ /:/__/_\:\__\ /:/__/ \:\__\ "
print " \:\ \ \/__\:\/:/ / \:\ /\ \/__/ \:\ \ /:/ / "
print " \:\ \ \::/ / \:\ \:\__\ \:\ /:/ / "
print " \:\ \ /:/ / \:\/:/ / \:\/:/ / "
print " \:\__\ /:/ / \::/ / \::/ / "
print " \/__/ __ _\/__/__ _ _ __\/____ ___ _\/__/ "
print " | '_ ` _ \ / _` | '_ \| '_ \ / _ \ '__| "
print " | | | | | | (_| | |_) | |_) | __/ | "
print " |_| |_| |_|\__,_| .__/| .__/ \___|_| "
print " | | | | "
print " |_| |_| "
print (" \n\n\n ")
print (" ___ ___ ___ ___")
print (" /\__\ /\ \ /\ \ /\ \ ")
print (" /:/ / /::\ \ /::\ \ /::\ \ ")
print (" /:/ / /:/\:\ \ /:/\:\ \ /:/\:\ \ ")
print (" /:/ / /::\~\:\ \ /:/ \:\ \ /:/ \:\ \ ")
print (" /:/__/ /:/\:\ \:\__\ /:/__/_\:\__\ /:/__/ \:\__\ ")
print (" \:\ \ \/__\:\/:/ / \:\ /\ \/__/ \:\ \ /:/ / ")
print (" \:\ \ \::/ / \:\ \:\__\ \:\ /:/ / ")
print (" \:\ \ /:/ / \:\/:/ / \:\/:/ / ")
print (" \:\__\ /:/ / \::/ / \::/ / ")
print (" \/__/ __ _\/__/__ _ _ __\/____ ___ _\/__/ ")
print (" | '_ ` _ \ / _` | '_ \| '_ \ / _ \ '__| ")
print (" | | | | | | (_| | |_) | |_) | __/ | ")
print (" |_| |_| |_|\__,_| .__/| .__/ \___|_| ")
print (" | | | | ")
print (" |_| |_| ")
return
logo()
comand='python mapingLAGO/AutoMap.py '
comand='python3 mapingLAGO/AutoMap.py '
comand2='python3 SitiosAlturas/plotalturas3.py '
for i in range(1, len(sys.argv)):
......@@ -37,9 +37,9 @@ for i in range(1, len(sys.argv)):
print "\n\n\ngenerando mapa..... "
print ("\n\n\ngenerando mapa..... ")
os.system(comand)
print "\n\n\ngenerando curva de alturas... \n\n\n"
print ("\n\n\ngenerando curva de alturas... \n\n\n")
os.system(comand2)
fig = plt.figure()
......
......@@ -28,7 +28,7 @@ Realiza un mapa de los sitios del proyecto [LAGO](http://lagoproject.net/) en en
Desde la terminal correr:
``python LAGOmapa-sitios.py DATOS_DE_LOS_SITIOS.dat``
``python3 LAGOmapa-sitios.py DATOS_DE_LOS_SITIOS.dat``
el formato del archivo DATOS_DE_LOS_SITIOS debe ser como el que se muestra en la cabecera del archivo ``DatosRC.dat``: Nombre, altura, Lat, Long, Status, R_U, R_C, R_L,
......
......@@ -18,7 +18,7 @@ if ig==3:
sys.exit("ERROR--IGNORANDO TODO!!!")
#########################################################################
os.system("python sorteador.py "+sys.argv[1]+" 2 > misdatos.dat")
os.system("python3 sorteador.py "+sys.argv[1]+" 2 > misdatos.dat")
files=open('misdatos.dat')
labels=[]
......@@ -105,13 +105,13 @@ for y in range(-80,30,10):
if ignore[0]==0:
#plot(xon,yon,lw=2.5,color='#0033CC',marker='^',ms=30,label='working')
scatter(xon,yon,marker='^',zorder=10,s=300,color='#0033CC',label='Up and running')
scatter([xon],[yon],marker='^',zorder=10,s=300,color='#0033CC',label='Up and running')
if ignore[1]==0:
#plot(xso,yso,lw=2.5,color='#CC0000',marker='s',ms=30,label='coming soon')
scatter(xso,yso,marker='s',zorder=10,s=300,color='#FF8C00',label='Deploying')
scatter([xso],[yso],marker='s',zorder=10,s=300,color='#FF8C00',label='Deploying')
if ignore[2]==0:
#plot(xuc,yuc,lw=2.5,color='#FFFF00',marker='o',ms=30,label='under consideration')
scatter(xuc,yuc,marker='o',zorder=10,s=300,color='#CC0000',label='Planned')
scatter([xuc],[yuc],marker='o',zorder=10,s=300,color='#CC0000',label='Planned')
######################################################################
......
image diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -28,13 +28,13 @@ def estatus(x):
elif x=='planned':
status=('o','#CC0000')
else:
print x
print (x)
sys.exit("ERROR--ESTAUS DE SITIO NO VALIDO!!!")
return status
################### ordena el archivo de datos por latitud#######
os.system('python sorteador.py '+sys.argv[1]+' 2 > misdatos.dat')
os.system('python3 sorteador.py '+sys.argv[1]+' 2 > misdatos.dat')
files=open('misdatos.dat')
......
......@@ -13,4 +13,4 @@ for line in file:
array=sorted(lats, key=lambda lat: lat[int(sys.argv[2])])
for i in range(0,len(array)):
print str(array[i][0])+','+str(array[i][1])+','+str(array[i][2])+','+str(array[i][3])+','+str(array[i][4])+','+str(array[i][5])+','+str(array[i][6])+','+str(array[i][7])+','
print ( str(array[i][0])+','+str(array[i][1])+','+str(array[i][2])+','+str(array[i][3])+','+str(array[i][4])+','+str(array[i][5])+','+str(array[i][6])+','+str(array[i][7])+',' )
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