POSYDON-code/POSYDON

BinaryStar.reset() fails after setting BinaryStar.properties

Ouverte

#483 ouverte le 16 janv. 2025

 (1 commentaire) (0 réaction) (1 personne assignée)Python (35 forks)auto 404
help wantedquestion

Métriques du dépôt

Stars
 (42 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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?

Guide contributeur