MCPcopy Create free account
hub / github.com/QuantFans/quantdigger / process_session

Function process_session

quantdigger/kernel/datasource/data.py:359–373  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

357 return "".join([home, "trace/", fname,"_trade_wave.txt"]), "".join([home, "trace/", fname, "_wave.txt"])
358
359 def process_session(data):
360 ''''''
361 index = data[0]
362 pre_en_wave = []
363 after_en_wave = []
364 ispre = True
365 for line in data[1:]:
366 issep = line.startswith("=")
367 if ispre and not issep:
368 pre_en_wave.append(line)
369 if issep:
370 ispre = False
371 if not ispre and not issep:
372 after_en_wave.append(line)
373 return [index, pre_en_wave, after_en_wave]
374
375 rst = []
376 for fname in fnames:

Callers 1

load_wavedataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected