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

Update Include file paths from relative to absolute when files are moved by write_out_case #266

Open
jonnyh404 opened this issue Feb 1, 2024 · 0 comments
Labels
bug Something isn't working Nexus Issues related to the Nexus simulator

Comments

@jonnyh404
Copy link
Collaborator

Describe the bug
Adding a nexus case using model.write_out_case does not update the include file paths within a modified file causing issues with relative paths.

To Reproduce
Modify a file_content_as_list attribute on a NexusFile.
Set file modified status _file_modified_set(True)
call model.write_out_case(new_file_path=path, new_include_file_location='include_files')

Expected behavior
Expected behaviour is to also update the paths in the NexusFile when writing to the new location to account for the existing files relative paths.

@jonnyh404 jonnyh404 added bug Something isn't working Nexus Issues related to the Nexus simulator labels Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Nexus Issues related to the Nexus simulator
Projects
None yet
Development

No branches or pull requests

1 participant