Skip to content

Simplify the PotentialSource build functions. #2

Description

@maxwest-uw

Small refactor.
Right now, to create a PotentialSource object, we have to do

ps = koffi.PotentialSource()
ps.build_from_images_and_xy_positions(pixel_positions, mjds)

it would be much nicer if we could do it like this

# call build directy
ps1 = koffi.PotentialSource()
ps1.build(pixel_positions, mjds, format = "xy")

# build from constructor
ps2 = koffi.PotentialSource(pixel_positions, mjds, format="xy")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions