You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of the MDL String feature can create file naming conflicts.
Assume that "vm" is a molecule that's being counted in the world.
Also assume that you'd like to count "vm" inside some other object as well.
The first counting of "vm" in the world will generate an output file named "vm.World.dat".
Right now, the MDL counting of "vm" will produce the same file name and MCell won't run:
Fatal error: COUNT statements in the same reaction data output
block should have unique output file names
("./react_data/seed_00001/vm.World.dat" appears more than once)
The problem can be seen in the code from "export_mcell_mdl.py" here:
The output file name for the MDL String is using the "World" name, and this conflicts with counting that same molecule in the World. It's also not really accurate since it's not known where that molecule is being counted (unless we actually parse the MDL string itself). We might replace "World" with "MDL" or "CustomMDL" or something other than "World" as a quick patch. But then, multiple MDL String output definitions using the same molecule would also collide. Another approach would be to specify the full MDL line (file name and everything), but even then there's a problem when running with multiple seeds.
This may require some more careful thinking about how to ensure that proper file names are generated from the MDL output statement.
The text was updated successfully, but these errors were encountered:
The current implementation of the MDL String feature can create file naming conflicts.
Assume that "vm" is a molecule that's being counted in the world.
Also assume that you'd like to count "vm" inside some other object as well.
The first counting of "vm" in the world will generate an output file named "vm.World.dat".
Right now, the MDL counting of "vm" will produce the same file name and MCell won't run:
The problem can be seen in the code from "export_mcell_mdl.py" here:
The output file name for the MDL String is using the "World" name, and this conflicts with counting that same molecule in the World. It's also not really accurate since it's not known where that molecule is being counted (unless we actually parse the MDL string itself). We might replace "World" with "MDL" or "CustomMDL" or something other than "World" as a quick patch. But then, multiple MDL String output definitions using the same molecule would also collide. Another approach would be to specify the full MDL line (file name and everything), but even then there's a problem when running with multiple seeds.
This may require some more careful thinking about how to ensure that proper file names are generated from the MDL output statement.
The text was updated successfully, but these errors were encountered: