Plott output by mcxplotvol on python

44 views
Skip to first unread message

守實友梨

unread,
May 27, 2021, 8:12:26 AM5/27/21
to mcx-users

Dear Dr. Fang and Community

I am using pymcx and module "mcxplotvol",
but I can not see the figure of output bacause of the error.

The error is 
"X,Y,Z=np.mgrid[0:1:datashape[0]*1j,0:1:datashape[0]*1j,0:1:datashape[0]*1j]"
and message is 
"tuple index out of range"

I can not understand why it cause.
This caused not only my program but also sample code on readme,pymcx,Github.

Thank you 
Sincelely,
Yuri Morizane

Qianqian Fang

unread,
May 27, 2021, 9:05:18 AM5/27/21
to mcx-...@googlegroups.com, 守實友梨

hi Yuri, the pymcx module is a 3rd party package maintained by Maxime Baillot, I know he is a subscriber of this list,

Maxime, do you see an easy fix to this issue reported by Yuri?

--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/e9f465f9-4e57-4dd3-ba26-6fcbff4c01bdn%40googlegroups.com.

Maxime Baillot

unread,
Jun 7, 2021, 8:59:58 AM6/7/21
to mcx-users
Hello Yuri,

plotvol() should not really been used because it doesn't not work properly (and it is not being loaded when you load the pymcx package look)

But if you still want to use it. You need to give plotvol() something to plot so you need to give it mc2 data  (Also you need the python package plotly  to be installed)

If you do something like that it should work, 

mch, mc2 = mcx.run(cfg,datadict= True)
mcx.mcxplotvol(mc2)


Let me know if it work or not 


Reply all
Reply to author
Forward
0 new messages