forked from bellwether/minerva
whoops, converting string to int
This commit is contained in:
parent
902302c9df
commit
c6280a3826
2 changed files with 4 additions and 4 deletions
|
|
@ -49,13 +49,13 @@ try:
|
||||||
IPython.embed()
|
IPython.embed()
|
||||||
|
|
||||||
with Timing("count()"):
|
with Timing("count()"):
|
||||||
print(dp.count().compute())
|
print(dp.count().visualize(filename='count.svg'))
|
||||||
|
|
||||||
with Timing("mean latitude"):
|
with Timing("mean latitude"):
|
||||||
print(dp.groupby(dp.index).latitude.mean().compute())
|
print(dp.groupby(dp.index).latitude.mean().visualize(filename='latitude.svg'))
|
||||||
|
|
||||||
with Timing("mean longitude"):
|
with Timing("mean longitude"):
|
||||||
print(dp.groupby(dp.index).longitude.mean().compute())
|
print(dp.groupby(dp.index).longitude.mean().visualize(filename='longitude.svg'))
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
########## FIN #######################
|
########## FIN #######################
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ pier = m.pier(subnet_id = "subnet-05eb26d8649a093e1", # project-subnet-public
|
||||||
key_pair = ("Ari-Brown-HAY", "~/.ssh/Ari-Brown-HAY.pem"),
|
key_pair = ("Ari-Brown-HAY", "~/.ssh/Ari-Brown-HAY.pem"),
|
||||||
iam = "Minerva")
|
iam = "Minerva")
|
||||||
|
|
||||||
cluster = pier.cluster(scheduler, worker, num_workers=sys.argv[1])
|
cluster = pier.cluster(scheduler, worker, num_workers=int(sys.argv[1]))
|
||||||
cluster.start()
|
cluster.start()
|
||||||
print(cluster.public_location)
|
print(cluster.public_location)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue