Page 1 of 1

Does the usage of the Shape may affect mV readouts?

Posted: Mon Jun 29, 2020 6:29 am
by ziemek
Hi there!

I use a model of Combe et al. 2018: When I removed all tmpo2 variable usage from cell_setup.hoc:
  • Removing this part and all other occurences of tmpo2 variable:

Code: Select all

objref tmpo2
tmpo2=new Shape()
I discovered that in the soma after ~500 ms there are discrepancies in mV readouts:
  • -15.816405568815716 - with Shape (with variable tmpo2)
  • -15.828809384418346 - without Shape (without variable tmpo2)
I did all readouts through Python API, so it may also affect it.

Obviously it may be related to the rest of the code, but I think that tmpo2's Shape is quite independent from the rest of the code.

So does the usage of the Shape may affect mV readouts?

Re: Does the usage of the Shape may affect mV readouts?

Posted: Mon Jun 29, 2020 12:42 pm
by ted
Before commenting I will need to see this for myself. The model authors describe more than one way to launch the model. Exactly what did you do?

Re: Does the usage of the Shape may affect mV readouts?

Posted: Fri Jul 03, 2020 9:47 am
by ziemek
Dear Ted,

I checked once more the code and I discovered that I use cvode(True), which means that there is a variable timestep.

My current readouts for the same model but different compartment are:

Code: Select all

constant timestep
with shape: ms: 50.00000000000341 mV: -8.280244904579009
no shape:   ms: 50.00000000000341 mV: -8.28024490457921

Variable timestep:
with shape: ms: 50.16482149700094 mV: -8.417091046804176
no shape:   ms: 50.06825794430341 mV: -8.401428051397344
As you can see - for the constant timestep - there is almost identical value of mV. However for the variable timestep - the step differ ~0.1 ms and the readout ~0.016 mV. For this experiment I took the first mV readout which passed 50ms.

So I wonder why the usage of Shape() changes a little bit the timestep?

Re: Does the usage of the Shape may affect mV readouts?

Posted: Fri Jul 03, 2020 10:45 am
by ted
See my message from June 29.

Re: Does the usage of the Shape may affect mV readouts?

Posted: Thu Jul 09, 2020 2:35 pm
by ted
Did you resolve the problem yourself, or do you still have a question?

Re: Does the usage of the Shape may affect mV readouts?

Posted: Sat Jul 18, 2020 3:34 pm
by ziemek
Sorry Ted, I tried to prepare the code for you and make sure that there is no interference from the core I wrote, but then I switched to a different task, and left it for later, but I will prepare the code next week and let you know.