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

Fix errors without converting #21

Open
joergbrech opened this issue Oct 5, 2020 · 0 comments
Open

Fix errors without converting #21

joergbrech opened this issue Oct 5, 2020 · 0 comments

Comments

@joergbrech
Copy link
Collaborator

Currently, some common CPACS issues can be fixed during conversion, but this fix is only applied if we update from CPACS 2 to CPACS 3. It would be convenient if we could apply the fixes without conversion, e.g. fix a CPACS 3.1 file.

def upgrade_2_to_3(cpacs_handle, args):
filename = args.input_file
if args.fix_errors:
file_has_changed = uid_manager.fix_invalid_uids(cpacs_handle)
file_has_changed = fix_empty_elements(cpacs_handle) or file_has_changed
file_has_changed = fix_guide_curve_profile_element_names(cpacs_handle) or file_has_changed

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

No branches or pull requests

1 participant