-
Notifications
You must be signed in to change notification settings - Fork 88
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
Using a unique function to save both MultiCellDS data and intracellular data #197
Using a unique function to save both MultiCellDS data and intracellular data #197
Conversation
Hmm, let's consider this one a bit more deeply after 1.13.1, just in case. I'm getting "branch conflicts" right now as well ... Thanks! |
on hold for now. |
b55c0ee
to
4631f3a
Compare
Ok I have a brand new proposal ! I updated the initial text |
Hmm, so if I'm reading this correct, this adds a This should work, although we may want to find a way to add it to the standard (for more general intracellular data) in the future. Do you have some sort of convention taht the list of cells in your |
Yes, it adds a new subfield, after the existing simplified_data, before the existing neighbor_graph fields. After thinking about it, I will rename it boolean_intracellular_data, so it won't step on the shoes of other intracellular addons. |
4631f3a
to
451ca72
Compare
Thanks. IN the future, maybe we will extend / stnadardize with something like:
etc. Then we could have more in-depth discussion on how to standardize. But for now, in custom is the right place to put it. That's effectively a beta test until we're convinced it's a good design. Great work, and great suggestion from @elmbeech ! Thanks! |
checks look good. let's approve this PR. thank you! |
Thank you! Honestly, all credit to @vincent-noel! |
This comes as an effort to make the main.cpp of PhysiBoSS (and ultimately intracellular) models standard.
As of now, the only difference is that after saving the MultiCellDS data, I'm also saving a CSV PhysiBoSS state file. And if other intracellular models wants to save state, they have to do the same.
The idea here is to have a wrapper function to include MultiCellDS and intracellular data save, that I calledsave_PhysiCell_Timepoint
and stored inPhysiCell_various_outputs
.There will have no impact on the rest of PhysiCell, since in this PR only PhysiBoSS Cell Lines example is using this wrapper. But ultimately, it would be nice if all projects would use it, so that we get a standard main.cpp file.There is no hurry for this, I just wanted to code it to see what it would look like, and have your opinion about this.At first I though about writing a wrapper to include the intracellular save with the full save, but after discussing with @elmbeech, and thinking more about this, I just need to add it to the MultiCellDS data. Here is what it would look like :
The name of the tag, the filename, are completely open to suggestions.
The filename use to be states_XXXXXXXX.csv, so it's already a breaking change for PhysiCell Studio and pcdl. I guess for them we would have to look at the XML file to see if the new intracellular_data field is there, otherwise check if the old format is there.
Let's talk about this !