POSYDON-code/POSYDON

BinaryStar.reset() fails after setting BinaryStar.properties

Open

#483 opened on Jan 16, 2025

 (1 comment) (0 reactions) (1 assignee)Python (35 forks)auto 404
help wantedquestion

Repository metrics

Stars
 (42 stars)
PR merge metrics
 (PR metrics pending)

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?

Contributor guide