This file contains 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
project_home="/Users/jmoxon/Tutorial/Clothesliner/pant_entry/" | |
csv_home="/Users/jmoxon/Tutorial/Clothesliner/pant_entry/learning.csv" | |
import sys, os | |
sys.path.append(project_home) | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' | |
from pants.models import Item | |
import csv |
This file contains 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
def sft(x,N=999999999): | |
return map(fft,[x]*N)[0] | |
def sft(x): | |
fft_x = fft(x) | |
stock_prices = [ticker(stock) for stock in market] | |
if stock_prices == fft_x: | |
return stock_prices | |
else: |