schollz / find

High-precision indoor positioning framework for most wifi-enabled devices.

Home Page:https://www.internalpositioning.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerfile/Supervisor sets Find to store data at /data and rf can't find data/group.rf.pkl

nordlead2005 opened this issue · comments

I downloaded the dockerfile and supervisor conf and built the docker image and Find randomForest doesn't work. I believe it is because rf.py has "data/" hardcoded, but find gets passed in -data /data

find/rf.py

Line 52 in ebe2a55

with open("data/" + fname + ".rf.json", 'r') as f_in:

commented

Oh thanks! I will look into that

Workaround from #158 setting the volume mountpoint to /usr/local/work/src/github.com/schollz/find does the trick for me. After re-deploying (on kubernetes) /usr/local/work/src/github.com/schollz/find/data was created and contains

-rw------- 1 root root 32768 Feb 10 18:16 <my-group>.db
-rw-r--r-- 1 root root    91 Feb 10 18:16 <my-group>.model
-rw-r--r-- 1 root root  1096 Feb 10 18:16 <my-group>.rf.json
-rw-r--r-- 1 root root  5962 Feb 10 18:16 <my-group>.rf.pkl
drwx------ 2 root root 16384 Nov 11 17:43 lost+found