def __init__(self,
              series,
              stype,
              start=None,
              end=None,
              device=None,
              footprint=None):
     super(IEC60063ValueSeries, self).__init__(stype, start, end, device,
                                               footprint)
     self._series = iec60063.get_series(series)
     self._ostrs = iec60063.get_ostr(stype)
示例#2
0
文件: views.py 项目: chintal/tendril
def get_iec60063_contextpart(stype, series, start=None, end=None):
    return {
        "iec60063vals": [
            i
            for i in iec60063.gen_vals(
                iec60063.get_series(series), iec60063.get_ostr(stype), start, end  # noqa  # noqa
            )
        ],
        "iec60063stype": stype,
        "iec60063series": series,
        "iec60063start": start,
        "iec60063end": end,
    }
示例#3
0
def get_iec60063_contextpart(stype, series, start=None, end=None):
    return {
        "iec60063vals": [
            i for i in iec60063.gen_vals(
                iec60063.get_series(series),  # noqa
                iec60063.get_ostr(stype),  # noqa
                start,
                end)
        ],
        "iec60063stype":
        stype,
        "iec60063series":
        series,
        "iec60063start":
        start,
        "iec60063end":
        end,
    }
示例#4
0
文件: series.py 项目: chintal/tendril
 def __init__(self, series, stype, start=None, end=None,
              device=None, footprint=None):
     super(IEC60063ValueSeries, self).__init__(stype, start, end,
                                               device, footprint)
     self._series = iec60063.get_series(series)
     self._ostrs = iec60063.get_ostr(stype)