Closed adamkoval closed 1 year ago
Update: for now, I have worked around the issue by commenting the call to the troubled method, __get_source_list() in the DpfXmpViewer class (commented lines 360 & 361 in dpf_xmp_viewer.py). I don't need a source list for my current application, but I would certainly like to have this option in the future. Any help is appreciated.
@adamkoval can you please check if you're file is seperated by layer so does the source list exist? if not could you please share the XMP file with official Ansys Support optiseuropesupport@ansys.com then we can adjust the code so if gives an appropriate error
@StefanThoene Thanks for your reply.
So the sensors all have "Data separated by source" checked, and indeed in the extended.txt file I see all the layers.
I cannot share my XMP file at the moment because the simulated data is bound by NDA. But I will try to find some time and run a generic simulation, and I will share the results of that.
P.S., A question regarding the extended.txt format - is the data given in RGBA format or something else? I am not sure how to process it as it seems there are channels for each source, and each channel contains 4 values per pixel. I tried to check the code by I cannot access the methods of XMPViewer.Application COM object, so it is a black box at the moment. I am new to image processing, so some guidance would greatly help me! I can open a new topic if needed.
@adamkoval here you can find the exact format explanation https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v222/en/Optis_UG_LAB/Optis/UG_Lab/extended_map_format_31781.html if you need more guidance please reach out to us with an official support request and we can help you understand it in a direct call you can also check out the following parts of the git repo where we create a datastruct of the XMP to allow pixel by pixel access to the data: https://github.com/ansys/optical-automation/blob/a3195edecb4b8915d0f5c8c704ce57ae1b2a336f/ansys_optical_automation/post_process/dpf_xmp_viewer.py#L492
@StefanThoene thanks for your guidance. I'll need to make an account to see that but I'm sure it will be a helpful resource.
Hi, this is my first attempt at using your API to automate some analysis of SPEOS results.
I used your template code at: https://github.com/ansys/optical-automation/blob/main/ansys_optical_automation/application/export_measures.py
Upon selecting the location of the xmp file I want to work with, the script fails (line 34).
Please help me understand what I'm doing incorrectly to help me get started with what looks like a very useful API!
Thank you in advance!
Below is the error traceback: