Data2Dynamics / d2d

a modeling environment tailored to parameter estimation in dynamical systems
https://github.com/Data2Dynamics/d2d
57 stars 28 forks source link

Error in arSetParallelThreads #178

Closed TugbaAkmanTR closed 2 months ago

TugbaAkmanTR commented 2 months ago

Hello,

I'm using MATLAB R2024a to run d2d software. When I run setup.m of the example Beer_MolBiosyst2014

Error in arSetParallelThreads (line 42) n, ar.config.nTasks, ar.config.nCore);

Error in arCompileAll (line 590) arSetParallelThreads();

Error in Setup_IndiBac (line 10) arCompileAll;

How can I fix this issue?

Thank you.

Best regards, Tuğba Akman, PhD

araue commented 2 months ago

Hi Akman,

I was told that the issue come with one of the last updates. Maybe role back a few versions to one from earlier this year and it should work again.

I hope that someone with R2024a and that made some of the recent updates that causes this issue can address it soon.

Best, Andreas

On 23. Sep 2024, at 14:47, Tuğba Akman @.***> wrote:

Hello,

I'm using MATLAB R2024a to run d2d software. When I run setup.m of the example Beer_MolBiosyst2014

Error in arSetParallelThreads (line 42) n, ar.config.nTasks, ar.config.nCore);

Error in arCompileAll (line 590) arSetParallelThreads();

Error in Setup_IndiBac (line 10) arCompileAll;

How can I fix this issue?

Thank you.

Best regards, Tuğba Akman, PhD

— Reply to this email directly, view it on GitHub https://github.com/Data2Dynamics/d2d/issues/178, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD52GFQBJKOF4OBQ7HTSDO3ZYAEWBAVCNFSM6AAAAABOWACXA6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2DENJSG44TENI. You are receiving this because you are subscribed to this thread.

TugbaAkmanTR commented 2 months ago

Dear Andreas,

I've tried it with MATLAB R2022a & R2020a. Unfortunately, I got the same error.

Best, Tuğba.

araue commented 2 months ago

Ok, please try to go back to a previous code version of the code with git, please try f7d6ad6

Andreas

On 24. Sep 2024, at 10:47, Tuğba Akman @.***> wrote:

Dear Andreas,

I've tried it with MATLAB R2022a. Unfortunately, I got the same error.

Best, Tuğba.

— Reply to this email directly, view it on GitHub https://github.com/Data2Dynamics/d2d/issues/178#issuecomment-2370655361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD52GFWDI6WZC52XPSRH34DZYERLLAVCNFSM6AAAAABOWACXA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZQGY2TKMZWGE. You are receiving this because you commented.

TugbaAkmanTR commented 2 months ago

Hello,

I have copied arFramework3/ImportExport/arExportSBML_FullModel.m file from f7d6ad6 to the corresponding d2d folder in my PC. I ran the code in MATLAB R2020a. I still got the same error:

Reference to non-existent field 'nTasks'.

Error in arSetParallelThreads (line 42) n, ar.config.nTasks, ar.config.nCore);

Error in arCompileAll (line 590) arSetParallelThreads();

Error in Setup_IndiBac (line 10) arCompileAll;

araue commented 2 months ago

You need to use the entire code from the version f7d6ad6, not just a single function.

Best, Andreas

On 25. Sep 2024, at 10:10, Tuğba Akman @.***> wrote:

Hello,

I have copied arFramework3/ImportExport/arExportSBML_FullModel.m file from f7d6ad6 https://github.com/Data2Dynamics/d2d/commit/f7d6ad6b11442229dd637a6f807cdac62106547b to the corresponding d2d folder in my PC. I ran the code in MATLAB R2020a. I still got the same error:

Reference to non-existent field 'nTasks'.

Error in arSetParallelThreads (line 42) n, ar.config.nTasks, ar.config.nCore);

Error in arCompileAll (line 590) arSetParallelThreads();

Error in Setup_IndiBac (line 10) arCompileAll;

— Reply to this email directly, view it on GitHub https://github.com/Data2Dynamics/d2d/issues/178#issuecomment-2373372762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD52GFQMTTNIJQQ4AST4PM3ZYJVYTAVCNFSM6AAAAABOWACXA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTGM3TENZWGI. You are receiving this because you commented.

TugbaAkmanTR commented 2 months ago

It works now. Thank you.

araue commented 2 months ago

Bug need to be fixed in recent version, but this is a work around that works