Debian Codegraph @

examples/ei_networks/pointnet/run_pointnet.py

raw
1 from bmtk.simulator import pointnet
2 import sys, os
3
4 def main(config_file):
5 config_file = config_file
6 configure = pointnet.Config.from_json(config_file)
7 configure.build_env()
8
9 network = pointnet.PointNetwork.from_config(configure)
10 sim = pointnet.PointSimulator.from_config(configure, network)
11 sim.run()
12
13
14 if __name__ == '__main__':
15 if __file__ != sys.argv[-1]:
16 main(sys.argv[-1])
17 else:
18 print('Please give a config file')