![]() ![]() ![]() CFG file generated by Zemax that gives theĭesired output when not run though pyZDDE. Checking the encoding- I'm using ASCII, but running it in utf-8.So to me it looks like its mistaking the filter string for the detector infromation, but I'm not sure how to fix it! ValueError: could not convert string to float: W2 PosX = float(line_list.split(':').strip()) # 'Detector X' Ret = _zfu.readDetectorViewerTextFile(pyz, textFileName, displayData)įile "C:\ProgramData\Anaconda2\lib\site-packages\pyzdde\zfileutils.py", line 679, in readDetectorViewerTextFile The full error is: File "C:\ProgramData\Anaconda2\lib\site-packages\pyzdde\zdde.py", line 9397, in zGetDetectorViewer Part of this analysis involves using a filter string to get detector output for a couple of different wavelengths, however when I try to pass my filter string (in this case 'W2', I get the error "ValueError: could not convert string to float: W2" Ideally I'd like it to run through all model configurations and perform a small amount of analysis so that I can leave the models processing overnight. I'm running NSC raytraces in Zemax, using the python zemax DDE server pyZDDE to run through multiple configurations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |