Does my simulation code crash the twedit++ when parameter scan is added for the first time?
4 weeks ago by
I have a problem regarding crashing of twedit++ when I try to add parameter scan (see the image; question mark indicates the chrash event).
What do, how to solve? The demo cc3d codes seem to work, play, and add all the parameter scans in the world. The only solution that I can think of at the moment is to do my code again and/or reinstall the compucell3d&twedit.
4 weeks ago by
I changed the folder of my simulation to compucell...\Book_ChapterDemos etc. , and it I got the scan working! Splendid! I wonder how I can give rights to other folders for cc3d sim runs?
29 days ago by
I've also noticed crashes when you try to save the file after defining the parameter scans. In my case though the files are written correctly and can be re-loaded into twedit, or run from the command line.
22 days ago by
21 days ago by
Here is a short video about the crash (that occurs around 56s in the video) when I start to add the parameter scan to my cc3d model in twedit++5.
So the player goes on, but the twedit++5 crashes after attempting to add the scan.
File attached: adding parameter scan results to crash.mp4 (2.12 MB)
6 days ago by
What to do, here is what I also get?:
6 days ago by
If you are using a .piff file you can include it in the .cc3d file by importing into the project in Twedit++. Use "Add resource", tell it the file is a piff, then browse to the file. If the file is already in the Simulation directory Twedit++ will complain that it can't copy the file. Regardless, you just need to make sure there is a copy in the Simulation folder and that that is included in the project's .cc3d file. That way when the various files are all copied for the parameter scan the .piff file goes with them. So, in general, the .piff file should be in the Simulation folder for the CC3D project.
5 days ago by
Thank you for your answer!
I did what you recommended (see peitto.cc3d), and inserted the piff file to .cc3d file separately.
I encountered some problems (see below), but was able to add the parameter scan, and modify it manually line-by-line. So I now have parameter scan, but If I want to add new elements to scan, I need to write them directly to the xml code myself.
Next question would be, how to save the result file in the parameter_scan subfolder (and not a folder, so that the previous results would not wipe the one iteration round older file/s)?
E.g. what to do in steppables.py file to lines like(?):
FileName = "C:/pyintro/positions.csv" # you can add some specific facts to the file if needed
self.File = open(FileName,"w",0) # the 0 is for initial memory 'flush', needed for total print of the file
File attached: peitto.cc3d (407 Bytes)
File attached: errorlog_param_tikka16318.txt (3.22 KB)
Please login to add an answer/comment or follow this question.