nominal-api 0.971.0__py3-none-any.whl → 0.972.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nominal_api/__init__.py +1 -1
- nominal_api/_impl.py +253 -4
- nominal_api/scout_compute_api/__init__.py +6 -0
- nominal_api/scout_compute_resolved_api/__init__.py +2 -0
- {nominal_api-0.971.0.dist-info → nominal_api-0.972.0.dist-info}/METADATA +1 -1
- {nominal_api-0.971.0.dist-info → nominal_api-0.972.0.dist-info}/RECORD +8 -8
- {nominal_api-0.971.0.dist-info → nominal_api-0.972.0.dist-info}/WHEEL +0 -0
- {nominal_api-0.971.0.dist-info → nominal_api-0.972.0.dist-info}/top_level.txt +0 -0
nominal_api/__init__.py
CHANGED
nominal_api/_impl.py
CHANGED
|
@@ -50780,6 +50780,7 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
|
|
|
50780
50780
|
_aggregate_under_ranges: Optional["scout_compute_api_AggregateUnderRangesSeries"] = None
|
|
50781
50781
|
_filter_by_expression: Optional["scout_compute_api_FilterByExpressionSeries"] = None
|
|
50782
50782
|
_enum_to_numeric: Optional["scout_compute_api_EnumToNumericSeries"] = None
|
|
50783
|
+
_refprop: Optional["scout_compute_api_RefpropSeries"] = None
|
|
50783
50784
|
|
|
50784
50785
|
@builtins.classmethod
|
|
50785
50786
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -50820,7 +50821,8 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
|
|
|
50820
50821
|
'select_newest_points': ConjureFieldDefinition('selectNewestPoints', scout_compute_api_SelectNewestPointsSeries),
|
|
50821
50822
|
'aggregate_under_ranges': ConjureFieldDefinition('aggregateUnderRanges', scout_compute_api_AggregateUnderRangesSeries),
|
|
50822
50823
|
'filter_by_expression': ConjureFieldDefinition('filterByExpression', scout_compute_api_FilterByExpressionSeries),
|
|
50823
|
-
'enum_to_numeric': ConjureFieldDefinition('enumToNumeric', scout_compute_api_EnumToNumericSeries)
|
|
50824
|
+
'enum_to_numeric': ConjureFieldDefinition('enumToNumeric', scout_compute_api_EnumToNumericSeries),
|
|
50825
|
+
'refprop': ConjureFieldDefinition('refprop', scout_compute_api_RefpropSeries)
|
|
50824
50826
|
}
|
|
50825
50827
|
|
|
50826
50828
|
def __init__(
|
|
@@ -50862,10 +50864,11 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
|
|
|
50862
50864
|
aggregate_under_ranges: Optional["scout_compute_api_AggregateUnderRangesSeries"] = None,
|
|
50863
50865
|
filter_by_expression: Optional["scout_compute_api_FilterByExpressionSeries"] = None,
|
|
50864
50866
|
enum_to_numeric: Optional["scout_compute_api_EnumToNumericSeries"] = None,
|
|
50867
|
+
refprop: Optional["scout_compute_api_RefpropSeries"] = None,
|
|
50865
50868
|
type_of_union: Optional[str] = None
|
|
50866
50869
|
) -> None:
|
|
50867
50870
|
if type_of_union is None:
|
|
50868
|
-
if (aggregate is not None) + (arithmetic is not None) + (bit_operation is not None) + (count_duplicate is not None) + (cumulative_sum is not None) + (derivative is not None) + (integral is not None) + (max is not None) + (mean is not None) + (min is not None) + (offset is not None) + (product is not None) + (raw is not None) + (channel is not None) + (derived is not None) + (resample is not None) + (rolling_operation is not None) + (signal_filter is not None) + (sum is not None) + (scale is not None) + (time_difference is not None) + (absolute_timestamp is not None) + (time_range_filter is not None) + (time_shift is not None) + (unary_arithmetic is not None) + (binary_arithmetic is not None) + (union is not None) + (unit_conversion is not None) + (value_difference is not None) + (filter_transformation is not None) + (threshold_filter is not None) + (approximate_filter is not None) + (select1d_array_index is not None) + (select_newest_points is not None) + (aggregate_under_ranges is not None) + (filter_by_expression is not None) + (enum_to_numeric is not None) != 1:
|
|
50871
|
+
if (aggregate is not None) + (arithmetic is not None) + (bit_operation is not None) + (count_duplicate is not None) + (cumulative_sum is not None) + (derivative is not None) + (integral is not None) + (max is not None) + (mean is not None) + (min is not None) + (offset is not None) + (product is not None) + (raw is not None) + (channel is not None) + (derived is not None) + (resample is not None) + (rolling_operation is not None) + (signal_filter is not None) + (sum is not None) + (scale is not None) + (time_difference is not None) + (absolute_timestamp is not None) + (time_range_filter is not None) + (time_shift is not None) + (unary_arithmetic is not None) + (binary_arithmetic is not None) + (union is not None) + (unit_conversion is not None) + (value_difference is not None) + (filter_transformation is not None) + (threshold_filter is not None) + (approximate_filter is not None) + (select1d_array_index is not None) + (select_newest_points is not None) + (aggregate_under_ranges is not None) + (filter_by_expression is not None) + (enum_to_numeric is not None) + (refprop is not None) != 1:
|
|
50869
50872
|
raise ValueError('a union must contain a single member')
|
|
50870
50873
|
|
|
50871
50874
|
if aggregate is not None:
|
|
@@ -50979,6 +50982,9 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
|
|
|
50979
50982
|
if enum_to_numeric is not None:
|
|
50980
50983
|
self._enum_to_numeric = enum_to_numeric
|
|
50981
50984
|
self._type = 'enumToNumeric'
|
|
50985
|
+
if refprop is not None:
|
|
50986
|
+
self._refprop = refprop
|
|
50987
|
+
self._type = 'refprop'
|
|
50982
50988
|
|
|
50983
50989
|
elif type_of_union == 'aggregate':
|
|
50984
50990
|
if aggregate is None:
|
|
@@ -51165,6 +51171,11 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
|
|
|
51165
51171
|
raise ValueError('a union value must not be None')
|
|
51166
51172
|
self._enum_to_numeric = enum_to_numeric
|
|
51167
51173
|
self._type = 'enumToNumeric'
|
|
51174
|
+
elif type_of_union == 'refprop':
|
|
51175
|
+
if refprop is None:
|
|
51176
|
+
raise ValueError('a union value must not be None')
|
|
51177
|
+
self._refprop = refprop
|
|
51178
|
+
self._type = 'refprop'
|
|
51168
51179
|
|
|
51169
51180
|
@builtins.property
|
|
51170
51181
|
def aggregate(self) -> Optional["scout_compute_api_AggregateNumericSeries"]:
|
|
@@ -51314,6 +51325,10 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
|
|
|
51314
51325
|
def enum_to_numeric(self) -> Optional["scout_compute_api_EnumToNumericSeries"]:
|
|
51315
51326
|
return self._enum_to_numeric
|
|
51316
51327
|
|
|
51328
|
+
@builtins.property
|
|
51329
|
+
def refprop(self) -> Optional["scout_compute_api_RefpropSeries"]:
|
|
51330
|
+
return self._refprop
|
|
51331
|
+
|
|
51317
51332
|
def accept(self, visitor) -> Any:
|
|
51318
51333
|
if not isinstance(visitor, scout_compute_api_NumericSeriesVisitor):
|
|
51319
51334
|
raise ValueError('{} is not an instance of scout_compute_api_NumericSeriesVisitor'.format(visitor.__class__.__name__))
|
|
@@ -51391,6 +51406,8 @@ class scout_compute_api_NumericSeries(ConjureUnionType):
|
|
|
51391
51406
|
return visitor._filter_by_expression(self.filter_by_expression)
|
|
51392
51407
|
if self._type == 'enumToNumeric' and self.enum_to_numeric is not None:
|
|
51393
51408
|
return visitor._enum_to_numeric(self.enum_to_numeric)
|
|
51409
|
+
if self._type == 'refprop' and self.refprop is not None:
|
|
51410
|
+
return visitor._refprop(self.refprop)
|
|
51394
51411
|
|
|
51395
51412
|
|
|
51396
51413
|
scout_compute_api_NumericSeries.__name__ = "NumericSeries"
|
|
@@ -51548,6 +51565,10 @@ class scout_compute_api_NumericSeriesVisitor:
|
|
|
51548
51565
|
def _enum_to_numeric(self, enum_to_numeric: "scout_compute_api_EnumToNumericSeries") -> Any:
|
|
51549
51566
|
pass
|
|
51550
51567
|
|
|
51568
|
+
@abstractmethod
|
|
51569
|
+
def _refprop(self, refprop: "scout_compute_api_RefpropSeries") -> Any:
|
|
51570
|
+
pass
|
|
51571
|
+
|
|
51551
51572
|
|
|
51552
51573
|
scout_compute_api_NumericSeriesVisitor.__name__ = "NumericSeriesVisitor"
|
|
51553
51574
|
scout_compute_api_NumericSeriesVisitor.__qualname__ = "NumericSeriesVisitor"
|
|
@@ -53706,6 +53727,120 @@ scout_compute_api_Reference.__qualname__ = "Reference"
|
|
|
53706
53727
|
scout_compute_api_Reference.__module__ = "nominal_api.scout_compute_api"
|
|
53707
53728
|
|
|
53708
53729
|
|
|
53730
|
+
class scout_compute_api_RefpropProperty(ConjureEnumType):
|
|
53731
|
+
"""Supported properties for REFPROP calculations
|
|
53732
|
+
"""
|
|
53733
|
+
|
|
53734
|
+
TEMPERATURE = 'TEMPERATURE'
|
|
53735
|
+
'''TEMPERATURE'''
|
|
53736
|
+
PRESSURE = 'PRESSURE'
|
|
53737
|
+
'''PRESSURE'''
|
|
53738
|
+
MASS_DENSITY = 'MASS_DENSITY'
|
|
53739
|
+
'''MASS_DENSITY'''
|
|
53740
|
+
MASS_SPECIFIC_ENTHALPY = 'MASS_SPECIFIC_ENTHALPY'
|
|
53741
|
+
'''MASS_SPECIFIC_ENTHALPY'''
|
|
53742
|
+
MASS_SPECIFIC_INTERNAL_ENERGY = 'MASS_SPECIFIC_INTERNAL_ENERGY'
|
|
53743
|
+
'''MASS_SPECIFIC_INTERNAL_ENERGY'''
|
|
53744
|
+
MASS_SPECIFIC_ENTROPY = 'MASS_SPECIFIC_ENTROPY'
|
|
53745
|
+
'''MASS_SPECIFIC_ENTROPY'''
|
|
53746
|
+
UNKNOWN = 'UNKNOWN'
|
|
53747
|
+
'''UNKNOWN'''
|
|
53748
|
+
|
|
53749
|
+
def __reduce_ex__(self, proto):
|
|
53750
|
+
return self.__class__, (self.name,)
|
|
53751
|
+
|
|
53752
|
+
|
|
53753
|
+
scout_compute_api_RefpropProperty.__name__ = "RefpropProperty"
|
|
53754
|
+
scout_compute_api_RefpropProperty.__qualname__ = "RefpropProperty"
|
|
53755
|
+
scout_compute_api_RefpropProperty.__module__ = "nominal_api.scout_compute_api"
|
|
53756
|
+
|
|
53757
|
+
|
|
53758
|
+
class scout_compute_api_RefpropSeries(ConjureBeanType):
|
|
53759
|
+
"""Computes the output property given input properties for the substance using REFPROP. Initial implementation
|
|
53760
|
+
only expects two input properties.
|
|
53761
|
+
"""
|
|
53762
|
+
|
|
53763
|
+
@builtins.classmethod
|
|
53764
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
53765
|
+
return {
|
|
53766
|
+
'inputs': ConjureFieldDefinition('inputs', Dict[scout_compute_api_RefpropProperty, scout_compute_api_NumericSeries]),
|
|
53767
|
+
'output_property': ConjureFieldDefinition('outputProperty', scout_compute_api_RefpropProperty),
|
|
53768
|
+
'substance': ConjureFieldDefinition('substance', scout_compute_api_RefpropSubstance),
|
|
53769
|
+
'interpolation_configuration': ConjureFieldDefinition('interpolationConfiguration', OptionalTypeWrapper[scout_compute_api_InterpolationConfiguration])
|
|
53770
|
+
}
|
|
53771
|
+
|
|
53772
|
+
__slots__: List[str] = ['_inputs', '_output_property', '_substance', '_interpolation_configuration']
|
|
53773
|
+
|
|
53774
|
+
def __init__(self, inputs: Dict["scout_compute_api_RefpropProperty", "scout_compute_api_NumericSeries"], output_property: "scout_compute_api_RefpropProperty", substance: "scout_compute_api_RefpropSubstance", interpolation_configuration: Optional["scout_compute_api_InterpolationConfiguration"] = None) -> None:
|
|
53775
|
+
self._inputs = inputs
|
|
53776
|
+
self._output_property = output_property
|
|
53777
|
+
self._substance = substance
|
|
53778
|
+
self._interpolation_configuration = interpolation_configuration
|
|
53779
|
+
|
|
53780
|
+
@builtins.property
|
|
53781
|
+
def inputs(self) -> Dict["scout_compute_api_RefpropProperty", "scout_compute_api_NumericSeries"]:
|
|
53782
|
+
"""A map that maps a REFPROP property to its numeric series.
|
|
53783
|
+
"""
|
|
53784
|
+
return self._inputs
|
|
53785
|
+
|
|
53786
|
+
@builtins.property
|
|
53787
|
+
def output_property(self) -> "scout_compute_api_RefpropProperty":
|
|
53788
|
+
"""The desired output property. This should not be one of the input properties.
|
|
53789
|
+
"""
|
|
53790
|
+
return self._output_property
|
|
53791
|
+
|
|
53792
|
+
@builtins.property
|
|
53793
|
+
def substance(self) -> "scout_compute_api_RefpropSubstance":
|
|
53794
|
+
"""The substance for REFPROP calculations.
|
|
53795
|
+
"""
|
|
53796
|
+
return self._substance
|
|
53797
|
+
|
|
53798
|
+
@builtins.property
|
|
53799
|
+
def interpolation_configuration(self) -> Optional["scout_compute_api_InterpolationConfiguration"]:
|
|
53800
|
+
return self._interpolation_configuration
|
|
53801
|
+
|
|
53802
|
+
|
|
53803
|
+
scout_compute_api_RefpropSeries.__name__ = "RefpropSeries"
|
|
53804
|
+
scout_compute_api_RefpropSeries.__qualname__ = "RefpropSeries"
|
|
53805
|
+
scout_compute_api_RefpropSeries.__module__ = "nominal_api.scout_compute_api"
|
|
53806
|
+
|
|
53807
|
+
|
|
53808
|
+
class scout_compute_api_RefpropSubstance(ConjureEnumType):
|
|
53809
|
+
"""Supported substances for REFPROP calculations
|
|
53810
|
+
"""
|
|
53811
|
+
|
|
53812
|
+
NITROGEN = 'NITROGEN'
|
|
53813
|
+
'''NITROGEN'''
|
|
53814
|
+
OXYGEN = 'OXYGEN'
|
|
53815
|
+
'''OXYGEN'''
|
|
53816
|
+
HELIUM = 'HELIUM'
|
|
53817
|
+
'''HELIUM'''
|
|
53818
|
+
HYDROGEN = 'HYDROGEN'
|
|
53819
|
+
'''HYDROGEN'''
|
|
53820
|
+
METHANE = 'METHANE'
|
|
53821
|
+
'''METHANE'''
|
|
53822
|
+
PROPANE = 'PROPANE'
|
|
53823
|
+
'''PROPANE'''
|
|
53824
|
+
BUTANE = 'BUTANE'
|
|
53825
|
+
'''BUTANE'''
|
|
53826
|
+
WATER = 'WATER'
|
|
53827
|
+
'''WATER'''
|
|
53828
|
+
XENON = 'XENON'
|
|
53829
|
+
'''XENON'''
|
|
53830
|
+
AIR = 'AIR'
|
|
53831
|
+
'''AIR'''
|
|
53832
|
+
UNKNOWN = 'UNKNOWN'
|
|
53833
|
+
'''UNKNOWN'''
|
|
53834
|
+
|
|
53835
|
+
def __reduce_ex__(self, proto):
|
|
53836
|
+
return self.__class__, (self.name,)
|
|
53837
|
+
|
|
53838
|
+
|
|
53839
|
+
scout_compute_api_RefpropSubstance.__name__ = "RefpropSubstance"
|
|
53840
|
+
scout_compute_api_RefpropSubstance.__qualname__ = "RefpropSubstance"
|
|
53841
|
+
scout_compute_api_RefpropSubstance.__module__ = "nominal_api.scout_compute_api"
|
|
53842
|
+
|
|
53843
|
+
|
|
53709
53844
|
class scout_compute_api_RollingOperationSeries(ConjureBeanType):
|
|
53710
53845
|
|
|
53711
53846
|
@builtins.classmethod
|
|
@@ -62375,6 +62510,7 @@ class scout_compute_resolved_api_NumericSeriesNode(ConjureUnionType):
|
|
|
62375
62510
|
_ranges_numeric_aggregation_to_numeric: Optional["scout_compute_resolved_api_RangesNumericAggregationToNumericSeriesNode"] = None
|
|
62376
62511
|
_filter_by_expression: Optional["scout_compute_resolved_api_FilterByExpressionSeriesNode"] = None
|
|
62377
62512
|
_enum_to_numeric: Optional["scout_compute_resolved_api_EnumToNumericSeriesNode"] = None
|
|
62513
|
+
_refprop: Optional["scout_compute_resolved_api_RefpropSeriesNode"] = None
|
|
62378
62514
|
|
|
62379
62515
|
@builtins.classmethod
|
|
62380
62516
|
def _options(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
@@ -62412,7 +62548,8 @@ class scout_compute_resolved_api_NumericSeriesNode(ConjureUnionType):
|
|
|
62412
62548
|
'newest_points': ConjureFieldDefinition('newestPoints', scout_compute_resolved_api_SelectNewestPointsSeriesNode),
|
|
62413
62549
|
'ranges_numeric_aggregation_to_numeric': ConjureFieldDefinition('rangesNumericAggregationToNumeric', scout_compute_resolved_api_RangesNumericAggregationToNumericSeriesNode),
|
|
62414
62550
|
'filter_by_expression': ConjureFieldDefinition('filterByExpression', scout_compute_resolved_api_FilterByExpressionSeriesNode),
|
|
62415
|
-
'enum_to_numeric': ConjureFieldDefinition('enumToNumeric', scout_compute_resolved_api_EnumToNumericSeriesNode)
|
|
62551
|
+
'enum_to_numeric': ConjureFieldDefinition('enumToNumeric', scout_compute_resolved_api_EnumToNumericSeriesNode),
|
|
62552
|
+
'refprop': ConjureFieldDefinition('refprop', scout_compute_resolved_api_RefpropSeriesNode)
|
|
62416
62553
|
}
|
|
62417
62554
|
|
|
62418
62555
|
def __init__(
|
|
@@ -62451,10 +62588,11 @@ class scout_compute_resolved_api_NumericSeriesNode(ConjureUnionType):
|
|
|
62451
62588
|
ranges_numeric_aggregation_to_numeric: Optional["scout_compute_resolved_api_RangesNumericAggregationToNumericSeriesNode"] = None,
|
|
62452
62589
|
filter_by_expression: Optional["scout_compute_resolved_api_FilterByExpressionSeriesNode"] = None,
|
|
62453
62590
|
enum_to_numeric: Optional["scout_compute_resolved_api_EnumToNumericSeriesNode"] = None,
|
|
62591
|
+
refprop: Optional["scout_compute_resolved_api_RefpropSeriesNode"] = None,
|
|
62454
62592
|
type_of_union: Optional[str] = None
|
|
62455
62593
|
) -> None:
|
|
62456
62594
|
if type_of_union is None:
|
|
62457
|
-
if (arithmetic is not None) + (bit_operation is not None) + (count_duplicate is not None) + (cumulative_sum is not None) + (derivative is not None) + (integral is not None) + (max is not None) + (mean is not None) + (min is not None) + (offset is not None) + (product is not None) + (raw is not None) + (resample is not None) + (rolling_operation is not None) + (aggregate is not None) + (signal_filter is not None) + (sum is not None) + (scale is not None) + (time_difference is not None) + (time_range_filter is not None) + (time_shift is not None) + (unary_arithmetic is not None) + (binary_arithmetic is not None) + (union is not None) + (unit_conversion is not None) + (value_difference is not None) + (filter_transformation is not None) + (threshold_filter is not None) + (array_select is not None) + (absolute_timestamp is not None) + (newest_points is not None) + (ranges_numeric_aggregation_to_numeric is not None) + (filter_by_expression is not None) + (enum_to_numeric is not None) != 1:
|
|
62595
|
+
if (arithmetic is not None) + (bit_operation is not None) + (count_duplicate is not None) + (cumulative_sum is not None) + (derivative is not None) + (integral is not None) + (max is not None) + (mean is not None) + (min is not None) + (offset is not None) + (product is not None) + (raw is not None) + (resample is not None) + (rolling_operation is not None) + (aggregate is not None) + (signal_filter is not None) + (sum is not None) + (scale is not None) + (time_difference is not None) + (time_range_filter is not None) + (time_shift is not None) + (unary_arithmetic is not None) + (binary_arithmetic is not None) + (union is not None) + (unit_conversion is not None) + (value_difference is not None) + (filter_transformation is not None) + (threshold_filter is not None) + (array_select is not None) + (absolute_timestamp is not None) + (newest_points is not None) + (ranges_numeric_aggregation_to_numeric is not None) + (filter_by_expression is not None) + (enum_to_numeric is not None) + (refprop is not None) != 1:
|
|
62458
62596
|
raise ValueError('a union must contain a single member')
|
|
62459
62597
|
|
|
62460
62598
|
if arithmetic is not None:
|
|
@@ -62559,6 +62697,9 @@ class scout_compute_resolved_api_NumericSeriesNode(ConjureUnionType):
|
|
|
62559
62697
|
if enum_to_numeric is not None:
|
|
62560
62698
|
self._enum_to_numeric = enum_to_numeric
|
|
62561
62699
|
self._type = 'enumToNumeric'
|
|
62700
|
+
if refprop is not None:
|
|
62701
|
+
self._refprop = refprop
|
|
62702
|
+
self._type = 'refprop'
|
|
62562
62703
|
|
|
62563
62704
|
elif type_of_union == 'arithmetic':
|
|
62564
62705
|
if arithmetic is None:
|
|
@@ -62730,6 +62871,11 @@ class scout_compute_resolved_api_NumericSeriesNode(ConjureUnionType):
|
|
|
62730
62871
|
raise ValueError('a union value must not be None')
|
|
62731
62872
|
self._enum_to_numeric = enum_to_numeric
|
|
62732
62873
|
self._type = 'enumToNumeric'
|
|
62874
|
+
elif type_of_union == 'refprop':
|
|
62875
|
+
if refprop is None:
|
|
62876
|
+
raise ValueError('a union value must not be None')
|
|
62877
|
+
self._refprop = refprop
|
|
62878
|
+
self._type = 'refprop'
|
|
62733
62879
|
|
|
62734
62880
|
@builtins.property
|
|
62735
62881
|
def arithmetic(self) -> Optional["scout_compute_resolved_api_ArithmeticSeriesNode"]:
|
|
@@ -62867,6 +63013,10 @@ class scout_compute_resolved_api_NumericSeriesNode(ConjureUnionType):
|
|
|
62867
63013
|
def enum_to_numeric(self) -> Optional["scout_compute_resolved_api_EnumToNumericSeriesNode"]:
|
|
62868
63014
|
return self._enum_to_numeric
|
|
62869
63015
|
|
|
63016
|
+
@builtins.property
|
|
63017
|
+
def refprop(self) -> Optional["scout_compute_resolved_api_RefpropSeriesNode"]:
|
|
63018
|
+
return self._refprop
|
|
63019
|
+
|
|
62870
63020
|
def accept(self, visitor) -> Any:
|
|
62871
63021
|
if not isinstance(visitor, scout_compute_resolved_api_NumericSeriesNodeVisitor):
|
|
62872
63022
|
raise ValueError('{} is not an instance of scout_compute_resolved_api_NumericSeriesNodeVisitor'.format(visitor.__class__.__name__))
|
|
@@ -62938,6 +63088,8 @@ class scout_compute_resolved_api_NumericSeriesNode(ConjureUnionType):
|
|
|
62938
63088
|
return visitor._filter_by_expression(self.filter_by_expression)
|
|
62939
63089
|
if self._type == 'enumToNumeric' and self.enum_to_numeric is not None:
|
|
62940
63090
|
return visitor._enum_to_numeric(self.enum_to_numeric)
|
|
63091
|
+
if self._type == 'refprop' and self.refprop is not None:
|
|
63092
|
+
return visitor._refprop(self.refprop)
|
|
62941
63093
|
|
|
62942
63094
|
|
|
62943
63095
|
scout_compute_resolved_api_NumericSeriesNode.__name__ = "NumericSeriesNode"
|
|
@@ -63083,6 +63235,10 @@ class scout_compute_resolved_api_NumericSeriesNodeVisitor:
|
|
|
63083
63235
|
def _enum_to_numeric(self, enum_to_numeric: "scout_compute_resolved_api_EnumToNumericSeriesNode") -> Any:
|
|
63084
63236
|
pass
|
|
63085
63237
|
|
|
63238
|
+
@abstractmethod
|
|
63239
|
+
def _refprop(self, refprop: "scout_compute_resolved_api_RefpropSeriesNode") -> Any:
|
|
63240
|
+
pass
|
|
63241
|
+
|
|
63086
63242
|
|
|
63087
63243
|
scout_compute_resolved_api_NumericSeriesNodeVisitor.__name__ = "NumericSeriesNodeVisitor"
|
|
63088
63244
|
scout_compute_resolved_api_NumericSeriesNodeVisitor.__qualname__ = "NumericSeriesNodeVisitor"
|
|
@@ -64045,6 +64201,65 @@ scout_compute_resolved_api_RawUntypedSeriesNode.__qualname__ = "RawUntypedSeries
|
|
|
64045
64201
|
scout_compute_resolved_api_RawUntypedSeriesNode.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
64046
64202
|
|
|
64047
64203
|
|
|
64204
|
+
class scout_compute_resolved_api_RefpropSeriesNode(ConjureBeanType):
|
|
64205
|
+
|
|
64206
|
+
@builtins.classmethod
|
|
64207
|
+
def _fields(cls) -> Dict[str, ConjureFieldDefinition]:
|
|
64208
|
+
return {
|
|
64209
|
+
'first_input': ConjureFieldDefinition('firstInput', scout_compute_resolved_api_NumericSeriesNode),
|
|
64210
|
+
'second_input': ConjureFieldDefinition('secondInput', scout_compute_resolved_api_NumericSeriesNode),
|
|
64211
|
+
'first_property': ConjureFieldDefinition('firstProperty', scout_compute_api_RefpropProperty),
|
|
64212
|
+
'second_property': ConjureFieldDefinition('secondProperty', scout_compute_api_RefpropProperty),
|
|
64213
|
+
'output_property': ConjureFieldDefinition('outputProperty', scout_compute_api_RefpropProperty),
|
|
64214
|
+
'substance': ConjureFieldDefinition('substance', scout_compute_api_RefpropSubstance),
|
|
64215
|
+
'interpolation_configuration': ConjureFieldDefinition('interpolationConfiguration', scout_compute_resolved_api_InterpolationConfiguration)
|
|
64216
|
+
}
|
|
64217
|
+
|
|
64218
|
+
__slots__: List[str] = ['_first_input', '_second_input', '_first_property', '_second_property', '_output_property', '_substance', '_interpolation_configuration']
|
|
64219
|
+
|
|
64220
|
+
def __init__(self, first_input: "scout_compute_resolved_api_NumericSeriesNode", first_property: "scout_compute_api_RefpropProperty", interpolation_configuration: "scout_compute_resolved_api_InterpolationConfiguration", output_property: "scout_compute_api_RefpropProperty", second_input: "scout_compute_resolved_api_NumericSeriesNode", second_property: "scout_compute_api_RefpropProperty", substance: "scout_compute_api_RefpropSubstance") -> None:
|
|
64221
|
+
self._first_input = first_input
|
|
64222
|
+
self._second_input = second_input
|
|
64223
|
+
self._first_property = first_property
|
|
64224
|
+
self._second_property = second_property
|
|
64225
|
+
self._output_property = output_property
|
|
64226
|
+
self._substance = substance
|
|
64227
|
+
self._interpolation_configuration = interpolation_configuration
|
|
64228
|
+
|
|
64229
|
+
@builtins.property
|
|
64230
|
+
def first_input(self) -> "scout_compute_resolved_api_NumericSeriesNode":
|
|
64231
|
+
return self._first_input
|
|
64232
|
+
|
|
64233
|
+
@builtins.property
|
|
64234
|
+
def second_input(self) -> "scout_compute_resolved_api_NumericSeriesNode":
|
|
64235
|
+
return self._second_input
|
|
64236
|
+
|
|
64237
|
+
@builtins.property
|
|
64238
|
+
def first_property(self) -> "scout_compute_api_RefpropProperty":
|
|
64239
|
+
return self._first_property
|
|
64240
|
+
|
|
64241
|
+
@builtins.property
|
|
64242
|
+
def second_property(self) -> "scout_compute_api_RefpropProperty":
|
|
64243
|
+
return self._second_property
|
|
64244
|
+
|
|
64245
|
+
@builtins.property
|
|
64246
|
+
def output_property(self) -> "scout_compute_api_RefpropProperty":
|
|
64247
|
+
return self._output_property
|
|
64248
|
+
|
|
64249
|
+
@builtins.property
|
|
64250
|
+
def substance(self) -> "scout_compute_api_RefpropSubstance":
|
|
64251
|
+
return self._substance
|
|
64252
|
+
|
|
64253
|
+
@builtins.property
|
|
64254
|
+
def interpolation_configuration(self) -> "scout_compute_resolved_api_InterpolationConfiguration":
|
|
64255
|
+
return self._interpolation_configuration
|
|
64256
|
+
|
|
64257
|
+
|
|
64258
|
+
scout_compute_resolved_api_RefpropSeriesNode.__name__ = "RefpropSeriesNode"
|
|
64259
|
+
scout_compute_resolved_api_RefpropSeriesNode.__qualname__ = "RefpropSeriesNode"
|
|
64260
|
+
scout_compute_resolved_api_RefpropSeriesNode.__module__ = "nominal_api.scout_compute_resolved_api"
|
|
64261
|
+
|
|
64262
|
+
|
|
64048
64263
|
class scout_compute_resolved_api_ResampleConfiguration(ConjureBeanType):
|
|
64049
64264
|
|
|
64050
64265
|
@builtins.classmethod
|
|
@@ -87069,6 +87284,40 @@ Enforces read permission on the video.
|
|
|
87069
87284
|
_decoder = ConjureDecoder()
|
|
87070
87285
|
return None if _response.status_code == 204 else _decoder.decode(_response.json(), OptionalTypeWrapper[scout_video_api_GenerateWhepStreamResponse], self._return_none_for_unknown_union_types)
|
|
87071
87286
|
|
|
87287
|
+
def upload_segment_from_media_mtx(self, auth_header: str, body: Any, duration: str, path: str) -> None:
|
|
87288
|
+
"""MediaMTX segment upload endpoint. Receives video segments from MediaMTX hooks.
|
|
87289
|
+
Validates JWT and logs session. Future: create video segments from uploaded files.
|
|
87290
|
+
"""
|
|
87291
|
+
_conjure_encoder = ConjureEncoder()
|
|
87292
|
+
|
|
87293
|
+
_headers: Dict[str, Any] = {
|
|
87294
|
+
'Accept': 'application/json',
|
|
87295
|
+
'Content-Type': 'application/octet-stream',
|
|
87296
|
+
'Authorization': auth_header,
|
|
87297
|
+
}
|
|
87298
|
+
|
|
87299
|
+
_params: Dict[str, Any] = {
|
|
87300
|
+
'path': _conjure_encoder.default(path),
|
|
87301
|
+
'duration': _conjure_encoder.default(duration),
|
|
87302
|
+
}
|
|
87303
|
+
|
|
87304
|
+
_path_params: Dict[str, str] = {
|
|
87305
|
+
}
|
|
87306
|
+
|
|
87307
|
+
_data: Any = body
|
|
87308
|
+
|
|
87309
|
+
_path = '/video/v1/segment/upload'
|
|
87310
|
+
_path = _path.format(**_path_params)
|
|
87311
|
+
|
|
87312
|
+
_response: Response = self._request(
|
|
87313
|
+
'POST',
|
|
87314
|
+
self._uri + _path,
|
|
87315
|
+
params=_params,
|
|
87316
|
+
headers=_headers,
|
|
87317
|
+
data=_data)
|
|
87318
|
+
|
|
87319
|
+
return
|
|
87320
|
+
|
|
87072
87321
|
|
|
87073
87322
|
scout_video_VideoService.__name__ = "VideoService"
|
|
87074
87323
|
scout_video_VideoService.__qualname__ = "VideoService"
|
|
@@ -288,6 +288,9 @@ from .._impl import (
|
|
|
288
288
|
scout_compute_api_RangesNumericAggregation as RangesNumericAggregation,
|
|
289
289
|
scout_compute_api_RangesSummary as RangesSummary,
|
|
290
290
|
scout_compute_api_Reference as Reference,
|
|
291
|
+
scout_compute_api_RefpropProperty as RefpropProperty,
|
|
292
|
+
scout_compute_api_RefpropSeries as RefpropSeries,
|
|
293
|
+
scout_compute_api_RefpropSubstance as RefpropSubstance,
|
|
291
294
|
scout_compute_api_RollingOperationSeries as RollingOperationSeries,
|
|
292
295
|
scout_compute_api_RollingOperator as RollingOperator,
|
|
293
296
|
scout_compute_api_RollingOperatorVisitor as RollingOperatorVisitor,
|
|
@@ -666,6 +669,9 @@ __all__ = [
|
|
|
666
669
|
'RangesNumericAggregation',
|
|
667
670
|
'RangesSummary',
|
|
668
671
|
'Reference',
|
|
672
|
+
'RefpropProperty',
|
|
673
|
+
'RefpropSeries',
|
|
674
|
+
'RefpropSubstance',
|
|
669
675
|
'RollingOperationSeries',
|
|
670
676
|
'RollingOperator',
|
|
671
677
|
'RollingOperatorVisitor',
|
|
@@ -112,6 +112,7 @@ from .._impl import (
|
|
|
112
112
|
scout_compute_resolved_api_RawLogSeriesNode as RawLogSeriesNode,
|
|
113
113
|
scout_compute_resolved_api_RawNumericSeriesNode as RawNumericSeriesNode,
|
|
114
114
|
scout_compute_resolved_api_RawUntypedSeriesNode as RawUntypedSeriesNode,
|
|
115
|
+
scout_compute_resolved_api_RefpropSeriesNode as RefpropSeriesNode,
|
|
115
116
|
scout_compute_resolved_api_ResampleConfiguration as ResampleConfiguration,
|
|
116
117
|
scout_compute_resolved_api_ResampleInterpolationConfiguration as ResampleInterpolationConfiguration,
|
|
117
118
|
scout_compute_resolved_api_ResampleInterpolationConfigurationVisitor as ResampleInterpolationConfigurationVisitor,
|
|
@@ -278,6 +279,7 @@ __all__ = [
|
|
|
278
279
|
'RawLogSeriesNode',
|
|
279
280
|
'RawNumericSeriesNode',
|
|
280
281
|
'RawUntypedSeriesNode',
|
|
282
|
+
'RefpropSeriesNode',
|
|
281
283
|
'ResampleConfiguration',
|
|
282
284
|
'ResampleInterpolationConfiguration',
|
|
283
285
|
'ResampleInterpolationConfigurationVisitor',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nominal_api/__init__.py,sha256=
|
|
2
|
-
nominal_api/_impl.py,sha256=
|
|
1
|
+
nominal_api/__init__.py,sha256=LONYprNXKL94aEGg91F9OD-1HKzpYEIlCMjRX2oKxu0,2109
|
|
2
|
+
nominal_api/_impl.py,sha256=mYpzmYNfplLBMNtBvhXYbtD_BK7sv2Ys5VXuc6dA56U,3890672
|
|
3
3
|
nominal_api/py.typed,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
4
4
|
nominal_api/api/__init__.py,sha256=OHAEgaRoUX60742H_U3q_pBoPGpLspsL5XERHQ-rjMs,2299
|
|
5
5
|
nominal_api/api_ids/__init__.py,sha256=sxqN5dMk6bOx0SKOd0ANG3_kmx1VtdSVotzEGn_q6sE,114
|
|
@@ -34,9 +34,9 @@ nominal_api/scout_checklistexecution_api/__init__.py,sha256=iVeUjPTlbpQ3vlQkQjHr
|
|
|
34
34
|
nominal_api/scout_checks_api/__init__.py,sha256=uCmiNrVwLDlkg8YnpP-uZr9nFFFN52sM644Qo6YNy3k,6972
|
|
35
35
|
nominal_api/scout_comparisonnotebook_api/__init__.py,sha256=F5cQo_KqeTpFwqKBDV-iEjrND7xQgkycC1yocpxq1Qk,6277
|
|
36
36
|
nominal_api/scout_comparisonrun_api/__init__.py,sha256=y5SlDoXvskyTKjg2O8o3cBhGSN-KA7iVlVjyy3vb3Co,652
|
|
37
|
-
nominal_api/scout_compute_api/__init__.py,sha256=
|
|
37
|
+
nominal_api/scout_compute_api/__init__.py,sha256=tj_rgbxht-x6Y0CJ-UfPmBGtiY2NWvBCAkYKM-h9MJA,34735
|
|
38
38
|
nominal_api/scout_compute_api_deprecated/__init__.py,sha256=JrZKbt1ulYECTdUSkXn6On22Alu_cPUBjCRWTN3ctxk,5041
|
|
39
|
-
nominal_api/scout_compute_resolved_api/__init__.py,sha256=
|
|
39
|
+
nominal_api/scout_compute_resolved_api/__init__.py,sha256=yPU7JP0a-uQoyen7ffdM1b2WO1M-lxGxCzJ36OZPx8Q,17806
|
|
40
40
|
nominal_api/scout_dataexport_api/__init__.py,sha256=jl409RGy7Mxhjqja8wa-abLnXrhL2FEYZrA1GcaAJh0,2182
|
|
41
41
|
nominal_api/scout_datareview_api/__init__.py,sha256=ITQR6pdPseU9vS2bKDeleafiBhurtHmcHeKz_6J8Ab8,12229
|
|
42
42
|
nominal_api/scout_datasource/__init__.py,sha256=Z1Msu1Daf8GlLuM3w5imyB-6DhTNZojxI6xpH1sSvhM,141
|
|
@@ -79,7 +79,7 @@ nominal_api/timeseries_seriescache/__init__.py,sha256=hL5hN8jKLEGE_fDiZzdASmWIrR
|
|
|
79
79
|
nominal_api/timeseries_seriescache_api/__init__.py,sha256=i21vITWBn-6ruVuFZg491TDpx6WcIhJBoF3oNw3w338,1186
|
|
80
80
|
nominal_api/upload_api/__init__.py,sha256=7-XXuZUqKPV4AMWvxNpZPZ5vBun4x-AomXj3Vol_BN4,123
|
|
81
81
|
nominal_api/usercreation_api/__init__.py,sha256=Q6M70SlKFVfIxZqRohD4XYmBz5t2DP1DB0a0Q6glqGA,171
|
|
82
|
-
nominal_api-0.
|
|
83
|
-
nominal_api-0.
|
|
84
|
-
nominal_api-0.
|
|
85
|
-
nominal_api-0.
|
|
82
|
+
nominal_api-0.972.0.dist-info/METADATA,sha256=bQqRSswMhRWWJAyWTSD6F4h4s9hIfiolRpyOWldYr4c,199
|
|
83
|
+
nominal_api-0.972.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
84
|
+
nominal_api-0.972.0.dist-info/top_level.txt,sha256=gI1ZdNJbuHcJZeKtCzzBXsEtpU1GX6XJKs6ksi_gCRA,12
|
|
85
|
+
nominal_api-0.972.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|