-
Notifications
You must be signed in to change notification settings - Fork 6
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
Create g32influx script #153
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add argparse for passing in targets to move out of testing phase. Swap to a nestable progress bar, and add documentation.
This incorporates several changes from #107, but with some modifications. Most notably it includes format_timeline(), which comes with a dramatic performance increase, both by publishing all fields that share a timeline simultaneously and by utilizing InfluxDB's line protocol, which is faster than the previously used json based protocol. We maintain the use of a local sqlite DB instead of switching to using InfluxDB to track published .g3 files. We also remove the use of an additional md5sum tag on data uploaded with this script. Many thanks to @ahincks for the work this was based on.
BrianJKoopman
force-pushed
the
g32influx-script
branch
from
July 17, 2020 17:56
63d852a
to
7c5a42e
Compare
Since this exclusively adds a new feature, with no changes to existing code or conflicts with existing functionality -- and would be immediately useful to work on SOCS -- I'm going to go ahead and merge this. Feel free to open bug reports/feature requests related to |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the
g32influx
script, which publishes data from .g3 files to InfluxDB.Motivation and Context
The script was originally motivated by the need to upload old .g3 files from before the InfluxdB Publisher was written and InfluxDB was even in use. Now it is motivated by the desire to re-upload entire sets of .g3 files to a fresh InfluxDB instance in order to fix invalid field names previously written to .g3 files. (See simonsobs/socs#87)
How Has This Been Tested?
This has been run on recent subset of HK data from the Yale OCS setup. This includes v0 and v1 .g3 files. Data was then visually inspected in Grafana, viewing the new database with uploaded data from .g3 file.
Types of changes
Checklist:
develop
branch.