POSYDON-code/POSYDON

BinaryStar.reset() fails after setting BinaryStar.properties

Offen

#483 geöffnet am 16.01.2025

 (1 Kommentar) (0 Reaktionen) (1 zugewiesene Person)Python (35 Forks)auto 404
help wantedquestion

Repository-Metriken

Stars
 (42 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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?

Contributor Guide