tvb-root icon indicating copy to clipboard operation
tvb-root copied to clipboard

Weights implicitly converted from float64 to float32

Open mapi1 opened this issue 2 years ago • 1 comments

I observed the following implicit conversion of the connectivity weights, is this known and expected?

sim = Simulator(
    connectivity=Connectivity.from_file(),
    model=JansenRit(),
    coupling=Linear(),
    integrator=EulerDeterministic(dt = 1),
    monitors=[Raw()],
    )
sim.configure()
print("Original:", sim.connectivity.weights.dtype)
print("At history level:", sim.history.es_weights.dtype)
print("At history level:", sim.history.nnz_weights.dtype)

Gives:

Original: float64
At history level: float32
At history level: float32

mapi1 avatar Dec 13 '23 14:12 mapi1

Thanks for opening the issue. This may be expected and should not be problematic. Did it create a problem for you?

maedoc avatar Apr 23 '25 13:04 maedoc