-
Notifications
You must be signed in to change notification settings - Fork 64
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
Issues with saving NSC Detector text file #79
Comments
ln.zSaveDetector(1,det_zmxobj_no,fileName=txtfile[:-4]+'.ddr') returns 0 but no .DDR file is created. Seems to be related? ln.zSaveDetector(1,det_zmxobj_no,fileName='test.ddr') creates a file called Zemaxtest.ddr in I am using Zemax 17 and Python 3.5 |
Hi @indranilsinharoy , Did you get time to look at this? |
Hi @shbhuk , Unfortunately, since I moved to a new job, I don't have a Zemax license right now. Therefore, I hope someone else with a Zemax key can resolve your issue. I'm very sorry. Best Regards, |
Hi @indranilsinharoy , Shubham |
@shbhuk This is caused by the number of digits in the exponential for intensity / power values. The code is looking for 3 to 8, while some people have just 2. @indranilsinharoy The ethernal license problem! I've sent a PR #103. |
Great, thanks! |
Hi,
This is following issue #71
I get the following error on trying to use
I checked the source code, and this function which GetDetectorViewer() calls -
This function runs without error and returns 0. However it is not creating the textFile. Thus the zfileutils are giving an error.
This sends the following DDE command -
This command runs without error and returns 'OK' when I call it -
cmd = 'GetTextFile,"{tF}",{aT},"{sF}",{fl:d}'.format(tF=loc+'test.txt', aT='Dvr',sF='',fl=0)
However, there is no file generated in the directory specified by 'loc'
The text was updated successfully, but these errors were encountered: