code
stringlengths
3
6.57k
channel (Optional[grpc.Channel])
api_mtls_endpoint (Optional[str])
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]])
ssl_channel_credentials (grpc.ChannelCredentials)
quota_project_id (Optional[str])
client_info (google.api_core.gapic_v1.client_info.ClientInfo)
client_cert_source()
SslCredentials()
type(self)
auth.default(scopes=self.AUTH_SCOPES)
type(self)
super()
address (Optionsl[str])
credentials (Optional[~.Credentials])
scopes (Optional[Sequence[str]])
kwargs (Optional[dict])
grpc_channel(self)
trial (but does not turn)
tkinter (command line doesn't work in PsychoPy)
GetInput()
__init__(self)
tk.Tk()
self.root2.title("Subject and Session")
self.root2.winfo_screenwidth()
self.root2.winfo_screenheight()
self.root2.geometry('%dx%d+%d+%d' % (w, h, x, y)
tk.Entry(self.root2)
self.e.insert(0, 'Subject Number')
self.e.pack()
self.e.focus_set()
tk.Entry(self.root2)
self.e2.insert(0, 'Session')
self.e2.pack()
self.e2.focus_set()
tk.Label(self.root2, bg='white', text=txt, font=("Helvetica", 14)
self.instr.pack()
tk.Button(self.root2,text='OK',command=self.get_input)
b.pack(side='bottom')
self.root2.mainloop()
get_input(self)
self.e.get()
self.e2.get()
subject_ID.append(subj_str)
session.append(sess_str)
self.root2.destroy()
GetInput()
int(subject_ID[0])
int(session[0])
os.getcwd()
os.path.join(cwd,'LogFiles','sub-{}'.format(subject_ID)
format(session)
os.path.isdir(logfile_dir)
os.makedirs(logfile_dir)
time.strftime("%Y%m%d-%H%M%S")
os.path.join(logfile_dir,'sub-{}_sess-{}_task-consistency_events_{}.tsv'.format(subject_ID,session,timestr)
Test()
__init__(self)
tk.Tk()
self.root.title("Subject {} Session {}".format(subject_ID, session)
self.root.winfo_screenwidth()
self.root.winfo_screenheight()
self.root.geometry('%dx%d+%d+%d' % (ws, hs, 0, 0)
tk.Button(self.root, text='Pick a color:', command=self.pick_a_color, font=('Helvetica', '36')
self.open1.pack(fill=tk.X, expand=False)
tk.Label(self.root, bg='white', text=L, font=("Helvetica", 90)
self.letter.pack()
self.root.mainloop()
quit(self)
RGBS.append( [L ,self.RGB, self.HEX, abc] )
self.root.destroy()
pick_a_color(self,)
askcolor((random.randint(0,255)
random.randint(0,255)
random.randint(0,255)
format(L)
self.letter.configure(fg = self.HEX)
tk.Button(self.root, text='FINISHED', command=self.quit, font=('Helvetica', '28')
exit_button.pack()
self.root.mainloop()
np.arange(REPS)
random.shuffle(alphabet)
Test()
pd.DataFrame(RGBS)
print(RGBS)
np.repeat(subject_ID,len(DFS)
DFS.to_csv(output_alphabet, sep='\t')
groups (also in case it goes wrong)
print(RGBS)
print('consistency test - success!')
plt.figure(figsize=(10,5)
DFS.sort_values(by=['choice', 'letter'],inplace=True)
DFS.sort(['choice', 'letter'])
DFS.reset_index(inplace=True)
enumerate(alphabet)
fig.add_subplot(6,5,i+1)
ax.text(0.5, 0.5, DFS['letter'][i], color=DFS['hex'][i],fontsize=18)
ax.text(0.25, 0.5, DFS['letter'][i+len(alphabet)
len(alphabet)
ax.set_axis_off()
sns.despine(offset=10, trim=True)