Skip to content

Some installs include unnecessary elasticities #9

@hsauro

Description

@hsauro

I have installed the toolbox on 4 machines, one of which is a clean install. Three of the machines run 3.8 (on clean machine), 3.11 ,and 3.12 python, a fourth also runs 3.11. They are a mixture of Windows 10 and windows 11. The three installs create expressions with unnecessary elasticities, the fourth leaves them out, giving the expected expression. All machines run the same maxima version, 5.48.1

I am running the same pysces and toolbox on each machine, versions 1.2.3, and 1.1.0

On the fourth machine running python 3.11 I get the correct expression without the unnecessary elasticities. I have no idea why this is happening.

The correct 3.11 version gives me the coefficient numerator (C^S3_V1):

J_V1ecV3_S1ecV4_S2

This is correct.

For the other three machines it gives me

J_V1ecV3_S1ecV4_S2 - J_V1ecV3_S1ecV5_S2 - J_V1ecV3_S2ecV4_S1 + J_V1ecV3_S2ecV5_S1 + J_V1ecV4_S1ecV5_S2 - J_V1ecV4_S2ecV5_S1

You'll notice its much longer. it includes the correct term but also has terms with elasticities that reference widely separate species and reactions, eg eeV5_S1, which shouldn't be there. I enclose the script I run

import pysces
import psctb
mod = pysces.model('JoesModel', dir='.')
sc = psctb.Symca(mod)
sc.do_symca()

print('Value from symca:')
print (sc.cc_results.ccS3_V1)

Can you try this on your set up to see what you get? I attached the model (as a txt file because GitHub won't accept psc files). It's not a show stopper for me as I have a version that works one one machine but its an odd issue and I can't think of any other differences between the machines.

JoesModel.txt

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