Skip to content

Conversation

ChaiF1
Copy link

@ChaiF1 ChaiF1 commented Aug 29, 2025

This is a small PR to give the code I used to fix issue #4206 which I encountered in my work. The issue is broader than my fix so more code is needed to make the problems described in the issue go away. This can be used as a start to start fixing the entire underlying problem.

@Copilot Copilot AI review requested due to automatic review settings August 29, 2025 15:16
@ChaiF1 ChaiF1 requested a review from a team as a code owner August 29, 2025 15:16
@ansys-cla-bot
Copy link

ansys-cla-bot bot commented Aug 29, 2025

All Contributor License Agreement (CLA) signatures have been captured successfully. Thanks for contributing!

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses issue #4206 by adding handling for "C_FullFile" parameter types in the parameter status interpretation function. The fix prevents errors when encountering C_FullFile parameters that don't follow the standard parameter structure.

  • Adds specific handling for "C_FullFile" parameter type in the interp_star_status function
  • Creates a dictionary entry with only the type field for C_FullFile parameters, avoiding shape parsing issues

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

"type": items[1],
"workspace": int(items[4]),
}
elif items[1] in ["C_FullFile"]:
Copy link
Preview

Copilot AI Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a list with a single element for string comparison is unnecessary. Consider using a direct string comparison: elif items[1] == "C_FullFile": for better readability and performance.

Suggested change
elif items[1] in ["C_FullFile"]:
elif items[1] == "C_FullFile":

Copilot uses AI. Check for mistakes.

"type": items[1],
"workspace": int(items[4]),
}
elif items[1] in ["C_FullFile"]:
Copy link
Preview

Copilot AI Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dictionary structure is inconsistent with other parameter types above, which include additional fields like 'workspace' or 'shape'. Consider adding a comment explaining why C_FullFile parameters only need the type field, or ensure consistency with the expected parameter structure.

Suggested change
elif items[1] in ["C_FullFile"]:
elif items[1] in ["C_FullFile"]:
# C_FullFile parameters only require the 'type' field.
# No additional fields (e.g., 'workspace', 'shape') are needed for this type.

Copilot uses AI. Check for mistakes.

@germa89
Copy link
Collaborator

germa89 commented Sep 1, 2025

@Revathyvenugopal162 the CLA bot is failing with with a wrong user it seems.

@ChaiF1 did you sign the contributors agreement? https://cla.developer.ansys.com

@germa89
Copy link
Collaborator

germa89 commented Sep 1, 2025

@ChaiF1 do you want to add some unit tests to this? Or shall I do it?

@Revathyvenugopal162
Copy link
Contributor

Revathyvenugopal162 commented Sep 1, 2025

@Revathyvenugopal162 the CLA bot is failing with with a wrong user it seems.

@ChaiF1 did you sign the contributors agreement? https://cla.developer.ansys.com

Ansys CLA

@german, in this PR as well, there is an orphan commit, may be because the cla is failing. i m not sure why it is orphan
Screenshot 2025-09-01 at 12 08 16

@clatapie
Copy link
Contributor

clatapie commented Sep 1, 2025

Thank you for your contribution @ChaiF1!

You are going through the CLA process because you are considered as an external contributor. Could you please join the Ansys organization? You can reach out to me if you need any support with that.

@ChaiF1
Copy link
Author

ChaiF1 commented Sep 3, 2025

@Revathyvenugopal162 the CLA bot is failing with with a wrong user it seems.

@ChaiF1 did you sign the contributors agreement? https://cla.developer.ansys.com

Ansys CLA

@germa89 Hi, sorry I forgot to check the status on this PR for a few days. I signed the CLA once I made this branch, so not sure what is going wrong. I am also in the ANSYS organisation since today. Ill check briefly tommorow to see if I can fix the issue of the orphaned commit. As for the unit tests, could you take care of those? I don't really have the knowledge of the codebase to implement those.

@ChaiF1
Copy link
Author

ChaiF1 commented Sep 4, 2025

Bonjour. After looking around a bit I think that the issues with the orphaned commit are solved? I am not sure as I am extremely experienced with git, I only know the basics. If you need anything else from me just let me know!

@Revathyvenugopal162
Copy link
Contributor

Bonjour. After looking around a bit I think that the issues with the orphaned commit are solved? I am not sure as I am extremely experienced with git, I only know the basics. If you need anything else from me just let me know!

Yes, the cla bot is passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants