File size: 458 Bytes
24a4349
 
 
 
 
 
 
 
 
 
 
7ba43b5
 
 
 
 
24a4349
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Example call:
## python3 generate_dev_juliapkg.py /pysr/pysr/juliapkg.json /srjl
import json
import sys

juliapkg_json = sys.argv[1]
path_to_srjl = sys.argv[2]

with open(juliapkg_json, "r") as f:
    juliapkg = json.load(f)

juliapkg["packages"]["SymbolicRegression"] = {
    "uuid": juliapkg["packages"]["SymbolicRegression"]["uuid"],
    "path": path_to_srjl,
    "dev": True,
}

with open(juliapkg_json, "w") as f:
    json.dump(juliapkg, f, indent=4)