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 bug in matlab/read_MultiCellDS_xml.m #290

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

drbergman
Copy link
Collaborator

@drbergman drbergman commented Sep 3, 2024

Responsive to issue raised in slack re bugs in using the matlab/read_MultiCellDS_xml.m script. Perhaps arose due to changes in multicellds output without synching the matlab implementation. see below for details

Bugs handled:

  • only one simplified_data tag. don't look for another
  • MAT.basic_agents --> MAT.cells

Other changes:

  • refactored matlab/read_MultiCellDS_xml.m to use local functions
  • some renaming of nodes to make more readable
  • use str2double for efficiency (but really to make matlab not cry)
  • eliminate unused variables for efficiency (but also for the not crying thing)
  • == false --> ~
  • more efficient setfield implemented (no matlab, no cry)
  • includes MCDS_constants in MCDS.constants

Bugs handled:
* only one simplified_data tag. don't look for another
* MAT.basic_agents --> MAT.cells

Other changes:
* refactored matlab/read_MultiCellDS_xml.m to use local functions
* some renaming of nodes to make more readable
* use str2double for efficiency (but really to make matlab not cry)
* eliminate unused variables for efficiency (but also for the not crying thing)
* == false --> ~
* more efficient setfield implemented (no matlab, no cry)
* includes MCDS_constants in MCDS.constants
@drbergman
Copy link
Collaborator Author

New other change:

  • add custom-division-sample to Makefile

@rheiland
Copy link
Collaborator

rheiland commented Sep 4, 2024

New other change:

  • add custom-division-sample to Makefile

Duplicate of this I think, but never hurts :) 1f4da4c

@MathCancer MathCancer merged commit a3cc8dc into MathCancer:development Sep 10, 2024
72 checks passed
@drbergman drbergman deleted the fix-matlab-load-xml branch September 17, 2024 03:04
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.

3 participants