POSYDON-code/POSYDON

BinaryStar.reset() fails after setting BinaryStar.properties

Aperta

#483 aperta il 16 gen 2025

 (1 commento) (0 reazioni) (1 assegnatario)Python (35 fork)auto 404
help wantedquestion

Metriche repository

Star
 (42 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

When recreating binary from a dataframe, reset() fails with the following error after setting sim_pop.

B = BinaryStar.from_df(example_binary)
B.to_df()
B.properties = sim_pop
B.reset()

It looks like a value is being set as a float that should have a history.

Removing B.properties = sim_pop allows reset to properly work. How should we approach this issue?

Guida contributor