File: run_pointnet.py

package info (click to toggle)
bmtk 1.1.1%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204,044 kB
  • sloc: python: 37,064; javascript: 1,998; makefile: 42; sh: 33
file content (19 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os, sys

from bmtk.simulator import pointnet


def run(config_file):
    configure = pointnet.Config.from_json(config_file)
    configure.build_env()

    network = pointnet.PointNetwork.from_config(configure)
    sim = pointnet.PointSimulator.from_config(configure, network)
    sim.run()


if __name__ == '__main__':
    if os.path.basename(__file__) != sys.argv[-1]:
        run(sys.argv[-1])
    else:
        run('config.simulation_iclamp.json')