Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export from MoBi into population simulation with dimensionless parameter state variable #379

Closed
RKasp opened this issue May 2, 2019 · 6 comments

Comments

@RKasp
Copy link

RKasp commented May 2, 2019

Hello all,

Please ignore my posting in the Forum, I think this is the wrong location.

I am having an issue when exporting a MoBi file into the population simulator.

I needed to introduce a dimensionless parameter state variable (fraction) but the export to the population simulator seem not to allow such step. Is there a solution to this problem or can I work around it?

The message: Could not load simulation from ...
Dimension dimensionless per time not available in DimensionFactory.

Picture1

Thank you.

Best regards,

Rudiger

@msevestre
Copy link
Member

@RKasp This seems to be a bug in MoBi. It is creating a dimension Dimensionless per time instead of using the one already available Inversed time

I needed to introduce a dimensionless parameter state variable (fraction)

Can you set the dimension to fraction instead and see if this work?

@RKasp
Copy link
Author

RKasp commented May 2, 2019

I just tried, same error message...
Now it says:
'Dimension fraction per time not available in DimensionFactory.'

@msevestre
Copy link
Member

hum ok.
WE are going to give it a look

In the meantime, here is a workaround

  • goback to your dimensionless parameter
  • Then SAVE the simulation as pkml file (instead of exporting it direclty) for population
  • Open the pkml file with a text editor (notepad ++ for example)
  • Search for Dimensionless per time
  • Replace with Inversed time
  • Go to pksim and select
    image

This should be equivalent

@msevestre
Copy link
Member

@PavelBal
Open-Systems-Pharmacology/Forum#318 (comment)

Can you add your workaround here? Hopefully it's easier than mine :)

@RKasp
Copy link
Author

RKasp commented May 3, 2019

thank you! Your approach works.

@PavelBal
Copy link
Member

PavelBal commented May 3, 2019

My workaround (if still needed):

  1. Open the file "C:\ProgramData\Open Systems Pharmacology\PK-Sim\7.4\OSPSuite.Dimensions.xml" with a text editor
  2. Add the block
  	<Dimension name="Dimensionless per time" baseUnit="/min">
      <BaseRepresentation lengthExponent="0" massExponent="0" timeExponent="-1" electricCurrentExponent="0" temperatureExponent="0" amountExponent="0" luminousIntensityExponent="0" />
      <Units>
        <Unit name="/min" factor="1" />
      </Units>
    </Dimension>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants