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

Sort the obs and product tables #46

Open
bhilbert4 opened this issue Apr 17, 2023 · 0 comments
Open

Sort the obs and product tables #46

bhilbert4 opened this issue Apr 17, 2023 · 0 comments

Comments

@bhilbert4
Copy link
Collaborator

Would be nice if the results shown in the productTable and obsTable were sorted by observation and productFilename. The results would be easier to examine.

It's just a little complicated because the way the code is at the moment, the unwanted rows are not filtered out from the tables until within the call to the write() function. Might be better to cut the tables down to the wanted rows earlier, and then do something like the lines below, and then write the tables to the screen/files.

    # Sort the productTable to make it easier to read
    if "obsnum" in self.productTable.t and "obs_id" in self.productTable.t:
        self.productTable.t.sort_values(by=["obsnum", "obs_id"], ascending=[True, True])
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