This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<traceback> | |
Process Process-1: | |
Traceback (most recent call last): | |
File "C:\Python26\Lib\multiprocessing\process.py", line 232, in _bootstrap | |
self.run() | |
File "C:\Python26\Lib\multiprocessing\process.py", line 88, in run | |
self._target(*self._args, **self._kwargs) | |
File "C:\Documents and Settings\phamorim\Desktop\test.py", line 7, in print_ma | |
trix | |
print matrix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import multiprocessing | |
import numpy as np | |
def print_matrix(matrix): | |
print matrix | |
def main(): | |
matrix = np.memmap('test.dat', dtype='int16', mode='w+', shape=(100, 100)) |
NewerOlder