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

Param update #342

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Param update #342

wants to merge 11 commits into from

Conversation

vasvav
Copy link
Contributor

@vasvav vasvav commented Jul 23, 2023

  1. Improved a bit the wording and clarified some core parameters description.
  2. Allowed a simulation and a development parameter to be read from the configuration file.
  3. Reset the default value for the simulation time step to =1.
  4. Reset the min/max bounds of the simulation domain so that it's centralised to origin (0,0,0).
  5. Reset the max displacement parameter to 1% of the simulation domain size.

@vasvav vasvav added the bdm-core Changes in BDM core label Jul 23, 2023
@nicogno
Copy link
Contributor

nicogno commented Jul 24, 2023

@vasvav I would suggest running make format-all in your next commit to begin with, this should solve a few unsuccessful checks

@vasvav
Copy link
Contributor Author

vasvav commented Jul 24, 2023

@vasvav I would suggest running make format-all in your next commit to begin with, this should solve a few unsuccessful checks

many thanks for the tip @nicogno - I learned something new today ;)
btw, how do you think we could proceed to fix these?

@nicogno nicogno closed this Jul 24, 2023
@nicogno nicogno reopened this Jul 24, 2023
@nicogno
Copy link
Contributor

nicogno commented Jul 24, 2023

@vasvav I would suggest running make format-all in your next commit to begin with, this should solve a few unsuccessful checks

many thanks for the tip @nicogno - I learned something new today ;) btw, how do you think we could proceed to fix these?

@vasvav first of all, we have to adapt the unit tests to the new default parameter values

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 4 Code Smells

83.3% 83.3% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@vasvav
Copy link
Contributor Author

vasvav commented Jul 25, 2023

Great job @nicogno 👍 many thanks fixing these issues

@LukasBreitwieser
Copy link
Member

Thanks for your PR @vasvav!
I agree that some default values, naming, or grouping need improvement. Unfortunately, changing the default values of parameters has far-reaching effects, as can be seen by the failing unit tests. It breaks all simulations and tests which don’t explicitly set the changed parameter. Therefore, please verify the correctness of all demos and notebooks.

I would recommend systematically reviewing all parameters and discussing them to minimize the number of backward compatibility-breaking changes. Here are two examples.

First, I think it would be a good idea to replace min_bound and max_bound with, e.g., simulation_space that accepts different values for each dimension and does not enforce a cubic simulation space. The neighbor search indices already support a non-cubic simulation space.

Second, The maximum displacement parameter should be removed. It is only used in the default pair-wise force calculation and not anywhere else. This means that, for example, the chemotaxis behavior can move agents beyond max_displacement. If limiting the displacement is an important feature, then we should add an operation or behavior that enforces it for the whole simulation.

A minor comment: I noticed that many \n were removed from the comments. They were usually added to improve the readability of the generated API reference (https://biodynamo.github.io/api/structbdm_1_1Param.html). Please check the Doxygen output of your PR.

@TobiasDuswald
Copy link
Contributor

Do we have any changelog in the repository? We should consider adding one with this PR such that we can document the effect on backward compatibility.

@LukasBreitwieser
Copy link
Member

Good point Tobias. We created a document to inform users of breaking changes [1], but it has been forgotten. We should revive it.

I also checked the code base for the maximum displacement parameter and realized I was wrong in my previous statement about it being exclusively used in the force implementation itself. It is used in Cell and NeuriteElement and the mechanical interaction implementations on the GPU.

[1] https://github.com/BioDynaMo/biodynamo/blob/master/doc/user_guide/changelog.md

@TobiasDuswald TobiasDuswald added the on-hold on hold, not actively developed label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bdm-core Changes in BDM core on-hold on hold, not actively developed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants