Package: lsst-efd-client
LSST EFD ClientUtility classes for working with the LSST EFD.Free software: MIT licenseFeaturesThe clientEfdClient, has several useful functions.get_topics: Return the topics in the EFD.get_fields: Return the fields in a particular topicbuild_time_range_query: Build an InfluxQL query for a topic and time rangeselect_time_series: Return a DataFrame containing results of a time range queryselect_packed_time_series: Return a DataFrame with high cadence telemetry expanded into a single DataFrame.select_top_n: Return a DataFrame with the results of just the most recent rows.get_schema: Get metadata for the fields in a particular topic.There are also some utilities for dealing with results of queriesmerge_packed_time_series: Takes a dataframe with records that have multiple samples per entry and returns a dataframe with one record per sample.rendezvous_dataframes: Extend on dataframe with data from another dataframe using the closest record in time in the past, in the future, or nearest overall.See example notebookshere.For more information, see the onlinedocs.CONTRIBUTINGFor information on contributing to this project seethispage.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-12-23)First release on PyPI.0.2.0 (2019-01-15)Minimal functionality in place.Docstrings complete.0.3.0 (2019-01-31)Unit tests added.0.4.0 (2019-01-31)Very minor doc updates.Accidently pushed minor version when patch was meant.0.5.0 (2020-05-29)Switch to the segwarides based credentials.0.6.0 (2021-02-11)Fix bug in listing possible endpointsAdd some utility functionality and speed up unpacking packed time series (thank you RHL)0.6.4 (2021-02-15)Fix a regression that causes an exception when the name of one column is the same as the start of the name of another columnAdd a test for the regression0.7.0 (2021-03-24)Add the get_schema method to fetch metadata about topic fieldsAdd a test for the schema parser0.8.2 (2021-05-25)Deal gracefully with topics that have no description or units (Thanks Angelo!)Add a parameter to allow a time threshold when selecting top N (Thanks Michael!)0.8.3 (2021-06-11)Add column specifying if a field in the schema is array-like.Check for both conventions indicating unitless columns when creating astropy units.0.9.0 (2021-10-05)This changes the convention to using UTC as the internal representation.
This mirrors a change in the influxDB to store index timestamps as UTC.
There is a switch to convert the index from TAI to UTC, but the default is to assume UTC everywhere.0.9.1 (2021-10-28)Fix various bugs left over from the UTC conversions.
The most important of these is correcting how the index for packed time series is handled.
The other is in the implementation fow how we attempt to handle legacy databases with the index still in TAI.0.10.0 (2021-11-18)Change how ports are handled.
This forces the port to be sent with the rest of the auth information and removes the ability to pass an override port.0.10.2 (2022-05-03)Allow astropy to raise an exception for malformed units in the topic schema.0.11.0 (2022-05-24)Updates to API calls to handle SAL 7 change to indexed component ID field.Add timeout option to the EFD client.
Set theaiohttp.clienttimeout when working with chunked queries. Set a default timeout of 900 seconds.0.12.0 (2022-07-27)The auth helper can now use a path attribute to connect to an InfluxDB instance.0.13.0 (2023-06-26)EfdClientnow accepts non-UTC astropy.time.Time values (converting them, if necessary).Fix unit tests:Updatecasettes/*.yamlto include “path” as a returned value.Change fixtureefd_clientto an async context managermake_efd_clientand call it explicitly.Importvcrexplicitly and configure it so that it fails if the specified cassette files cannot be found or used.
This avoids two sources of mysterious failures.Consolidate a few tests to make it clearer that they are testing the same thing, and to reduce the number of cassette files needed.Run black and isort on the code.0.13.1 (2023-07-01)numpy 1.25.0 breaks compatibility with aioinflux.
Pin numpy to version 1.23.5