Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug(Line): setter method of point_columns #389

Open
swapneelap opened this issue Jul 28, 2023 · 0 comments
Open

Bug(Line): setter method of point_columns #389

swapneelap opened this issue Jul 28, 2023 · 0 comments

Comments

@swapneelap
Copy link
Member

The length of point_columns is fixed to three which is outdated now because we have n dimensional fields.

@point_columns.setter
    def point_columns(self, val):
        if len(val) != 3:
            msg = f"Cannot change column names with a list of lenght {len(val)}."
            raise ValueError(msg)

        self.data = self.data.rename(dict(zip(self.point_columns, val)), axis=1)
        self._point_columns = list(val)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant