Skip to content

Simulator.py throws error when finding output directory #47

@Deepika-Parthasarathy

Description

@Deepika-Parthasarathy

(celmod) dinky@DESKTOP-DGB9GV7:~/CellModeller$ python3 Scripts/batch.py Examples/ex1_simpleGrowth.py Select OpenCL platform: press 0 for <pyopencl.Platform 'Portable Computing Language' at 0x7f702676d008> Platform Number: 0 Select OpenCL device: press 0 for <pyopencl.Device 'pthread-Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz' on 'Portable Computing Language' at 0x5568594c50e0> Device Number: 0 Set up OpenCL context: Platform: Portable Computing Language Device: pthread-Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz Importing model ex1_simpleGrowth Traceback (most recent call last): File "/home/dinky/CellModeller/Scripts/batch.py", line 54, in <module> main() File "/home/dinky/CellModeller/Scripts/batch.py", line 50, in main simulate(moduleName, platnum, devnum) File "/home/dinky/CellModeller/Scripts/batch.py", line 16, in simulate sim = Simulator(modname, 0.025, clPlatformNum=platform, clDeviceNum=device, saveOutput=True) File "/home/dinky/CellModeller/CellModeller/Simulator.py", line 109, in __init__ self.setSaveOutput(saveOutput) File "/home/dinky/CellModeller/CellModeller/Simulator.py", line 117, in setSaveOutput self.init_data_output() File "/home/dinky/CellModeller/CellModeller/Simulator.py", line 135, in init_data_output os.mkdir(self.outputDirPath) FileNotFoundError: [Errno 2] No such file or directory: 'data/ex1_simpleGrowth-23-08-16-11-38'

I got this error running both in batch mode and from the GUI when I toggle the 'save pickles'
I understand it is unable to create a directory or find it. But I am not sure on how to go about debugging this.
I am on ubuntu LTS 22.04 and I am using VScode for debugging. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions