Changeset fbcee4f for python/lib
- Timestamp:
- Apr 25, 2016, 12:35:53 AM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- c4b2183
- Parents:
- c6388f4
- Location:
- python/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_code.py
rc6388f4 rfbcee4f 69 69 70 70 pyargparse_chars = { 71 'smpl_t': 'f', 71 'smpl_t': 'f', # if not usedouble else 'd', 72 72 'uint_t': 'I', 73 73 'sint_t': 'I', … … 154 154 class MappedObject(object): 155 155 156 def __init__(self, prototypes): 156 def __init__(self, prototypes, usedouble = False): 157 if usedouble: 158 pyargparse_chars['smpl_t'] = 'd' 157 159 self.prototypes = prototypes 158 160 -
python/lib/gen_external.py
rc6388f4 rfbcee4f 67 67 return cpp_output, cpp_objects 68 68 69 def generate_external(output_path ):70 os.mkdir(output_path)69 def generate_external(output_path, usedouble = False): 70 if not os.path.isdir(output_path): os.mkdir(output_path) 71 71 sources_list = [] 72 72 cpp_output, cpp_objects = get_cpp_objects() … … 124 124 for o in lib: 125 125 out = header 126 mapped = MappedObject(lib[o] )126 mapped = MappedObject(lib[o], usedouble = usedouble) 127 127 out += mapped.gen_code() 128 128 output_file = os.path.join(output_path, 'gen-%s.c' % o)
Note: See TracChangeset
for help on using the changeset viewer.