Commit 7c496a76 authored by julian.gethmann's avatar julian.gethmann

Rename sul_field -> sul_gap

parent 7f6cfa7a
......@@ -4,12 +4,13 @@ Changelog
* [TODO] Add the raw PV name option to the command line interface
0.7.2 (2018-)
0.7.2 (2018-05-25)
------------------
* remove not implemented argument `show_url` of `dump_cassandra_data()`
* write tests that are independent of access to the IBPT network
* move directory structure to new one (`cassandra`->`src/cassandra`) to complete `PyScaffold` structure
* Remove not implemented argument `show_url` of `dump_cassandra_data()`
* Write tests that are independent of access to the IBPT network
* Move directory structure to new one (`cassandra`->`src/cassandra`) to complete `PyScaffold` structure
* Upgrade PyScaffold to be compatible with new setuptools versions
* Rename `sul_field` to `sul_gap`, because that is what is returned!
0.7.1 (2017-10-31)
------------------
......
......@@ -49,6 +49,9 @@ class Pvs(object):
Attributes:
pv (dict): PV shortcuts
.. versionchanged:: 0.7.2
Rename sul_field to sul_gap
"""
pv = {
"fill": "A:SR:OperationStatus:01:FillNumber",
......@@ -60,7 +63,7 @@ class Pvs(object):
"nu_y": "A:SR:BBB:01:Y:SRAM:PEAKTUNE2",
"nu_x": "A:SR:BBB:01:X:SRAM:PEAKTUNE2",
"catact_field": "A:ID-S3:Wig:01:Position:Readback",
"sul_field": "A:ID-S2:Wig:01:Position:Readback",
"sul_gap": "A:ID-S2:Wig:01:Position:Readback",
"rf_old": "ACS:RFSG_D.01:frequency",
"rf": "A:TI:SignGen:SR-01:Frequency",
"q1_old": "ACS:PQ1_S.01:current",
......@@ -241,11 +244,11 @@ class CassandraHelper(object):
else:
return ret
JSONData = List[Optional[Dict[str, Union[int, Dict[str, str]]]]]
@staticmethod
def cassandra_json_to_timeseries(
json_data, # type: List[Optional[Dict[str, Union[int, Dict[str, str]]]]]
):
# type: (...) -> NamedTuple("dataset", [List[datetime.datetime], List[Union[List[float], float]]])
def cassandra_json_to_timeseries(json_data):
# type: (JSONData) -> NamedTuple("dataset", [List[datetime.datetime], List[Union[List[float], float]]])
"""Return lists of timestamps and values for given Cassandra's JSON data.
Args:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment