Skip to content

fix referenced morphs/biophysics: load from included files, add tests, add some error checking - #197

Merged
pgleeson merged 5 commits into
developmentfrom
feat/fix-morphs-without-modifying-object
Aug 13, 2024
Merged

fix referenced morphs/biophysics: load from included files, add tests, add some error checking#197
pgleeson merged 5 commits into
developmentfrom
feat/fix-morphs-without-modifying-object

Conversation

@sanjayankur31

Copy link
Copy Markdown
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
Copy Markdown
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
sanjayankur31 requested a review from pgleeson August 12, 2024 14:05
@sanjayankur31

Copy link
Copy Markdown
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
@pgleeson

Copy link
Copy Markdown
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