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 | |
''' | |
Send an multipart email with HTML and plain text alternatives. The message | |
should be constructed as a plain-text file of the following format: | |
From: Your Name <[email protected]> | |
To: Recipient One <[email protected]> | |
Subject: Your subject line | |
--- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class writable_mds_store: | |
''' | |
This will write each chunk to a binary file. Really only works if chunks are the k-index of the matrix | |
''' | |
def __init__(self, prefix, itern, suffix='data', dtype='>f4'): | |
self.prefix = prefix | |
self.itern = itern | |
self.suffix = suffix | |
self.dtype = dtype | |
self.fname = '%s.%010d.%s' % (self.prefix, self.itern, self.suffix) |