the-virtual-brain / tvb-root

Main TVB codebase
https://thevirtualbrain.org
Other
122 stars 105 forks source link

Weights implicitly converted from float64 to float32 #698

Open mapi1 opened 10 months ago

mapi1 commented 10 months ago

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