• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python
2# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3#
4# Use of this source code is governed by a BSD-style license
5# that can be found in the LICENSE file in the root of the source
6# tree. An additional intellectual property rights grant can be found
7# in the file PATENTS.  All contributing project authors may
8# be found in the AUTHORS file in the root of the source tree.
9import argparse
10import numpy as np
11
12def main():
13  parser = argparse.ArgumentParser()
14  parser.add_argument('-i', required=True)
15  parser.add_argument('-o', required=True)
16
17  args = parser.parse_args()
18
19  array = np.arange(100, dtype=np.float32)
20  array.tofile(open(args.o, 'w'))
21
22
23if __name__ == '__main__':
24  main()
25