-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: cannot unpack non-iterable numpy.float64 object #21
Comments
Thanks for your interest in using our tool! I'm happy to help debug. Could you send me the .bib file that you uploaded to generate the cleanedBib.csv file that you attached? |
Thank you!
Here is the .bib file, which I downloaded from Web of Science.
Best,
…On Mon, Nov 23, 2020 at 1:38 PM Dale Zhou ***@***.***> wrote:
Thanks for your interest in using our tool! I'm happy to help debug.
Could you send me the .bib file that you uploaded to generate the
cleanedBib.csv file that you attached?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR3TUBBZ4VIS64WSS4OJC33SRKT3BANCNFSM4T7XSYPQ>
.
--
Rebecca Ashare, Ph.D.
Associate Professor
Center for Interdisciplinary Research on Nicotine Addiction
Senior Fellow, Center for Public Health Initiatives
Perelman School of Medicine at the University of Pennsylvania
3535 Market St, Suite 4100
Philadelphia, PA 19104
phone: (215) 746-5789
email: rlashare@pennmedicine.upenn.edu
|
Thanks again for using our tool! To summarize: resolved this issue by adding instructions pointing to previous code for analyzing published papers, under |
hi there,
Having trouble with Step 4. I get the following error: TypeError: cannot unpack non-iterable numpy.float64 object (also pasted below). In case it's helpful, I'm attaching the cleanedBib.csv file generated in Step 2 and updated before I ran Step 3 (which seemed to run fine though the incompleteKeys.csv and incompleteRows.csv are both empty). Not a coder but would love to be able to use this tool - thanks so much for posting it!
cleanedBib.pdf
first author is Rebecca Ashare
last author is Robert Schnoll
we don't count these, but check the predictions file to ensure your names did not slip through!
looping through your references, predicting gender and race
/srv/conda/envs/notebook/lib/python3.7/site-packages/numpy/core/fromnumeric.py:3373: RuntimeWarning: Mean of empty slice.
out=out, **kwargs)
/srv/conda/envs/notebook/lib/python3.7/site-packages/numpy/core/_methods.py:170: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
TypeError Traceback (most recent call last)
in
175 idx = idx + 1
176
--> 177 mm,wm,mw,ww = np.mean(gender,axis=0)*100
178 WW,aw,wa,aa = np.mean(race,axis=0)*100
179
TypeError: cannot unpack non-iterable numpy.float64 object
The text was updated successfully, but these errors were encountered: