changeset 12:1e42c0147a49

minutor changed file format for minecraft 1.18
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 11 Dec 2021 16:30:29 -0500
parents e411408d64ec
children 1cd5c7952aaa
files python/cluster.py python/safe.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/cluster.py	Sat Dec 11 16:13:04 2021 -0500
+++ b/python/cluster.py	Sat Dec 11 16:30:29 2021 -0500
@@ -50,7 +50,7 @@
     for l in infile:
       found=False
       (_,td,qd)=l.rstrip().split('\t')
-      q=[float(i) for i in qd.split(',')]
+      q=[float(i) for i in qd.split('/')]
       td=float(td)
       if strict and td>orad:
         # Enforce a circular region, not square
--- a/python/safe.py	Sat Dec 11 16:13:04 2021 -0500
+++ b/python/safe.py	Sat Dec 11 16:30:29 2021 -0500
@@ -57,7 +57,7 @@
 
   def readPoints(self,file):
     file.readline()
-    self.points=[[float(i) for i in l.split('\t')[2].split(',')] for l in file]
+    self.points=[[float(i) for i in l.split('\t')[2].split('/')] for l in file]
 
 Block.readHeaders=readHeaders # from util