8000 Make a target table product by jeanconn · Pull Request #264 · sot/mica · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make a target table product #264

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

Merged
merged 7 commits into from
Nov 10, 2021
Merged

Make a target table product #264

merged 7 commits into from
Nov 10, 2021

Conversation

jeanconn
Copy link
Contributor
@jeanconn jeanconn commented Sep 20, 2021

Description

Make a target table product

Testing

  • Passes unit tests on linux
  • Functional testing - added tiny read/write unit test as functional test

@jeanconn jeanconn changed the title WIP: Make a target table product Make a target table product Nov 1, 2021
@jeanconn jeanconn requested a review from taldcroft November 1, 2021 13:23
============================= ================================================================

The hdf5 in-kernel searches may be faster working with the table directly for some
operations.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it would be fairly trivial to include the Table.read_where args in this function. Then just include links to relevant docs like https://www.pytables.org/usersguide/condition_syntax.html and of course the read_where docstring. For the code here still use read unless one of those read_where args is not None.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Seems fine but I note that including read_where seems to throw a bunch of these warnings

mica/archive/tests/test_target_table.py::test_write_read_table
  /Users/jean/miniconda3/envs/ska3/lib/python3.8/site-packages/tables/path.py:155: NaturalNameWarning: object name is not a valid Python identifier: 'mon_max.mask'; it does not match the pattern ``^[a-zA-Z_][a-zA-Z0-9_]*$``; you will not be able to use natural naming to access this object; using ``getattr()`` will still work, though
    check_attribute_name(name)

Not sure if we want to shut those up or ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well never mind for now. Let's go for the incremental development and just get something in.

@jeanconn
Copy link
Contributor Author
jeanconn commented Nov 8, 2021

Let's lower-case all the column names.

Copy link
Member
@taldcroft taldcroft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm planning on making a few changes, but we can go with this now. (I just want to hack on some fun little thing instead of the endless manager tasks of late).

============================= ================================================================

The hdf5 in-kernel searches may be faster working with the table directly for some
operations.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well never mind for now. Let's go for the incremental development and just get something in.

@jeanconn
Copy link
Contributor Author

I'm not actually seeing which piece you are meaning for "never mind for now". Do you mean you want to pull out the read_where as a bit problematic? It still works.

@taldcroft taldcroft merged commit fd5f92f into master Nov 10, 2021
@taldcroft taldcroft deleted the target-table branch November 10, 2021 16:15
@taldcroft
Copy link
Member

I think messages got crossed up in threads. All good.

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

Successfully merging this pull request may close these issues.

2 participants
0