• 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
12
13def main():
14    parser = argparse.ArgumentParser()
15    parser.add_argument('-i', required=True)
16    parser.add_argument('-o', required=True)
17
18    args = parser.parse_args()
19
20    array = np.arange(100, dtype=np.float32)
21    array.tofile(open(args.o, 'w'))
22
23
24if __name__ == '__main__':
25    main()
26