def load_neurite_features(filepath):
stuff = defaultdict(lambda: defaultdict(list))<EOL>nrns = nm.load_neurons(filepath)<EOL>for nrn in nrns:<EOL><INDENT>for t in NEURITES_:<EOL><INDENT>for feat in FEATURES:<EOL><INDENT>stuff[feat][str(t).split('<STR_LIT:.>')[<NUM_LIT:1>]].extend(<EOL>nm.get(feat, nrn, neurite_type=t)<EOL>)<EOL><DEDENT><DEDENT><DEDENT>return stuff<EOL>
Unpack relevant data into megadict