Skip to content

[BUG]: the BinaryStar_output and SingleStar_1_output ignored #732

@maxbriel

Description

@maxbriel

Describe the bug
The parameters set in SingleStar_1_output, SingleStar_2_output, and BinaryStar_output are ignored when evolving a binary in isolation. Thus, the requested columns are not outputted.

To Reproduce

sim_prop = sim_props.from_ini('example_ini`, metallicity=1)
star_1 = SingleStar(**{'mass': 31.616785, 'state': 'H-rich_Core_H_burning',
                'natal_kick_array':  [0, 4.190728383757787, 1.1521129697118118, 5.015343794234789]})
star_2 = SingleStar(**{'mass': 26.874267, 'state': 'H-rich_Core_H_burning',
                'natal_kick_array': [None, None, None, None]})
binary = BinaryStar(star_1, star_2, **{'time': 0.0,  'state': 'detached',  'event': 'ZAMS', 
                        'orbital_period':  501.99252706449792,'eccentricity': 0.0}, properties = sim_prop)

binary.evolve()
binary.to_df()
binary.to_oneline_df()

Expected behavior
I expect binary.to_df() and binary.to_oneline_df() to return the columns set in the configuration file. Additional columns should still be allowed to be requested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions