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 referenced morphs/biophysics: load from included files, add tests, add some error checking #197

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

sanjayankur31
Copy link
Contributor

No description provided.

This is for use-cases where we do not want to modify the original
document at all, for example, visualization.
@sanjayankur31 sanjayankur31 marked this pull request as draft August 9, 2024 16:56
@sanjayankur31
Copy link
Contributor Author

Gotta test this out a little more to confirm it's doing the right things.

@sanjayankur31 sanjayankur31 marked this pull request as ready for review August 12, 2024 14:04
@sanjayankur31
Copy link
Contributor Author

@pgleeson this is ready now I think.

  • it also tries to load referenced bits from included files (but not recursively---should it be looking recursively?)
  • throws errors if it cannot find referenced bits
  • adds a few tests for the function

It overwrites the NeuroMLDocument object by default, but perhaps it shouldn't in case users then continue to use it and end up writing it to file or something without realising that we've changed their model here?

@sanjayankur31 sanjayankur31 changed the title Feat/fix morphs without modifying object fix referenced morphs/biophysics: load from included files, add tests, add some error checking Aug 12, 2024
@pgleeson pgleeson merged commit 2e17bdc into development Aug 13, 2024
19 checks passed
@pgleeson
Copy link
Member

Looks good to me!

@sanjayankur31 sanjayankur31 deleted the feat/fix-morphs-without-modifying-object branch August 13, 2024 11:45
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.

2 participants