Hmm. Elegance isn't really my strong suit either, but I should be able to manage something simple and ugly, anyway. I'll be happy to tackle that if you can re-run your existing conversion script against the
A very good idea -- I didn't think of that (because of my obsessive focus on B3/S23). Might be worth posting the actual code in the apgsearch thread by way of feature request, since it's still officially in beta status.
Something like this should do the trick -- v1.1 is now patched up to report the search parameters needed to re-run the search.
Code: Select all
# apgsearch-object-finder-18bit.py, version 1.11d
# change for 1.11d, 10 October 2014: remove #177, #243, #336, #349, #369, #433, #490, #574, #682, #718, #737, #743
# change for 1.11c, 8 October 2014: remove #217, #291, #342, #494, #580
# change for 1.11b: remove #103, #116, #111, #139-141, #198, #511
# change list for 1.1:
# - reduced list according to latest index file:
# http://conwaylife.com/forums/viewtopic.php?f=2&t=1467#p13615
# - report seed value and search length from file in which match was found
import glob, os, golly as g
# testlist=[[100,"32138f1c84c"],[999,"xs15_259e0e93"]]
testlist =[[102,"xs18_69arhar"],[107,"xs18_69argbr"],[114,"xs18_32qjap56"],[117,"xs18_3pm44djo"],[133,"xs18_0dbgzamgb6"],[134,"xs18_0dbgzamgf2"],[135,"xs18_0dbgz6agna"],[136,"xs18_0dbgz2egna"],[142,"xs18_cahdazmq1"],[154,"xs18_gbq1dqz1221"],[159,"xs18_69aj2arzx11"],[163,"xs18_ck0fharzw11"],[164,"xs18_ck0v1qrzw1"],[168,"xs18_69n8bdzw23"],[180,"xs18_j5o6picz11"],[184,"xs18_5bo79cz321"],[185,"xs18_j9cgn96z11"],[186,"xs18_j9c0qmz1213"],[187,"xs18_69r8jdz32"],[188,"xs18_j9ajkcz123"],[192,"xs18_bdgdjoz023"],[196,"xs18_bt0gbdz1221"],[201,"xs18_0dj8brz321"],[203,"xs18_db0gbdz3121"],[204,"xs18_ci6o6piczw1"],[216,"xs18_69m4pb8ozx1"],[219,"xs18_69ajkcz253"],[220,"xs18_8ehikoz3146"],[228,"xs18_32q4lb8ozx11"],[231,"xs18_o4q9jq23z01"],[245,"xs18_3lkaiczw346"],[247,"xs18_3p6kicz643"],[248,"xs18_3lkaicz643"],[257,"xs18_cikm9jzx65"],[259,"xs18_cik6p3z6421"],[275,"xs18_jhe0dbz56"],[278,"xs18_8ka2jap3zw11"],[281,"xs18_0mkiarz1243"],[282,"xs18_oid9icz6221"],[293,"xs18_0j9ak8z1259c"],[294,"xs18_gil68oz1wbd"],[318,"xs18_25t2koz0db"],[319,"xs18_2ld2kozwdb"],[321,"xs18_2ld2koz34a4"],[326,"xs18_035s26z69611"],[346,"xs18_g88bbgzc9311"],[347,"xs18_g88c9jzc9311"],[348,"xs18_g88c9jz011dd"],[351,"xs18_j9c88gz1ad11"],[353,"xs18_0o4q9jzdbw1"],[365,"xs18_0gbdz1qm113"],[366,"xs18_0at1aczmq1"],[367,"xs18_0at1e8zmq1"],[368,"xs18_gg0gbdz110nq"],[385,"xs18_8k9baaczw123"],[391,"xs18_ci9n84ozx321"],[404,"xs18_ci9eg6qzx121"],[405,"xs18_4a5pajozw23"],[408,"xs18_4a9egmqzx32"],[415,"xs18_4a5pajoz032"],[419,"xs18_0q6gdbgz110121"],[424,"xs18_4ap3q96zw121"],[429,"xs18_6icgn96z23"],[440,"xs18_0j9m4icz32011"],[443,"xs18_0cik6p3z32101"],[455,"xs18_32qb1acz321"],[456,"xs18_32qb2acz321"],[461,"xs18_64pb2acz321"],[492,"xs18_178r9icz032"],[495,"xs18_39q3pa4zw121"],[497,"xs18_ca9d2koz33"],[502,"xs18_8k4baik8zw113"],[508,"xs18_8ka9la8ozw121"],[519,"xs18_4alla8ozw65"],[521,"xs18_4air4k8z06421"],[528,"xs18_c88r2qkz065"],[537,"xs18_ckgv18ozx65"],[547,"xs18_8kkm9iczx56"],[549,"xs18_g8o6picz1243"],[551,"xs18_4a5p64kozw32"],[552,"xs18_cidicggzx343"],[553,"xs18_0o4idicz11074"],[554,"xs18_8k8alla4zw23"],[556,"xs18_8kkm9iczx146"],[573,"xs18_25a8idiczx23"],[576,"xs18_642t2kozw643"],[577,"xs18_642t2sgzw643"],[578,"xs18_8ka9d2koz023"],[582,"xs18_0o4pb8oz3146"],[583,"xs18_6ik5b8oz056"],[585,"xs18_ciarzw65033"],[594,"xs18_8ehaczw12553"],[595,"xs18_628q596z2521"],[598,"xs18_695q48cz2521"],[608,"xs18_0gbhqb8oz23"],[613,"xs18_3iajkk8zw56"],[627,"xs18_0cahd2koz321"],[629,"xs18_0ci9b4koz321"],[631,"xs18_0ci9d2koz321"],[634,"xs18_0cikm853z321"],[650,"xs18_31km2koz643"],[651,"xs18_31km4koz643"],[652,"xs18_312jaa4z6511"],[656,"xs18_3586p2sgzx23"],[667,"xs18_og4q596z6221"],[673,"xs18_0g88bl8z1ad11"],[675,"xs18_g8id2koz1248c"],[678,"xs18_4a512koz0ca23"],[679,"xs18_0g3hik8z345d"],[691,"xs18_8ka9jzw11696"],[707,"xs18_3146kk8zca23"],[721,"xs18_o4a512koz01246"],[726,"xs18_g8kit246z056"],[729,"xs18_4ai3s4zx12552"],[733,"xs18_4aak5jzx11074"],[736,"xs18_o8al5izx11074"],[745,"xs18_g8kim853z056"],[748,"xs18_0o4im853z643"],[749,"xs18_0o4iq453z643"],[750,"xs18_0o4it246z643"],[752,"xs18_31e8gka4zw643"],[755,"xs18_g8ge12koz1248c"],[756,"xs18_8kih3wkczx3421"],[757,"xs18_69m88gzx11696"]]
dirname = g.getdir("data")
separator = dirname[-1]
progresspath = dirname + "apgsearch" + separator + "progress" + separator
if not os.path.exists(progresspath):
g.exit("apgsearch progress folder not found -- nothing to search.")
fnlist=glob.glob(progresspath+"*.txt")
out, count = "", 0
for fn in fnlist:
all = open(fn, 'r').read()
for item in testlist:
g.show(str(item[0])+" "+fn)
if all.find("\n"+item[1]+" ")>-1:
out+="Object #"+str(item[0])+" [ "+item[1]+" ] found in search " \
+ all[all.index("ROOT"):all.index("@NUM_OBJECTS")-1].replace("\n@"," ") \
+ " [ " + fn + " ]\n"
count+=1
g.note("Number of noteworthy 18-bit objects found: " + str(count) + "\n" + out)
g.setclipstr(out)
P.S. Not too surprisingly, no useful 18-bitters were found among the search reports on this computer -- I had just done a few small searches here. I've been doing multi-million-soup searches on a quad-core system at the University, though, so we'll see if anything turns up tomorrow...!