Skip to content

Commit

Permalink
fixed the names of several variables to match naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
tzhu7 committed Jan 11, 2013
1 parent eb1031a commit 3a3df14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions qstkutil/DataEvolved.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,16 @@ def get_data_hard_read(self, ts_list, symbol_list, data_item, verbose=False, inc

data_item = data_item[:]
data_fund = []
ls_fund_index = []
li_fund_index = []
data_tech = []
ls_tech_index = []
li_tech_index = []
for i, item in enumerate(data_item):
if item in ls_fund_keys:
data_fund.append(item)
ls_fund_index.append(i)
li_fund_index.append(i)
else:
data_tech.append(item)
ls_tech_index.append(i)
li_tech_index.append(i)

for i, item in enumerate(data_tech):
if item in ds_map.keys():
Expand Down Expand Up @@ -342,9 +342,9 @@ def get_data_hard_read(self, ts_list, symbol_list, data_item, verbose=False, inc
columns_fund[i][d_id_sym[row[0]]][dt_date] = row[i+2]

columns = [numpy.NaN]*len(data_item)
for i,item in enumerate(ls_tech_index):
for i,item in enumerate(li_tech_index):
columns[item]=columns_tech[i]
for i,item in enumerate(ls_fund_index):
for i,item in enumerate(li_fund_index):
columns[item]=columns_fund[i]

return columns
Expand Down

0 comments on commit 3a3df14

Please sign in to comment.