Mercurial > repos > bgruening > chemical_data_sources
comparison get_pubchem/get_pubchem_as_smiles.py @ 4:7c1f9962ac07 draft
Add temporary hack until my galaxy stdout/stderr UTF-8 bug is fixed.
author | bgruening |
---|---|
date | Fri, 27 Sep 2013 15:51:46 -0400 |
parents | 021f0ef9474f |
children |
comparison
equal
deleted
inserted
replaced
3:021f0ef9474f | 4:7c1f9962ac07 |
---|---|
27 | 27 |
28 result = pool.map_async(fetch_convert, filenames) | 28 result = pool.map_async(fetch_convert, filenames) |
29 result.get() | 29 result.get() |
30 | 30 |
31 for filename in os.listdir(td): | 31 for filename in os.listdir(td): |
32 path = os.path.join(td, filename) + '.smi' | 32 path = os.path.join(td, filename) |
33 shutil.copyfileobj(open(path, 'rb'), output_handle) | 33 shutil.copyfileobj(open(path, 'rb'), output_handle) |
34 | 34 |
35 output_handle.close() | 35 output_handle.close() |
36 shutil.rmtree( td ) | 36 shutil.rmtree( td ) |
37 | 37 |