Compile helper function ar runtime. Make sure this is invoked on a single process.
()
| 64 | |
| 65 | |
| 66 | def compile_helper(): |
| 67 | """Compile helper function ar runtime. Make sure this |
| 68 | is invoked on a single process.""" |
| 69 | import os |
| 70 | import subprocess |
| 71 | |
| 72 | path = os.path.abspath(os.path.dirname(__file__)) |
| 73 | ret = subprocess.run(["make", "-C", path]) |
| 74 | if ret.returncode != 0: |
| 75 | print("Making C++ dataset helpers module failed, exiting.") |
| 76 | import sys |
| 77 | |
| 78 | sys.exit(1) |
| 79 | |
| 80 | |
| 81 | def get_a_and_b_segments(sample, np_rng): |
nothing calls this directly
no outgoing calls
no test coverage detected