MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / draw_subtable

Function draw_subtable

bmtools/tools/meta_analysis/api.py:169–183  ·  view source on GitHub ↗
(pth, topic, docs)

Source from the content-addressed store, hash-verified

167 return response.replace('\n', ' ')
168
169def draw_subtable(pth, topic, docs):
170 fw = open(pth, 'w')
171 cnt = 1
172 for ky in docs.keys():
173 fw.write('Table #'+str(cnt)+'\n')
174 cnt+=1
175 prp = 'We want to explore '+topic+'. Read the following article and list the key elements and values of the experiment into a concise markdown table. Article: '
176 prp+=ky+'. '+docs[ky]
177 prp+='Table: '
178 lt = len(prp.split(' '))
179 response = generate_response(prp, 4000-2*lt)
180 fw.write(response.strip('\n'))
181 fw.write('\n')
182 fw.flush()
183 fw.close()
184
185def extra_draw(pth, docs, extra_query):
186 fw = open(pth, 'w')

Callers 1

draw_tableFunction · 0.85

Calls 1

generate_responseFunction · 0.85

Tested by

no test coverage detected