Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
when settting the distortion with distortion file V2, the default set_focal should be clean.
V2 : f-number, imager_distance, focal
V4 : f-number, imager_distance, focal, transmission
Raise an error if the user fills
OPTDistortion file v2 AND one of focal, imager distance, f number
OPTDistortion file v4 AND one of focal, imager distance, f number, transmittance file
During load of .speos file, and creating protobuf objects:
Keep mentioned fields to default value when using OPTDistortion file v2/4
Add metadata to explain to the user why those fields are set to default value.
📝 Steps to reproduce
camera.set_distortion_file_uri(distortion_file)
camera.set_mode_photometric().set_transmittance_file_uri(uri=transmittance_file)
camera.set_mode_photometric().set_mode_color().set_red_spectrum_file_uri(red_sensitivity).set_green_spectrum_file_uri(green_sensitivity).set_blue_spectrum_file_uri(blue_sensitivity)
camera.commit()
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
252
🐍 Which Python version are you using?
3.11
📦 Installed packages
aiohappyeyeballs==2.6.1
aiohttp==3.11.18
aiosignal==1.3.2
ansys-api-meshing-prime==0.1.5.dev1
ansys-api-platform-instancemanagement==1.1.3
ansys-api-speos==0.15.2
ansys-platform-instancemanagement==1.1.2
-e git+https://github.com/ansys-internal/pyspeos.git@1275a76177610329d782cf762a1c0012784d5c29#egg=ansys_speos_core
ansys-tools-path==0.7.1
ansys-tools-visualization-interface==0.9.1
anyio==4.9.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asttokens==3.0.0
attrs==25.3.0
beautifulsoup4==4.13.4
bleach==6.2.0
certifi==2025.1.31
cffi==1.17.1
cfgv==3.4.0
charset-normalizer==3.4.1
click==8.1.8
cmocean==4.0.3
colorama==0.4.6
colorcet==3.1.0
comm==0.2.2
comtypes==1.4.10
contourpy==1.3.2
coverage==7.8.0
cycler==0.12.1
decorator==5.2.1
defusedxml==0.7.1
distlib==0.3.9
executing==2.2.0
fastjsonschema==2.21.1
filelock==3.18.0
fonttools==4.57.0
fqdn==1.5.1
frozenlist==1.6.0
grpcio==1.70.0
grpcio-health-checking==1.67.1
identify==2.6.10
idna==3.10
imageio==2.37.0
importlib_metadata==8.6.1
iniconfig==2.1.0
ipython==9.2.0
ipython_pygments_lexers==1.1.1
ipywidgets==8.1.6
isoduration==20.11.0
jedi==0.19.2
Jinja2==3.1.6
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2025.4.1
jupyter-events==0.12.0
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyter_server==2.15.0
jupyter_server_proxy==4.4.0
jupyter_server_terminals==0.5.3
jupyterlab_pygments==0.3.0
jupyterlab_widgets==3.0.14
kiwisolver==1.4.8
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib==3.10.1
matplotlib-inline==0.1.7
mdurl==0.1.2
meshio==5.3.5
mistune==3.1.3
more-itertools==10.7.0
msgpack==1.1.0
multidict==6.4.3
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nest-asyncio==1.6.0
nodeenv==1.9.1
numpy==2.2.5
overrides==7.7.0
packaging==25.0
pandocfilters==1.5.1
parso==0.8.4
pillow==11.2.1
platformdirs==4.3.7
pluggy==1.5.0
pooch==1.8.2
pre_commit==4.2.0
prometheus_client==0.21.1
prompt_toolkit==3.0.51
propcache==0.3.1
protobuf==5.29.4
psutil==7.0.0
pure_eval==0.2.3
pycparser==2.22
Pygments==2.19.1
pyparsing==3.2.3
pytest==8.3.5
pytest-cov==6.1.1
python-dateutil==2.9.0.post0
python-json-logger==3.3.0
pyvista==0.44.2
pywin32==310
pywinpty==2.0.15
PyYAML==6.0.2
pyzmq==26.4.0
referencing==0.36.2
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==14.0.0
rpds-py==0.24.0
scooby==0.10.0
Send2Trash==1.8.3
simpervisor==1.0.0
six==1.17.0
sniffio==1.3.1
soupsieve==2.7
stack-data==0.6.3
terminado==0.18.1
tinycss2==1.4.0
tornado==6.4.2
traitlets==5.14.3
trame==3.8.2
trame-client==3.8.0
trame-common==0.2.0
trame-server==3.4.0
trame-vtk==2.8.15
trame-vuetify==3.0.1
types-python-dateutil==2.9.0.20241206
typing_extensions==4.13.2
uri-template==1.3.0
urllib3==2.4.0
virtualenv==20.30.0
vtk==9.3.1
wcwidth==0.2.13
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.8.0
websockets==15.0.1
widgetsnbextension==4.0.14
wslink==2.3.3
yarl==1.20.0
zipp==3.21.0