POSYDON-code/POSYDON

BinaryStar.reset() fails after setting BinaryStar.properties

Aberta

#483 aberto em 16 de jan. de 2025

 (1 comentário) (0 reação) (1 responsável)Python (35 forks)auto 404
help wantedquestion

Métricas do repositório

Stars
 (42 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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?

Guia do colaborador