Skip to content
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

UpdateNaturalFrequencyPropsRequest API #472

Open
2 tasks done
kinielsen opened this issue Dec 10, 2024 · 1 comment
Open
2 tasks done

UpdateNaturalFrequencyPropsRequest API #472

kinielsen opened this issue Dec 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kinielsen
Copy link

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Dear Team,

I found a bug when updating Natural Frequency Analysis Properties.

UpdateNaturalFrequencyPropsRequest API accepts "float" in SherlockAnalysisService_pb2.pyi

Image

It results in Float number when updating Natural Frequency Properties.

Image

Best regards,
Kim

📝 Steps to reproduce

sherlock = launch_sherlock(port = 9090)

sherlock.analysis.update_natural_frequency_props(
project=project_name,
cca_name=pcb_name,
natural_freq_count=6,
natural_freq_min=20,
natural_freq_min_units="HZ",
natural_freq_max=2000,
natural_freq_max_units="HZ",
part_validation_enabled=False,
require_material_assignment_enabled= False,
analysis_temp=22.0,
analysis_temp_units="C"
)

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2024R2

🐍 Which Python version are you using?

3.12

📦 Installed packages

annotated-types==0.7.0
ansys-api-sherlock==0.1.35
ansys-sherlock-core==0.8.1
greenlet==3.1.1
grpcio==1.67.1
grpcio-tools==1.67.1
jproperties==2.1.2
numpy==2.1.3
pandas==2.2.3
pika==1.3.2
protobuf==5.29.0
psycopg2==2.9.10
pydantic==2.10.2
pydantic_core==2.27.1
python-dateutil==2.9.0.post0
pytz==2024.2
PyYAML==6.0.2
setuptools==75.1.0
six==1.16.0
SQLAlchemy==2.0.36
typing_extensions==4.12.2
tzdata==2024.2
wheel==0.44.0
@kinielsen kinielsen added the bug Something isn't working label Dec 10, 2024
@kinielsen
Copy link
Author

Hi again,

I have tried to change the naturalFreqMin and naturalFreqMax in UpdateNaturalFrequencyPropsRequest to "bulletin.int" but with no success.

Also, it is not possible to leave out any parameters in the function as you will get an "Analysis.update_natural_frequency_props() missing X required positional arguments:" error.

Best regards,
Kim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant