Help Needed: Error Running PyLCP Code for CaF Molecules

47 views
Skip to first unread message

Sagar Sutradhar

unread,
Jun 20, 2025, 8:33:55 AMJun 20
to pylcp

Hi everyone,

I’m trying to run the PyLCP code for CaF molecules. The complete code and module are provided nicely at the following link.

https://python-laser-cooling-physics.readthedocs.io/en/latest/examples/MOTs/20_CaF_MOT.html

However, when I run the code, I’m encountering an error related to UX. I’ve attached an image of the error for reference.

I’m not sure what the problem is, and I would really appreciate any help you can offer. Thanks in advance!

error.png

Roberto Haubold

unread,
Sep 23, 2025, 7:09:39 AM (2 days ago) Sep 23
to pylcp
Hi Sagar,

I've just encountered the same problem and I was wondering if you managed to find a fix?

Cheers,
Roberto

Sagar Sutradhar

unread,
Sep 23, 2025, 9:55:37 AM (2 days ago) Sep 23
to Roberto Haubold, pylcp
Hi Robeto,

I could manage to solve it, but it would sound a bit stupid, but evntually it works.

This particular, command UX is in the python module "XYmolecules.py", in line 585.
You would get this python file in the path as mentioned in the attached image.

I did the following,

1. kept  a copy of the above script to another folder (e.g, a folder in desktop)
2. Deleted the script from "pylcp\hamiltonians" folder and refrashed this folder
3. Copy and pasted the file from the folder (e.g. from desktop)

and it works.  But, to  be frank, I did not understand how did it get fixed, it worked.

In the same note, one of my colleagues tried the same but it did not work,

Then, he tried a different approach, then it was working.

Now, program  is running seamlessly.
So, I would say, you can try the method, what I described, if it works it good.

Otherwise, I would suggest you to approach my colleague, Filippo Tamassia (filippo....@unibo.it ), from University of Bologna.
He would guide you more methodically how to fix this problem.

Best 
Sagar


 

--
You received this message because you are subscribed to the Google Groups "pylcp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylcp+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pylcp/7deb3578-255a-434e-9fce-e4128620a258n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
4.png
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages