<s> """<STR_LIT>""" <EOL> from __future__ import division <EOL> import numpy as np <EOL> def ds_freq ( osr = <NUM_LIT> , f0 = <NUM_LIT:0.> , quadrature = False ) : <EOL> """<STR_LIT>""" <EOL> if quadrature : <EOL> f_left = - <NUM_LIT:0.5> <EOL> f_special = ( f0 , - f0 ) <EOL> else : <EOL> f_left = <NUM_LIT:0.> <EOL> f_special = ( f0 , ) <EOL> f = np . linspace ( f_left , <NUM_LIT:0.5> , num = <NUM_LIT:100> ) <EOL> for fx in f_special : <EOL> f1 = max ( f_left , fx - <NUM_LIT:1.> / osr ) <EOL> f2 = min ( <NUM_LIT:0.5> , fx + <NUM_LIT> / osr ) <EOL> dels = np . where ( np . logical_and ( f <= f2 , f >= f1 ) ) <EOL> f = np . delete ( f , dels ) <EOL> f = np . sort ( np . concatenate ( ( f , np . linspace ( f1 , f2 , num = <NUM_LIT:100> ) ) ) ) <EOL> return f </s>
