file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleChildProducerPy.py
""" This node is designed to shallow copy input bundle as a child in the output. """ class OgnBundleChildProducerPy: @staticmethod def compute(db) -> bool: input_bundle = db.inputs.bundle output_bundle = db.outputs.bundle # store number of children from the input db.outputs.numChildren = input_bundle.bundle.get_child_bundle_count() # create child bundle in the output and shallow copy input output_bundle.bundle.clear_contents() output_surfaces = output_bundle.bundle.create_child_bundle("surfaces") output_surfaces.copy_bundle(input_bundle.bundle)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleProducer.ogn
{ "BundleProducer": { "version": 1, "description": "Node that produces output bundle for change tracking", "categories": "internal:test", "exclude": [ "usd", "docs" ], "uiName": "Test Node: Bundle Properties", "icon": { "path": "TestNodeIcon.svg" }, "outputs": { "bundle": { "type": "bundle", "description": [ "Output Bundle" ] } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomBundlePoints.cpp
// Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnRandomBundlePointsDatabase.h> #include <cstdlib> #include <omni/graph/core/Type.h> // This is the implementation of the OGN node defined in OgnRandomBundlePoints.ogn namespace omni { namespace graph { using core::Type; using core::BaseDataType; using core::AttributeRole; namespace test { class OgnRandomBundlePoints { public: // Generate a bundle of "bundleSize" arrays of "pointCount" points at random locations within the bounding cube, // delineated by the corner points "minimum" and "maximum". static bool compute(OgnRandomBundlePointsDatabase& db) { const auto& minimum = db.inputs.minimum(); GfVec3f rangeSize = db.inputs.maximum() - minimum; // No points mean nothing to generate const auto& pointCount = db.inputs.pointCount(); if (pointCount == 0) { return true; } // Bundle size of zero means nothing to generate const auto& bundleSize = db.inputs.bundleSize(); if (bundleSize == 0) { return true; } // Start with an empty bundle auto& outputBundle = db.outputs.bundle(); outputBundle.clear(); // Type definition for attributes that will be added to the bundle. Type pointsType{ BaseDataType::eFloat, 3, 1, AttributeRole::ePosition }; // For each attribute to be added to the bundle create a unique array of random points for (size_t element=0; element < size_t(bundleSize); ++element) { std::string attributeName = std::string{"points"} + std::to_string(element); auto&& newAttribute = outputBundle.addAttribute(db.stringToToken(attributeName.c_str()), pointsType); auto pointsArray = newAttribute.get<float[][3]>(); if (pointsArray) { pointsArray.resize(pointCount); for (auto& point : *pointsArray) { point[0] = minimum[0] + static_cast<float>(rand()) /( static_cast<float>(RAND_MAX/(rangeSize[0]))); point[1] = minimum[1] + static_cast<float>(rand()) /( static_cast<float>(RAND_MAX/(rangeSize[1]))); point[2] = minimum[2] + static_cast<float>(rand()) /( static_cast<float>(RAND_MAX/(rangeSize[2]))); } } else { db.logWarning("Could not get a reference to the constructed points attribute"); return false; } } return true; } }; REGISTER_OGN_NODE() } // test } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestIsolate.ogn
{ "TestIsolate": { "version": 1, "description": [ "Test isolate scheduling on nodes. Currently this scheduling status is only used for nodes that", "have the \"usd-write\" scheduling hint, i.e. write to the USD stage; for this specific test node", "the \"usd-write\" hint is a bit of a misnomer because it doesn't actually write anything to stage." ], "uiName": "Test Node: Isolate Scheduling", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "scheduling": ["usd-write"], "exclude": ["tests", "usd", "docs"], "outputs": { "result": { "type": "bool", "description": [ "Set to true when this node was successfully executed by", "the execution framework in isolation. False otherwise." ], "uiName": "Result" } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestCppKeywords.ogn
{ "TestCppKeywords": { "version": 1, "description": "Test that attributes named for C++ keywords produce valid code", "inputs": { "atomic_cancel": {"type": "float", "description": "KW Test for atomic_cancel"}, "atomic_commit": {"type": "float", "description": "KW Test for atomic_commit"}, "atomic_noexcept": {"type": "float", "description": "KW Test for atomic_noexcept"}, "consteval": {"type": "float", "description": "KW Test for consteval"}, "constinit": {"type": "float", "description": "KW Test for constinit"}, "reflexpr": {"type": "float", "description": "KW Test for reflexpr"}, "requires": {"type": "float", "description": "KW Test for requires"} }, "exclude": ["usd", "docs"], "categories": "internal:test", "outputs": { "verify": { "type": "bool", "description": "Flag to indicate that a node was created and executed" } }, "tests": [ { "outputs:verify": true } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnDecomposeDouble3C.ogn
{ "DecomposeDouble3C": { "version": 1, "description": ["Example node that takes in a double[3] and outputs scalars that are its components"], "uiName": "Test Node: Decompose Double3 (C++)", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["usd", "docs"], "inputs": { "double3": { "type": "double[3]", "description": "Input to decompose", "default": [0,0,0] } }, "outputs": { "x": { "type": "double", "description": "The x component of the input" }, "y": { "type": "double", "description": "The y component of the input" }, "z": { "type": "double", "description": "The z component of the input" } }, "tests": [ { "inputs:double3": [1.0, 2.0, 3.0], "outputs:x": 1.0, "outputs:y": 2.0, "outputs:z": 3.0 } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleProperties.cpp
// Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnBundlePropertiesDatabase.h> namespace omni::graph::test { class OgnBundleProperties { public: static bool compute(OgnBundlePropertiesDatabase& db) { db.outputs.valid() = db.inputs.bundle().isValid(); return true; } }; REGISTER_OGN_NODE() }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleConsumer.cpp
// Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnBundleConsumerDatabase.h> namespace omni::graph::test { class OgnBundleConsumer { public: static bool compute(OgnBundleConsumerDatabase& db) { if (auto bundleChanges = db.inputs.bundle.changes()) { db.outputs.bundle() = db.inputs.bundle(); db.outputs.hasOutputBundleChanged() = true; } else { db.outputs.hasOutputBundleChanged() = false; } return true; } }; REGISTER_OGN_NODE() }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestOptionalExtended.ogn
{ "TestOptionalExtendedAttribute": { "version": 1, "description": "Test node that exercises the optional flag on extended attributes", "language": "python", "categories": "internal:test", "exclude": ["tests", "usd", "docs"], "icon": { "path": "TestNodeIcon.svg" }, "inputs": { "optional": { "type": "any", "description": "Attribute that is not needed to run compute", "unvalidated": true }, "other": { "type": "int", "default": 3, "description": "Attribute used when the optional one is not resolved" } }, "outputs": { "optional": { "type": "any", "description": "Attribute that is not necessarily produced during a compute", "unvalidated": true, "optional": true }, "other": { "type": "int", "default": 10, "description": "Output produced when 'optional' is not resolved", "optional": true } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesPy.ogn
{ "TestAllDataTypesPy": { "version": 1, "description": [ "This node is meant to exercise data access for all available data types, including all", "legal combinations of tuples, arrays, and bundle members. The test section here is intentionally", "omitted so that the regression test script can programmatically generate tests for all known types,", "reducing the change of unintentional omissions. This node definition is a duplicate of", "OgnTestAllDataTypes.ogn, except the implementation language is Python." ], "language": "python", "uiName": "Python Test Node: All Data Types", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "exclude": ["usd", "docs"], "inputs": { "doNotCompute": { "description": "Prevent the compute from running", "type": "bool", "default": true }, "a_bool": { "description": "Input Attribute", "type": "bool", "default": false }, "a_bool_array": { "description": "Input Attribute", "type": "bool[]", "default": [false, true] }, "a_bundle": { "description": "Input Attribute", "type": "bundle", "optional": true }, "a_colord_3": { "description": "Input Attribute", "type": "colord[3]", "default": [1.0, 2.0, 3.0] }, "a_colord_4": { "description": "Input Attribute", "type": "colord[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_colorf_3": { "description": "Input Attribute", "type": "colorf[3]", "default": [1.0, 2.0, 3.0] }, "a_colorf_4": { "description": "Input Attribute", "type": "colorf[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_colorh_3": { "description": "Input Attribute", "type": "colorh[3]", "default": [1.0, 2.0, 3.0] }, "a_colorh_4": { "description": "Input Attribute", "type": "colorh[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_colord_3_array": { "description": "Input Attribute", "type": "colord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_colord_4_array": { "description": "Input Attribute", "type": "colord[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_colorf_3_array": { "description": "Input Attribute", "type": "colorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_colorf_4_array": { "description": "Input Attribute", "type": "colorf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_colorh_3_array": { "description": "Input Attribute", "type": "colorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_colorh_4_array": { "description": "Input Attribute", "type": "colorh[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_double": { "description": "Input Attribute", "type": "double", "default": 1.0 }, "a_double_2": { "description": "Input Attribute", "type": "double[2]", "default": [1.0, 2.0] }, "a_double_3": { "description": "Input Attribute", "type": "double[3]", "default": [1.0, 2.0, 3.0] }, "a_double_4": { "description": "Input Attribute", "type": "double[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_double_array": { "description": "Input Attribute", "type": "double[]", "default": [1.0, 2.0] }, "a_double_2_array": { "description": "Input Attribute", "type": "double[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_double_3_array": { "description": "Input Attribute", "type": "double[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_double_4_array": { "description": "Input Attribute", "type": "double[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_execution": { "description": "Input Attribute", "type": "execution", "default": 1 }, "a_float": { "description": "Input Attribute", "type": "float", "default": 1.0 }, "a_float_2": { "description": "Input Attribute", "type": "float[2]", "default": [1.0, 2.0] }, "a_float_3": { "description": "Input Attribute", "type": "float[3]", "default": [1.0, 2.0, 3.0] }, "a_float_4": { "description": "Input Attribute", "type": "float[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_float_array": { "description": "Input Attribute", "type": "float[]", "default": [1.0, 2.0] }, "a_float_2_array": { "description": "Input Attribute", "type": "float[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_float_3_array": { "description": "Input Attribute", "type": "float[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_float_4_array": { "description": "Input Attribute", "type": "float[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_frame_4": { "description": "Input Attribute", "type": "frame[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] }, "a_frame_4_array": { "description": "Input Attribute", "type": "frame[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] }, "a_half": { "description": "Input Attribute", "type": "half", "default": 1.0 }, "a_half_2": { "description": "Input Attribute", "type": "half[2]", "default": [1.0, 2.0] }, "a_half_3": { "description": "Input Attribute", "type": "half[3]", "default": [1.0, 2.0, 3.0] }, "a_half_4": { "description": "Input Attribute", "type": "half[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_half_array": { "description": "Input Attribute", "type": "half[]", "default": [1.0, 2.0] }, "a_half_2_array": { "description": "Input Attribute", "type": "half[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_half_3_array": { "description": "Input Attribute", "type": "half[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_half_4_array": { "description": "Input Attribute", "type": "half[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_int": { "description": "Input Attribute", "type": "int", "default": 1 }, "a_int_2": { "description": "Input Attribute", "type": "int[2]", "default": [1, 2] }, "a_int_3": { "description": "Input Attribute", "type": "int[3]", "default": [1, 2, 3] }, "a_int_4": { "description": "Input Attribute", "type": "int[4]", "default": [1, 2, 3, 4] }, "a_int_array": { "description": "Input Attribute", "type": "int[]", "default": [1, 2] }, "a_int_2_array": { "description": "Input Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] }, "a_int_3_array": { "description": "Input Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] }, "a_int_4_array": { "description": "Input Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] }, "a_int64": { "description": "Input Attribute", "type": "int64", "default": 12345 }, "a_int64_array": { "description": "Input Attribute", "type": "int64[]", "default": [12345, 23456] }, "a_matrixd_2": { "description": "Input Attribute", "type": "matrixd[2]", "default": [[1.0, 2.0], [3.0, 4.0]] }, "a_matrixd_3": { "description": "Input Attribute", "type": "matrixd[3]", "default": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] }, "a_matrixd_4": { "description": "Input Attribute", "type": "matrixd[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] }, "a_matrixd_2_array": { "description": "Input Attribute", "type": "matrixd[2][]", "default": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] }, "a_matrixd_3_array": { "description": "Input Attribute", "type": "matrixd[3][]", "default":[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] }, "a_matrixd_4_array": { "description": "Input Attribute", "type": "matrixd[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] }, "a_normald_3": { "description": "Input Attribute", "type": "normald[3]", "default": [1.0, 2.0, 3.0] }, "a_normalf_3": { "description": "Input Attribute", "type": "normalf[3]", "default": [1.0, 2.0, 3.0] }, "a_normalh_3": { "description": "Input Attribute", "type": "normalh[3]", "default": [1.0, 2.0, 3.0] }, "a_normald_3_array": { "description": "Input Attribute", "type": "normald[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_normalf_3_array": { "description": "Input Attribute", "type": "normalf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_normalh_3_array": { "description": "Input Attribute", "type": "normalh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_objectId": { "description": "Input Attribute", "type": "objectId", "default": 1 }, "a_objectId_array": { "description": "Input Attribute", "type": "objectId[]", "default": [1, 2] }, "a_path": { "description": "Input Attribute", "type": "path", "default": "/Input" }, "a_pointd_3": { "description": "Input Attribute", "type": "pointd[3]", "default": [1.0, 2.0, 3.0] }, "a_pointf_3": { "description": "Input Attribute", "type": "pointf[3]", "default": [1.0, 2.0, 3.0] }, "a_pointh_3": { "description": "Input Attribute", "type": "pointh[3]", "default": [1.0, 2.0, 3.0] }, "a_pointd_3_array": { "description": "Input Attribute", "type": "pointd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_pointf_3_array": { "description": "Input Attribute", "type": "pointf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_pointh_3_array": { "description": "Input Attribute", "type": "pointh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_quatd_4": { "description": "Input Attribute", "type": "quatd[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_quatf_4": { "description": "Input Attribute", "type": "quatf[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_quath_4": { "description": "Input Attribute", "type": "quath[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_quatd_4_array": { "description": "Input Attribute", "type": "quatd[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_quatf_4_array": { "description": "Input Attribute", "type": "quatf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_quath_4_array": { "description": "Input Attribute", "type": "quath[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_string": { "description": "Input Attribute", "type": "string", "default": "Rey" }, "a_target": { "description": "Input Attribute", "type": "target", "metadata": {"allowMultiInputs": "1"}}, "a_texcoordd_2": { "description": "Input Attribute", "type": "texcoordd[2]", "default": [1.0, 2.0] }, "a_texcoordd_3": { "description": "Input Attribute", "type": "texcoordd[3]", "default": [1.0, 2.0, 3.0] }, "a_texcoordf_2": { "description": "Input Attribute", "type": "texcoordf[2]", "default": [1.0, 2.0] }, "a_texcoordf_3": { "description": "Input Attribute", "type": "texcoordf[3]", "default": [1.0, 2.0, 3.0] }, "a_texcoordh_2": { "description": "Input Attribute", "type": "texcoordh[2]", "default": [1.0, 2.0] }, "a_texcoordh_3": { "description": "Input Attribute", "type": "texcoordh[3]", "default": [1.0, 2.0, 3.0] }, "a_texcoordd_2_array": { "description": "Input Attribute", "type": "texcoordd[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_texcoordd_3_array": { "description": "Input Attribute", "type": "texcoordd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_texcoordf_2_array": { "description": "Input Attribute", "type": "texcoordf[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_texcoordf_3_array": { "description": "Input Attribute", "type": "texcoordf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_texcoordh_2_array": { "description": "Input Attribute", "type": "texcoordh[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_texcoordh_3_array": { "description": "Input Attribute", "type": "texcoordh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_timecode": { "description": "Input Attribute", "type": "timecode", "default": 1.0 }, "a_timecode_array": { "description": "Input Attribute", "type": "timecode[]", "default": [1.0, 2.0] }, "a_token": { "description": "Input Attribute", "type": "token", "default": "Sith" }, "a_token_array": { "description": "Input Attribute", "type": "token[]", "default": ["Kylo", "Ren"] }, "a_uchar": { "description": "Input Attribute", "type": "uchar", "default": 1 }, "a_uchar_array": { "description": "Input Attribute", "type": "uchar[]", "default": [1, 2] }, "a_uint": { "description": "Input Attribute", "type": "uint", "default": 1 }, "a_uint_array": { "description": "Input Attribute", "type": "uint[]", "default": [1, 2] }, "a_uint64": { "description": "Input Attribute", "type": "uint64", "default": 1 }, "a_uint64_array": { "description": "Input Attribute", "type": "uint64[]", "default": [1, 2] }, "a_vectord_3": { "description": "Input Attribute", "type": "vectord[3]", "default": [1.0, 2.0, 3.0] }, "a_vectorf_3": { "description": "Input Attribute", "type": "vectorf[3]", "default": [1.0, 2.0, 3.0] }, "a_vectorh_3": { "description": "Input Attribute", "type": "vectorh[3]", "default": [1.0, 2.0, 3.0] }, "a_vectord_3_array": { "description": "Input Attribute", "type": "vectord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_vectorf_3_array": { "description": "Input Attribute", "type": "vectorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_vectorh_3_array": { "description": "Input Attribute", "type": "vectorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] } }, "outputs": { "a_bool": { "description": "Computed Attribute", "type": "bool", "default": true }, "a_bool_array": { "description": "Computed Attribute", "type": "bool[]", "default": [true, false] }, "a_bundle": { "description": "Computed Attribute", "type": "bundle" }, "a_colord_3": { "description": "Computed Attribute", "type": "colord[3]", "default": [1.5, 2.5, 3.5] }, "a_colord_4": { "description": "Computed Attribute", "type": "colord[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colorf_3": { "description": "Computed Attribute", "type": "colorf[3]", "default": [1.5, 2.5, 3.5] }, "a_colorf_4": { "description": "Computed Attribute", "type": "colorf[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colorh_3": { "description": "Computed Attribute", "type": "colorh[3]", "default": [1.5, 2.5, 3.5] }, "a_colorh_4": { "description": "Computed Attribute", "type": "colorh[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colord_3_array": { "description": "Computed Attribute", "type": "colord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colord_4_array": { "description": "Computed Attribute", "type": "colord[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_colorf_3_array": { "description": "Computed Attribute", "type": "colorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colorf_4_array": { "description": "Computed Attribute", "type": "colorf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_colorh_3_array": { "description": "Computed Attribute", "type": "colorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colorh_4_array": { "description": "Computed Attribute", "type": "colorh[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_double": { "description": "Computed Attribute", "type": "double", "default": 1.5 }, "a_double_2": { "description": "Computed Attribute", "type": "double[2]", "default": [1.5, 2.5] }, "a_double_3": { "description": "Computed Attribute", "type": "double[3]", "default": [1.5, 2.5, 3.5] }, "a_double_4": { "description": "Computed Attribute", "type": "double[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_double_array": { "description": "Computed Attribute", "type": "double[]", "default": [1.5, 2.5] }, "a_double_2_array": { "description": "Computed Attribute", "type": "double[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_double_3_array": { "description": "Computed Attribute", "type": "double[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_double_4_array": { "description": "Computed Attribute", "type": "double[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_execution": { "description": "Computed Attribute", "type": "execution", "default": 2 }, "a_float": { "description": "Computed Attribute", "type": "float", "default": 1.5 }, "a_float_2": { "description": "Computed Attribute", "type": "float[2]", "default": [1.5, 2.5] }, "a_float_3": { "description": "Computed Attribute", "type": "float[3]", "default": [1.5, 2.5, 3.5] }, "a_float_4": { "description": "Computed Attribute", "type": "float[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_float_array": { "description": "Computed Attribute", "type": "float[]", "default": [1.5, 2.5] }, "a_float_2_array": { "description": "Computed Attribute", "type": "float[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_float_3_array": { "description": "Computed Attribute", "type": "float[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_float_4_array": { "description": "Computed Attribute", "type": "float[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_frame_4": { "description": "Computed Attribute", "type": "frame[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] }, "a_frame_4_array": { "description": "Computed Attribute", "type": "frame[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] }, "a_half": { "description": "Computed Attribute", "type": "half", "default": 1.5 }, "a_half_2": { "description": "Computed Attribute", "type": "half[2]", "default": [1.5, 2.5] }, "a_half_3": { "description": "Computed Attribute", "type": "half[3]", "default": [1.5, 2.5, 3.5] }, "a_half_4": { "description": "Computed Attribute", "type": "half[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_half_array": { "description": "Computed Attribute", "type": "half[]", "default": [1.5, 2.5] }, "a_half_2_array": { "description": "Computed Attribute", "type": "half[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_half_3_array": { "description": "Computed Attribute", "type": "half[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_half_4_array": { "description": "Computed Attribute", "type": "half[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_int": { "description": "Computed Attribute", "type": "int", "default": 1 }, "a_int_2": { "description": "Computed Attribute", "type": "int[2]", "default": [1, 2] }, "a_int_3": { "description": "Computed Attribute", "type": "int[3]", "default": [1, 2, 3] }, "a_int_4": { "description": "Computed Attribute", "type": "int[4]", "default": [1, 2, 3, 4] }, "a_int_array": { "description": "Computed Attribute", "type": "int[]", "default": [1, 2] }, "a_int_2_array": { "description": "Computed Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] }, "a_int_3_array": { "description": "Computed Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] }, "a_int_4_array": { "description": "Computed Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] }, "a_int64": { "description": "Computed Attribute", "type": "int64", "default": 12345 }, "a_int64_array": { "description": "Computed Attribute", "type": "int64[]", "default": [12345, 23456] }, "a_matrixd_2": { "description": "Computed Attribute", "type": "matrixd[2]", "default": [[1.5, 2.5], [3.5, 4.5]] }, "a_matrixd_3": { "description": "Computed Attribute", "type": "matrixd[3]", "default": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]] }, "a_matrixd_4": { "description": "Computed Attribute", "type": "matrixd[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] }, "a_matrixd_2_array": { "description": "Computed Attribute", "type": "matrixd[2][]", "default": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]] }, "a_matrixd_3_array": { "description": "Computed Attribute", "type": "matrixd[3][]", "default":[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]] }, "a_matrixd_4_array": { "description": "Computed Attribute", "type": "matrixd[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] }, "a_normald_3": { "description": "Computed Attribute", "type": "normald[3]", "default": [1.5, 2.5, 3.5] }, "a_normalf_3": { "description": "Computed Attribute", "type": "normalf[3]", "default": [1.5, 2.5, 3.5] }, "a_normalh_3": { "description": "Computed Attribute", "type": "normalh[3]", "default": [1.5, 2.5, 3.5] }, "a_normald_3_array": { "description": "Computed Attribute", "type": "normald[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_normalf_3_array": { "description": "Computed Attribute", "type": "normalf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_normalh_3_array": { "description": "Computed Attribute", "type": "normalh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_objectId": { "description": "Computed Attribute", "type": "objectId", "default": 2 }, "a_objectId_array": { "description": "Computed Attribute", "type": "objectId[]", "default": [2, 3] }, "a_path": { "description": "Computed Attribute", "type": "path", "default": "/Output" }, "a_pointd_3": { "description": "Computed Attribute", "type": "pointd[3]", "default": [1.5, 2.5, 3.5] }, "a_pointf_3": { "description": "Computed Attribute", "type": "pointf[3]", "default": [1.5, 2.5, 3.5] }, "a_pointh_3": { "description": "Computed Attribute", "type": "pointh[3]", "default": [1.5, 2.5, 3.5] }, "a_pointd_3_array": { "description": "Computed Attribute", "type": "pointd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_pointf_3_array": { "description": "Computed Attribute", "type": "pointf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_pointh_3_array": { "description": "Computed Attribute", "type": "pointh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_quatd_4": { "description": "Computed Attribute", "type": "quatd[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quatf_4": { "description": "Computed Attribute", "type": "quatf[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quath_4": { "description": "Computed Attribute", "type": "quath[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quatd_4_array": { "description": "Computed Attribute", "type": "quatd[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_quatf_4_array": { "description": "Computed Attribute", "type": "quatf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_quath_4_array": { "description": "Computed Attribute", "type": "quath[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_string": { "description": "Computed Attribute", "type": "string", "default": "Snoke" }, "a_target": { "description": "Computed Attribute", "type": "target"}, "a_texcoordd_2": { "description": "Computed Attribute", "type": "texcoordd[2]", "default": [1.5, 2.5] }, "a_texcoordd_3": { "description": "Computed Attribute", "type": "texcoordd[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordf_2": { "description": "Computed Attribute", "type": "texcoordf[2]", "default": [1.5, 2.5] }, "a_texcoordf_3": { "description": "Computed Attribute", "type": "texcoordf[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordh_2": { "description": "Computed Attribute", "type": "texcoordh[2]", "default": [1.5, 2.5] }, "a_texcoordh_3": { "description": "Computed Attribute", "type": "texcoordh[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordd_2_array": { "description": "Computed Attribute", "type": "texcoordd[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordd_3_array": { "description": "Computed Attribute", "type": "texcoordd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_texcoordf_2_array": { "description": "Computed Attribute", "type": "texcoordf[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordf_3_array": { "description": "Computed Attribute", "type": "texcoordf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_texcoordh_2_array": { "description": "Computed Attribute", "type": "texcoordh[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordh_3_array": { "description": "Computed Attribute", "type": "texcoordh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_timecode": { "description": "Computed Attribute", "type": "timecode", "default": 2.5 }, "a_timecode_array": { "description": "Computed Attribute", "type": "timecode[]", "default": [2.5, 3.5] }, "a_token": { "description": "Computed Attribute", "type": "token", "default": "Jedi" }, "a_token_array": { "description": "Computed Attribute", "type": "token[]", "default": ["Luke", "Skywalker"] }, "a_uchar": { "description": "Computed Attribute", "type": "uchar", "default": 2 }, "a_uchar_array": { "description": "Computed Attribute", "type": "uchar[]", "default": [2, 3] }, "a_uint": { "description": "Computed Attribute", "type": "uint", "default": 2 }, "a_uint_array": { "description": "Computed Attribute", "type": "uint[]", "default": [2, 3] }, "a_uint64": { "description": "Computed Attribute", "type": "uint64", "default": 2 }, "a_uint64_array": { "description": "Computed Attribute", "type": "uint64[]", "default": [2, 3] }, "a_vectord_3": { "description": "Computed Attribute", "type": "vectord[3]", "default": [1.5, 2.5, 3.5] }, "a_vectorf_3": { "description": "Computed Attribute", "type": "vectorf[3]", "default": [1.5, 2.5, 3.5] }, "a_vectorh_3": { "description": "Computed Attribute", "type": "vectorh[3]", "default": [1.5, 2.5, 3.5] }, "a_vectord_3_array": { "description": "Computed Attribute", "type": "vectord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_vectorf_3_array": { "description": "Computed Attribute", "type": "vectorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_vectorh_3_array": { "description": "Computed Attribute", "type": "vectorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] } }, "state": { "a_firstEvaluation": { "description": "State Attribute", "type": "bool", "default": true }, "a_bool": { "description": "State Attribute", "type": "bool", "default": true }, "a_bool_array": { "description": "State Attribute", "type": "bool[]", "default": [true, false] }, "a_bundle": { "description": "State Attribute", "type": "bundle" }, "a_colord_3": { "description": "State Attribute", "type": "colord[3]", "default": [1.5, 2.5, 3.5] }, "a_colord_4": { "description": "State Attribute", "type": "colord[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colorf_3": { "description": "State Attribute", "type": "colorf[3]", "default": [1.5, 2.5, 3.5] }, "a_colorf_4": { "description": "State Attribute", "type": "colorf[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colorh_3": { "description": "State Attribute", "type": "colorh[3]", "default": [1.5, 2.5, 3.5] }, "a_colorh_4": { "description": "State Attribute", "type": "colorh[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colord_3_array": { "description": "State Attribute", "type": "colord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colord_4_array": { "description": "State Attribute", "type": "colord[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_colorf_3_array": { "description": "State Attribute", "type": "colorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colorf_4_array": { "description": "State Attribute", "type": "colorf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_colorh_3_array": { "description": "State Attribute", "type": "colorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colorh_4_array": { "description": "State Attribute", "type": "colorh[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_double": { "description": "State Attribute", "type": "double", "default": 1.5 }, "a_double_2": { "description": "State Attribute", "type": "double[2]", "default": [1.5, 2.5] }, "a_double_3": { "description": "State Attribute", "type": "double[3]", "default": [1.5, 2.5, 3.5] }, "a_double_4": { "description": "State Attribute", "type": "double[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_double_array": { "description": "State Attribute", "type": "double[]", "default": [1.5, 2.5] }, "a_double_2_array": { "description": "State Attribute", "type": "double[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_double_3_array": { "description": "State Attribute", "type": "double[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_double_4_array": { "description": "State Attribute", "type": "double[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_execution": { "description": "State Attribute", "type": "execution", "default": 2 }, "a_float": { "description": "State Attribute", "type": "float", "default": 1.5 }, "a_float_2": { "description": "State Attribute", "type": "float[2]", "default": [1.5, 2.5] }, "a_float_3": { "description": "State Attribute", "type": "float[3]", "default": [1.5, 2.5, 3.5] }, "a_float_4": { "description": "State Attribute", "type": "float[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_float_array": { "description": "State Attribute", "type": "float[]", "default": [1.5, 2.5] }, "a_float_2_array": { "description": "State Attribute", "type": "float[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_float_3_array": { "description": "State Attribute", "type": "float[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_float_4_array": { "description": "State Attribute", "type": "float[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_frame_4": { "description": "State Attribute", "type": "frame[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] }, "a_frame_4_array": { "description": "State Attribute", "type": "frame[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] }, "a_half": { "description": "State Attribute", "type": "half", "default": 1.5 }, "a_half_2": { "description": "State Attribute", "type": "half[2]", "default": [1.5, 2.5] }, "a_half_3": { "description": "State Attribute", "type": "half[3]", "default": [1.5, 2.5, 3.5] }, "a_half_4": { "description": "State Attribute", "type": "half[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_half_array": { "description": "State Attribute", "type": "half[]", "default": [1.5, 2.5] }, "a_half_2_array": { "description": "State Attribute", "type": "half[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_half_3_array": { "description": "State Attribute", "type": "half[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_half_4_array": { "description": "State Attribute", "type": "half[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_int": { "description": "State Attribute", "type": "int", "default": 1 }, "a_int_2": { "description": "State Attribute", "type": "int[2]", "default": [1, 2] }, "a_int_3": { "description": "State Attribute", "type": "int[3]", "default": [1, 2, 3] }, "a_int_4": { "description": "State Attribute", "type": "int[4]", "default": [1, 2, 3, 4] }, "a_int_array": { "description": "State Attribute", "type": "int[]", "default": [1, 2] }, "a_int_2_array": { "description": "State Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] }, "a_int_3_array": { "description": "State Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] }, "a_int_4_array": { "description": "State Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] }, "a_int64": { "description": "State Attribute", "type": "int64", "default": 12345 }, "a_int64_array": { "description": "State Attribute", "type": "int64[]", "default": [12345, 23456] }, "a_matrixd_2": { "description": "State Attribute", "type": "matrixd[2]", "default": [[1.5, 2.5], [3.5, 4.5]] }, "a_matrixd_3": { "description": "State Attribute", "type": "matrixd[3]", "default": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]] }, "a_matrixd_4": { "description": "State Attribute", "type": "matrixd[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] }, "a_matrixd_2_array": { "description": "State Attribute", "type": "matrixd[2][]", "default": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]] }, "a_matrixd_3_array": { "description": "State Attribute", "type": "matrixd[3][]", "default":[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]] }, "a_matrixd_4_array": { "description": "State Attribute", "type": "matrixd[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] }, "a_normald_3": { "description": "State Attribute", "type": "normald[3]", "default": [1.5, 2.5, 3.5] }, "a_normalf_3": { "description": "State Attribute", "type": "normalf[3]", "default": [1.5, 2.5, 3.5] }, "a_normalh_3": { "description": "State Attribute", "type": "normalh[3]", "default": [1.5, 2.5, 3.5] }, "a_normald_3_array": { "description": "State Attribute", "type": "normald[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_normalf_3_array": { "description": "State Attribute", "type": "normalf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_normalh_3_array": { "description": "State Attribute", "type": "normalh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_objectId": { "description": "State Attribute", "type": "objectId", "default": 2 }, "a_objectId_array": { "description": "State Attribute", "type": "objectId[]", "default": [2, 3] }, "a_path": { "description": "State Attribute", "type": "path", "default": "/State" }, "a_pointd_3": { "description": "State Attribute", "type": "pointd[3]", "default": [1.5, 2.5, 3.5] }, "a_pointf_3": { "description": "State Attribute", "type": "pointf[3]", "default": [1.5, 2.5, 3.5] }, "a_pointh_3": { "description": "State Attribute", "type": "pointh[3]", "default": [1.5, 2.5, 3.5] }, "a_pointd_3_array": { "description": "State Attribute", "type": "pointd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_pointf_3_array": { "description": "State Attribute", "type": "pointf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_pointh_3_array": { "description": "State Attribute", "type": "pointh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_quatd_4": { "description": "State Attribute", "type": "quatd[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quatf_4": { "description": "State Attribute", "type": "quatf[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quath_4": { "description": "State Attribute", "type": "quath[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quatd_4_array": { "description": "State Attribute", "type": "quatd[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_quatf_4_array": { "description": "State Attribute", "type": "quatf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_quath_4_array": { "description": "State Attribute", "type": "quath[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_string": { "description": "State Attribute", "type": "string", "default": "Snoke" }, "a_stringEmpty": { "description": "State Attribute", "type": "string" }, "a_target": { "description": "State Attribute", "type": "target"}, "a_texcoordd_2": { "description": "State Attribute", "type": "texcoordd[2]", "default": [1.5, 2.5] }, "a_texcoordd_3": { "description": "State Attribute", "type": "texcoordd[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordf_2": { "description": "State Attribute", "type": "texcoordf[2]", "default": [1.5, 2.5] }, "a_texcoordf_3": { "description": "State Attribute", "type": "texcoordf[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordh_2": { "description": "State Attribute", "type": "texcoordh[2]", "default": [1.5, 2.5] }, "a_texcoordh_3": { "description": "State Attribute", "type": "texcoordh[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordd_2_array": { "description": "State Attribute", "type": "texcoordd[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordd_3_array": { "description": "State Attribute", "type": "texcoordd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_texcoordf_2_array": { "description": "State Attribute", "type": "texcoordf[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordf_3_array": { "description": "State Attribute", "type": "texcoordf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_texcoordh_2_array": { "description": "State Attribute", "type": "texcoordh[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordh_3_array": { "description": "State Attribute", "type": "texcoordh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_timecode": { "description": "State Attribute", "type": "timecode", "default": 2.5 }, "a_timecode_array": { "description": "State Attribute", "type": "timecode[]", "default": [2.5, 3.5] }, "a_token": { "description": "State Attribute", "type": "token", "default": "Jedi" }, "a_token_array": { "description": "State Attribute", "type": "token[]", "default": ["Luke", "Skywalker"] }, "a_uchar": { "description": "State Attribute", "type": "uchar", "default": 2 }, "a_uchar_array": { "description": "State Attribute", "type": "uchar[]", "default": [2, 3] }, "a_uint": { "description": "State Attribute", "type": "uint", "default": 2 }, "a_uint_array": { "description": "State Attribute", "type": "uint[]", "default": [2, 3] }, "a_uint64": { "description": "State Attribute", "type": "uint64", "default": 2 }, "a_uint64_array": { "description": "State Attribute", "type": "uint64[]", "default": [2, 3] }, "a_vectord_3": { "description": "State Attribute", "type": "vectord[3]", "default": [1.5, 2.5, 3.5] }, "a_vectorf_3": { "description": "State Attribute", "type": "vectorf[3]", "default": [1.5, 2.5, 3.5] }, "a_vectorh_3": { "description": "State Attribute", "type": "vectorh[3]", "default": [1.5, 2.5, 3.5] }, "a_vectord_3_array": { "description": "State Attribute", "type": "vectord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_vectorf_3_array": { "description": "State Attribute", "type": "vectorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_vectorh_3_array": { "description": "State Attribute", "type": "vectorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] } }, "tests": [ { "description": "Check to see if the state and outputs get their expected defaults when compute is bypassed", "inputs": { "inputs:doNotCompute": true }, "outputs": { "a_bool": true, "a_bool_array": [true, false], "a_colord_3": [1.5, 2.5, 3.5], "a_colord_4": [1.5, 2.5, 3.5, 4.5], "a_colorf_3": [1.5, 2.5, 3.5], "a_colorf_4": [1.5, 2.5, 3.5, 4.5], "a_colorh_3": [1.5, 2.5, 3.5], "a_colorh_4": [1.5, 2.5, 3.5, 4.5], "a_colord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colord_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_colorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colorf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_colorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colorh_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_double": 1.5, "a_double_2": [1.5, 2.5], "a_double_3": [1.5, 2.5, 3.5], "a_double_4": [1.5, 2.5, 3.5, 4.5], "a_double_array": [1.5, 2.5], "a_double_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_double_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_double_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_execution": 2, "a_float": 1.5, "a_float_2": [1.5, 2.5], "a_float_3": [1.5, 2.5, 3.5], "a_float_4": [1.5, 2.5, 3.5, 4.5], "a_float_array": [1.5, 2.5], "a_float_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_float_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_float_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_frame_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], "a_frame_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], "a_half": 1.5, "a_half_2": [1.5, 2.5], "a_half_3": [1.5, 2.5, 3.5], "a_half_4": [1.5, 2.5, 3.5, 4.5], "a_half_array": [1.5, 2.5], "a_half_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_half_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_half_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_int": 1, "a_int_2": [1, 2], "a_int_3": [1, 2, 3], "a_int_4": [1, 2, 3, 4], "a_int_array": [1, 2], "a_int_2_array": [[1, 2], [3, 4]], "a_int_3_array": [[1, 2, 3], [4, 5, 6]], "a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]], "a_int64": 12345, "a_int64_array": [12345, 23456], "a_matrixd_2": [[1.5, 2.5], [3.5, 4.5]], "a_matrixd_3": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], "a_matrixd_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], "a_matrixd_2_array": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]], "a_matrixd_3_array": [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]], "a_matrixd_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], "a_normald_3": [1.5, 2.5, 3.5], "a_normalf_3": [1.5, 2.5, 3.5], "a_normalh_3": [1.5, 2.5, 3.5], "a_normald_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_normalf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_normalh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_objectId": 2, "a_objectId_array": [2, 3], "a_path": "/Output", "a_pointd_3": [1.5, 2.5, 3.5], "a_pointf_3": [1.5, 2.5, 3.5], "a_pointh_3": [1.5, 2.5, 3.5], "a_pointd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_pointf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_pointh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_quatd_4": [1.5, 2.5, 3.5, 4.5], "a_quatf_4": [1.5, 2.5, 3.5, 4.5], "a_quath_4": [1.5, 2.5, 3.5, 4.5], "a_quatd_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_quatf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_quath_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_string": "Snoke", "a_texcoordd_2": [1.5, 2.5], "a_texcoordd_3": [1.5, 2.5, 3.5], "a_texcoordf_2": [1.5, 2.5], "a_texcoordf_3": [1.5, 2.5, 3.5], "a_texcoordh_2": [1.5, 2.5], "a_texcoordh_3": [1.5, 2.5, 3.5], "a_texcoordd_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_texcoordf_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_texcoordh_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_timecode": 2.5, "a_timecode_array": [2.5, 3.5], "a_token": "Jedi", "a_token_array": ["Luke", "Skywalker"], "a_uchar": 2, "a_uchar_array": [2, 3], "a_uint": 2, "a_uint_array": [2, 3], "a_uint64": 2, "a_uint64_array": [2, 3], "a_vectord_3": [1.5, 2.5, 3.5], "a_vectorf_3": [1.5, 2.5, 3.5], "a_vectorh_3": [1.5, 2.5, 3.5], "a_vectord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_vectorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_vectorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "state_get": { "a_bool_array": [true, false], "a_colord_3": [1.5, 2.5, 3.5], "a_colord_4": [1.5, 2.5, 3.5, 4.5], "a_colorf_3": [1.5, 2.5, 3.5], "a_colorf_4": [1.5, 2.5, 3.5, 4.5], "a_colorh_3": [1.5, 2.5, 3.5], "a_colorh_4": [1.5, 2.5, 3.5, 4.5], "a_colord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colord_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_colorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colorf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_colorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colorh_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_double": 1.5, "a_double_2": [1.5, 2.5], "a_double_3": [1.5, 2.5, 3.5], "a_double_4": [1.5, 2.5, 3.5, 4.5], "a_double_array": [1.5, 2.5], "a_double_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_double_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_double_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_execution": 2, "a_float": 1.5, "a_float_2": [1.5, 2.5], "a_float_3": [1.5, 2.5, 3.5], "a_float_4": [1.5, 2.5, 3.5, 4.5], "a_float_array": [1.5, 2.5], "a_float_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_float_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_float_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_frame_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], "a_frame_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], "a_half": 1.5, "a_half_2": [1.5, 2.5], "a_half_3": [1.5, 2.5, 3.5], "a_half_4": [1.5, 2.5, 3.5, 4.5], "a_half_array": [1.5, 2.5], "a_half_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_half_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_half_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_int": 1, "a_int_2": [1, 2], "a_int_3": [1, 2, 3], "a_int_4": [1, 2, 3, 4], "a_int_array": [1, 2], "a_int_2_array": [[1, 2], [3, 4]], "a_int_3_array": [[1, 2, 3], [4, 5, 6]], "a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]], "a_int64": 12345, "a_int64_array": [12345, 23456], "a_matrixd_2": [[1.5, 2.5], [3.5, 4.5]], "a_matrixd_3": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], "a_matrixd_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], "a_matrixd_2_array": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]], "a_matrixd_3_array": [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]], "a_matrixd_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], "a_normald_3": [1.5, 2.5, 3.5], "a_normalf_3": [1.5, 2.5, 3.5], "a_normalh_3": [1.5, 2.5, 3.5], "a_normald_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_normalf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_normalh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_objectId": 2, "a_objectId_array": [2, 3], "a_path": "/State", "a_pointd_3": [1.5, 2.5, 3.5], "a_pointf_3": [1.5, 2.5, 3.5], "a_pointh_3": [1.5, 2.5, 3.5], "a_pointd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_pointf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_pointh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_quatd_4": [1.5, 2.5, 3.5, 4.5], "a_quatf_4": [1.5, 2.5, 3.5, 4.5], "a_quath_4": [1.5, 2.5, 3.5, 4.5], "a_quatd_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_quatf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_quath_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_string": "Snoke", "a_stringEmpty": "", "a_texcoordd_2": [1.5, 2.5], "a_texcoordd_3": [1.5, 2.5, 3.5], "a_texcoordf_2": [1.5, 2.5], "a_texcoordf_3": [1.5, 2.5, 3.5], "a_texcoordh_2": [1.5, 2.5], "a_texcoordh_3": [1.5, 2.5, 3.5], "a_texcoordd_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_texcoordf_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_texcoordh_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_timecode": 2.5, "a_timecode_array": [2.5, 3.5], "a_token": "Jedi", "a_token_array": ["Luke", "Skywalker"], "a_uchar": 2, "a_uchar_array": [2, 3], "a_uint": 2, "a_uint_array": [2, 3], "a_uint64": 2, "a_uint64_array": [2, 3], "a_vectord_3": [1.5, 2.5, 3.5], "a_vectorf_3": [1.5, 2.5, 3.5], "a_vectorh_3": [1.5, 2.5, 3.5], "a_vectord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_vectorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_vectorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] } }, { "description": "Regular evaluation where the default inputs are copied to the outputs", "inputs": { "inputs:doNotCompute": false }, "outputs": { "a_bool": false, "a_bool_array": [false, true], "a_colord_3": [1.0, 2.0, 3.0], "a_colord_4": [1.0, 2.0, 3.0, 4.0], "a_colorf_3": [1.0, 2.0, 3.0], "a_colorf_4": [1.0, 2.0, 3.0, 4.0], "a_colorh_3": [1.0, 2.0, 3.0], "a_colorh_4": [1.0, 2.0, 3.0, 4.0], "a_colord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colord_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_colorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colorf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_colorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colorh_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_double": 1.0, "a_double_2": [1.0, 2.0], "a_double_3": [1.0, 2.0, 3.0], "a_double_4": [1.0, 2.0, 3.0, 4.0], "a_double_array": [1.0, 2.0], "a_double_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_double_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_double_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_execution": 1, "a_float": 1.0, "a_float_2": [1.0, 2.0], "a_float_3": [1.0, 2.0, 3.0], "a_float_4": [1.0, 2.0, 3.0, 4.0], "a_float_array": [1.0, 2.0], "a_float_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_float_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_float_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_frame_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], "a_frame_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], "a_half": 1.0, "a_half_2": [1.0, 2.0], "a_half_3": [1.0, 2.0, 3.0], "a_half_4": [1.0, 2.0, 3.0, 4.0], "a_half_array": [1.0, 2.0], "a_half_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_half_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_half_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_int": 1, "a_int_2": [1, 2], "a_int_3": [1, 2, 3], "a_int_4": [1, 2, 3, 4], "a_int_array": [1, 2], "a_int_2_array": [[1, 2], [3, 4]], "a_int_3_array": [[1, 2, 3], [4, 5, 6]], "a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]], "a_int64": 12345, "a_int64_array": [12345, 23456], "a_matrixd_2": [[1.0, 2.0], [3.0, 4.0]], "a_matrixd_3": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], "a_matrixd_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], "a_matrixd_2_array": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]], "a_matrixd_3_array": [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]], "a_matrixd_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], "a_normald_3": [1.0, 2.0, 3.0], "a_normalf_3": [1.0, 2.0, 3.0], "a_normalh_3": [1.0, 2.0, 3.0], "a_normald_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_normalf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_normalh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_objectId": 1, "a_objectId_array": [1, 2], "a_path": "/Input", "a_pointd_3": [1.0, 2.0, 3.0], "a_pointf_3": [1.0, 2.0, 3.0], "a_pointh_3": [1.0, 2.0, 3.0], "a_pointd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_pointf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_pointh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_quatd_4": [1.0, 2.0, 3.0, 4.0], "a_quatf_4": [1.0, 2.0, 3.0, 4.0], "a_quath_4": [1.0, 2.0, 3.0, 4.0], "a_quatd_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_quatf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_quath_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_string": "Rey", "a_texcoordd_2": [1.0, 2.0], "a_texcoordd_3": [1.0, 2.0, 3.0], "a_texcoordf_2": [1.0, 2.0], "a_texcoordf_3": [1.0, 2.0, 3.0], "a_texcoordh_2": [1.0, 2.0], "a_texcoordh_3": [1.0, 2.0, 3.0], "a_texcoordd_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_texcoordf_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_texcoordh_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_timecode": 1.0, "a_timecode_array": [1.0, 2.0], "a_token": "Sith", "a_token_array": ["Kylo", "Ren"], "a_uchar": 1, "a_uchar_array": [1, 2], "a_uint": 1, "a_uint_array": [1, 2], "a_uint64": 1, "a_uint64_array": [1, 2], "a_vectord_3": [1.0, 2.0, 3.0], "a_vectorf_3": [1.0, 2.0, 3.0], "a_vectorh_3": [1.0, 2.0, 3.0], "a_vectord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_vectorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_vectorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "state_get": { "a_bool_array": [false, true], "a_colord_3": [1.0, 2.0, 3.0], "a_colord_4": [1.0, 2.0, 3.0, 4.0], "a_colorf_3": [1.0, 2.0, 3.0], "a_colorf_4": [1.0, 2.0, 3.0, 4.0], "a_colorh_3": [1.0, 2.0, 3.0], "a_colorh_4": [1.0, 2.0, 3.0, 4.0], "a_colord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colord_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_colorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colorf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_colorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colorh_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_double": 1.0, "a_double_2": [1.0, 2.0], "a_double_3": [1.0, 2.0, 3.0], "a_double_4": [1.0, 2.0, 3.0, 4.0], "a_double_array": [1.0, 2.0], "a_double_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_double_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_double_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_execution": 1, "a_float": 1.0, "a_float_2": [1.0, 2.0], "a_float_3": [1.0, 2.0, 3.0], "a_float_4": [1.0, 2.0, 3.0, 4.0], "a_float_array": [1.0, 2.0], "a_float_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_float_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_float_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_frame_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], "a_frame_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], "a_half": 1.0, "a_half_2": [1.0, 2.0], "a_half_3": [1.0, 2.0, 3.0], "a_half_4": [1.0, 2.0, 3.0, 4.0], "a_half_array": [1.0, 2.0], "a_half_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_half_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_half_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_int": 1, "a_int_2": [1, 2], "a_int_3": [1, 2, 3], "a_int_4": [1, 2, 3, 4], "a_int_array": [1, 2], "a_int_2_array": [[1, 2], [3, 4]], "a_int_3_array": [[1, 2, 3], [4, 5, 6]], "a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]], "a_int64": 12345, "a_int64_array": [12345, 23456], "a_matrixd_2": [[1.0, 2.0], [3.0, 4.0]], "a_matrixd_3": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], "a_matrixd_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], "a_matrixd_2_array": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]], "a_matrixd_3_array": [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]], "a_matrixd_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], "a_normald_3": [1.0, 2.0, 3.0], "a_normalf_3": [1.0, 2.0, 3.0], "a_normalh_3": [1.0, 2.0, 3.0], "a_normald_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_normalf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_normalh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_objectId": 1, "a_objectId_array": [1, 2], "a_path": "/Input", "a_pointd_3": [1.0, 2.0, 3.0], "a_pointf_3": [1.0, 2.0, 3.0], "a_pointh_3": [1.0, 2.0, 3.0], "a_pointd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_pointf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_pointh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_quatd_4": [1.0, 2.0, 3.0, 4.0], "a_quatf_4": [1.0, 2.0, 3.0, 4.0], "a_quath_4": [1.0, 2.0, 3.0, 4.0], "a_quatd_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_quatf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_quath_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_string": "Rey", "a_stringEmpty": "Rey", "a_texcoordd_2": [1.0, 2.0], "a_texcoordd_3": [1.0, 2.0, 3.0], "a_texcoordf_2": [1.0, 2.0], "a_texcoordf_3": [1.0, 2.0, 3.0], "a_texcoordh_2": [1.0, 2.0], "a_texcoordh_3": [1.0, 2.0, 3.0], "a_texcoordd_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_texcoordf_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_texcoordh_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_timecode": 1.0, "a_timecode_array": [1.0, 2.0], "a_token": "Sith", "a_token_array": ["Kylo", "Ren"], "a_uchar": 1, "a_uchar_array": [1, 2], "a_uint": 1, "a_uint_array": [1, 2], "a_uint64": 1, "a_uint64_array": [1, 2], "a_vectord_3": [1.0, 2.0, 3.0], "a_vectorf_3": [1.0, 2.0, 3.0], "a_vectorh_3": [1.0, 2.0, 3.0], "a_vectord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_vectorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_vectorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] } }, { "description": "Regular evaluation where non-default inputs are set and copied to the outputs", "inputs": { "inputs:doNotCompute": false, "a_bool": true, "a_bool_array": [true, true], "a_colord_3": [1.25, 2.25, 3.25], "a_colord_4": [1.25, 2.25, 3.25, 4.25], "a_colorf_3": [1.25, 2.25, 3.25], "a_colorf_4": [1.25, 2.25, 3.25, 4.25], "a_colorh_3": [1.25, 2.25, 3.25], "a_colorh_4": [1.25, 2.25, 3.25, 4.25], "a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_double": 1.25, "a_double_2": [1.25, 2.25], "a_double_3": [1.25, 2.25, 3.25], "a_double_4": [1.25, 2.25, 3.25, 4.25], "a_double_array": [1.25, 2.25], "a_double_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_execution": 3, "a_float": 1.25, "a_float_2": [1.25, 2.25], "a_float_3": [1.25, 2.25, 3.25], "a_float_4": [1.25, 2.25, 3.25, 4.25], "a_float_array": [1.25, 2.25], "a_float_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], "a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_half": 1.25, "a_half_2": [1.25, 2.25], "a_half_3": [1.25, 2.25, 3.25], "a_half_4": [1.25, 2.25, 3.25, 4.25], "a_half_array": [1.25, 2.25], "a_half_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_int": 11, "a_int_2": [11, 12], "a_int_3": [11, 12, 13], "a_int_4": [11, 12, 13, 14], "a_int_array": [11, 12], "a_int_2_array": [[11, 12], [13, 14]], "a_int_3_array": [[11, 12, 13], [14, 15, 16]], "a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]], "a_int64": 34567, "a_int64_array": [45678, 56789], "a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]], "a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]], "a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]], "a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]], "a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]], "a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_normald_3": [1.25, 2.25, 3.25], "a_normalf_3": [1.25, 2.25, 3.25], "a_normalh_3": [1.25, 2.25, 3.25], "a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_objectId": 3, "a_objectId_array": [3, 4], "a_path": "/Test", "a_pointd_3": [1.25, 2.25, 3.25], "a_pointf_3": [1.25, 2.25, 3.25], "a_pointh_3": [1.25, 2.25, 3.25], "a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_quatd_4": [1.25, 2.25, 3.25, 4.25], "a_quatf_4": [1.25, 2.25, 3.25, 4.25], "a_quath_4": [1.25, 2.25, 3.25, 4.25], "a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_string": "Palpatine", "a_texcoordd_2": [1.25, 2.25], "a_texcoordd_3": [1.25, 2.25, 3.25], "a_texcoordf_2": [1.25, 2.25], "a_texcoordf_3": [1.25, 2.25, 3.25], "a_texcoordh_2": [1.25, 2.25], "a_texcoordh_3": [1.25, 2.25, 3.25], "a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_timecode": 1.25, "a_timecode_array": [1.25, 2.25], "a_token": "Rebels", "a_token_array": ["Han", "Solo"], "a_uchar": 3, "a_uchar_array": [3, 4], "a_uint": 3, "a_uint_array": [3, 4], "a_uint64": 3, "a_uint64_array": [3, 4], "a_vectord_3": [1.25, 2.25, 3.25], "a_vectorf_3": [1.25, 2.25, 3.25], "a_vectorh_3": [1.25, 2.25, 3.25], "a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]] }, "outputs": { "a_bool": true, "a_bool_array": [true, true], "a_colord_3": [1.25, 2.25, 3.25], "a_colord_4": [1.25, 2.25, 3.25, 4.25], "a_colorf_3": [1.25, 2.25, 3.25], "a_colorf_4": [1.25, 2.25, 3.25, 4.25], "a_colorh_3": [1.25, 2.25, 3.25], "a_colorh_4": [1.25, 2.25, 3.25, 4.25], "a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_double": 1.25, "a_double_2": [1.25, 2.25], "a_double_3": [1.25, 2.25, 3.25], "a_double_4": [1.25, 2.25, 3.25, 4.25], "a_double_array": [1.25, 2.25], "a_double_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_execution": 3, "a_float": 1.25, "a_float_2": [1.25, 2.25], "a_float_3": [1.25, 2.25, 3.25], "a_float_4": [1.25, 2.25, 3.25, 4.25], "a_float_array": [1.25, 2.25], "a_float_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], "a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_half": 1.25, "a_half_2": [1.25, 2.25], "a_half_3": [1.25, 2.25, 3.25], "a_half_4": [1.25, 2.25, 3.25, 4.25], "a_half_array": [1.25, 2.25], "a_half_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_int": 11, "a_int_2": [11, 12], "a_int_3": [11, 12, 13], "a_int_4": [11, 12, 13, 14], "a_int_array": [11, 12], "a_int_2_array": [[11, 12], [13, 14]], "a_int_3_array": [[11, 12, 13], [14, 15, 16]], "a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]], "a_int64": 34567, "a_int64_array": [45678, 56789], "a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]], "a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]], "a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]], "a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]], "a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]], "a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_normald_3": [1.25, 2.25, 3.25], "a_normalf_3": [1.25, 2.25, 3.25], "a_normalh_3": [1.25, 2.25, 3.25], "a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_objectId": 3, "a_objectId_array": [3, 4], "a_path": "/Test", "a_pointd_3": [1.25, 2.25, 3.25], "a_pointf_3": [1.25, 2.25, 3.25], "a_pointh_3": [1.25, 2.25, 3.25], "a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_quatd_4": [1.25, 2.25, 3.25, 4.25], "a_quatf_4": [1.25, 2.25, 3.25, 4.25], "a_quath_4": [1.25, 2.25, 3.25, 4.25], "a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_string": "Palpatine", "a_texcoordd_2": [1.25, 2.25], "a_texcoordd_3": [1.25, 2.25, 3.25], "a_texcoordf_2": [1.25, 2.25], "a_texcoordf_3": [1.25, 2.25, 3.25], "a_texcoordh_2": [1.25, 2.25], "a_texcoordh_3": [1.25, 2.25, 3.25], "a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_timecode": 1.25, "a_timecode_array": [1.25, 2.25], "a_token": "Rebels", "a_token_array": ["Han", "Solo"], "a_uchar": 3, "a_uchar_array": [3, 4], "a_uint": 3, "a_uint_array": [3, 4], "a_uint64": 3, "a_uint64_array": [3, 4], "a_vectord_3": [1.25, 2.25, 3.25], "a_vectorf_3": [1.25, 2.25, 3.25], "a_vectorh_3": [1.25, 2.25, 3.25], "a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]] } } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPoints.cpp
// Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnRandomPointsDatabase.h> #include <cstdlib> // This is the implementation of the OGN node defined in OgnRandomPoints.ogn namespace omni { namespace graph { namespace test { class OgnRandomPoints { public: // Create an array of "pointCount" points at random locations within the bounding cube, // delineated by the corner points "minimum" and "maximum". static bool compute(OgnRandomPointsDatabase& db) { const auto& minimum = db.inputs.minimum(); GfVec3f rangeSize = db.inputs.maximum() - minimum; // No points mean nothing to generate const auto& pointCount = db.inputs.pointCount(); if (pointCount == 0) { return true; } auto& outputPoints = db.outputs.points(); outputPoints.resize(pointCount); for (size_t i=0; i<pointCount; ++i) { outputPoints[i] = GfVec3f{ minimum[0] + static_cast<float>(rand()) /( static_cast<float>(RAND_MAX/(rangeSize[0]))), minimum[1] + static_cast<float>(rand()) /( static_cast<float>(RAND_MAX/(rangeSize[1]))), minimum[2] + static_cast<float>(rand()) /( static_cast<float>(RAND_MAX/(rangeSize[2]))) }; } return true; } }; REGISTER_OGN_NODE() } // test } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestWriteVariablePy.ogn
{ "omni.graph.test.TestWriteVariablePy": { "version": 1, "description": ["Node that test writes a value to a variable in python"], "uiName": "Write Variable", "categories": ["internal:test"], "exclude": ["tests", "usd", "docs"], "icon": { "path": "TestNodeIcon.svg" }, "language": "python", "inputs": { "execIn": { "type": "execution", "description": "Input execution state" }, "variableName": { "type": "token", "description": "The name of the graph variable to use." }, "value": { "type": "any", "description": "The new value to be written" } }, "outputs": { "execOut": { "type": "execution", "description": "Output execution" }, "value": { "type": "any", "description": "The newly written value" } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnFakeTutorialTupleData.cpp
// Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnFakeTutorialTupleDataDatabase.h> #include <algorithm> class OgnFakeTutorialTupleData { public: static bool compute(OgnFakeTutorialTupleDataDatabase& db) { db.outputs.a_double3() = db.inputs.a_double3() + GfVec3d(1.0, 1.0, 1.0); return true; } }; REGISTER_OGN_NODE()
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllDataTypesPod.ogn
{ "TestAllDataTypesPod": { "version": 1, "description": [ "This node is meant to exercise the data access for all available data types used by the POD type", "configuration file. It includes all other data types as well, to confirm that non-overridden", "types retain their default types." ], "uiName": "Test Node: POD Data Type Override", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["usd", "docs"], "typeDefinitions": "TypeConfigurationPod.json", "inputs": { "doNotCompute": { "description": "Prevent the compute from running", "type": "bool", "default": true }, "a_bool": { "description": "Input Attribute", "type": "bool", "default": false }, "a_bool_array": { "description": "Input Attribute", "type": "bool[]", "default": [false, true] }, "a_colord_3": { "description": "Input Attribute", "type": "colord[3]", "default": [1.0, 2.0, 3.0] }, "a_colord_4": { "description": "Input Attribute", "type": "colord[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_colorf_3": { "description": "Input Attribute", "type": "colorf[3]", "default": [1.0, 2.0, 3.0] }, "a_colorf_4": { "description": "Input Attribute", "type": "colorf[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_colorh_3": { "description": "Input Attribute", "type": "colorh[3]", "default": [1.0, 2.0, 3.0] }, "a_colorh_4": { "description": "Input Attribute", "type": "colorh[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_colord_3_array": { "description": "Input Attribute", "type": "colord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_colord_4_array": { "description": "Input Attribute", "type": "colord[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_colorf_3_array": { "description": "Input Attribute", "type": "colorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_colorf_4_array": { "description": "Input Attribute", "type": "colorf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_colorh_3_array": { "description": "Input Attribute", "type": "colorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_colorh_4_array": { "description": "Input Attribute", "type": "colorh[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_double": { "description": "Input Attribute", "type": "double", "default": 1.0 }, "a_double_2": { "description": "Input Attribute", "type": "double[2]", "default": [1.0, 2.0] }, "a_double_3": { "description": "Input Attribute", "type": "double[3]", "default": [1.0, 2.0, 3.0] }, "a_double_4": { "description": "Input Attribute", "type": "double[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_double_array": { "description": "Input Attribute", "type": "double[]", "default": [1.0, 2.0] }, "a_double_2_array": { "description": "Input Attribute", "type": "double[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_double_3_array": { "description": "Input Attribute", "type": "double[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_double_4_array": { "description": "Input Attribute", "type": "double[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_execution": { "description": "Input Attribute", "type": "execution", "default": 1 }, "a_float": { "description": "Input Attribute", "type": "float", "default": 1.0 }, "a_float_2": { "description": "Input Attribute", "type": "float[2]", "default": [1.0, 2.0] }, "a_float_3": { "description": "Input Attribute", "type": "float[3]", "default": [1.0, 2.0, 3.0] }, "a_float_4": { "description": "Input Attribute", "type": "float[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_float_array": { "description": "Input Attribute", "type": "float[]", "default": [1.0, 2.0] }, "a_float_2_array": { "description": "Input Attribute", "type": "float[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_float_3_array": { "description": "Input Attribute", "type": "float[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_float_4_array": { "description": "Input Attribute", "type": "float[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_frame_4": { "description": "Input Attribute", "type": "frame[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] }, "a_frame_4_array": { "description": "Input Attribute", "type": "frame[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] }, "a_half": { "description": "Input Attribute", "type": "half", "default": 1.0 }, "a_half_2": { "description": "Input Attribute", "type": "half[2]", "default": [1.0, 2.0] }, "a_half_3": { "description": "Input Attribute", "type": "half[3]", "default": [1.0, 2.0, 3.0] }, "a_half_4": { "description": "Input Attribute", "type": "half[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_half_array": { "description": "Input Attribute", "type": "half[]", "default": [1.0, 2.0] }, "a_half_2_array": { "description": "Input Attribute", "type": "half[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_half_3_array": { "description": "Input Attribute", "type": "half[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_half_4_array": { "description": "Input Attribute", "type": "half[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_int": { "description": "Input Attribute", "type": "int", "default": 1 }, "a_int_2": { "description": "Input Attribute", "type": "int[2]", "default": [1, 2] }, "a_int_3": { "description": "Input Attribute", "type": "int[3]", "default": [1, 2, 3] }, "a_int_4": { "description": "Input Attribute", "type": "int[4]", "default": [1, 2, 3, 4] }, "a_int_array": { "description": "Input Attribute", "type": "int[]", "default": [1, 2] }, "a_int_2_array": { "description": "Input Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] }, "a_int_3_array": { "description": "Input Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] }, "a_int_4_array": { "description": "Input Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] }, "a_int64": { "description": "Input Attribute", "type": "int64", "default": 12345 }, "a_int64_array": { "description": "Input Attribute", "type": "int64[]", "default": [12345, 23456] }, "a_matrixd_2": { "description": "Input Attribute", "type": "matrixd[2]", "default": [[1.0, 2.0], [3.0, 4.0]] }, "a_matrixd_3": { "description": "Input Attribute", "type": "matrixd[3]", "default": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] }, "a_matrixd_4": { "description": "Input Attribute", "type": "matrixd[4]", "default": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] }, "a_matrixd_2_array": { "description": "Input Attribute", "type": "matrixd[2][]", "default": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] }, "a_matrixd_3_array": { "description": "Input Attribute", "type": "matrixd[3][]", "default":[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] }, "a_matrixd_4_array": { "description": "Input Attribute", "type": "matrixd[4][]", "default": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] }, "a_normald_3": { "description": "Input Attribute", "type": "normald[3]", "default": [1.0, 2.0, 3.0] }, "a_normalf_3": { "description": "Input Attribute", "type": "normalf[3]", "default": [1.0, 2.0, 3.0] }, "a_normalh_3": { "description": "Input Attribute", "type": "normalh[3]", "default": [1.0, 2.0, 3.0] }, "a_normald_3_array": { "description": "Input Attribute", "type": "normald[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_normalf_3_array": { "description": "Input Attribute", "type": "normalf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_normalh_3_array": { "description": "Input Attribute", "type": "normalh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_objectId": { "description": "Input Attribute", "type": "objectId", "default": 1 }, "a_objectId_array": { "description": "Input Attribute", "type": "objectId[]", "default": [1, 2] }, "a_pointd_3": { "description": "Input Attribute", "type": "pointd[3]", "default": [1.0, 2.0, 3.0] }, "a_pointf_3": { "description": "Input Attribute", "type": "pointf[3]", "default": [1.0, 2.0, 3.0] }, "a_pointh_3": { "description": "Input Attribute", "type": "pointh[3]", "default": [1.0, 2.0, 3.0] }, "a_pointd_3_array": { "description": "Input Attribute", "type": "pointd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_pointf_3_array": { "description": "Input Attribute", "type": "pointf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_pointh_3_array": { "description": "Input Attribute", "type": "pointh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_quatd_4": { "description": "Input Attribute", "type": "quatd[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_quatf_4": { "description": "Input Attribute", "type": "quatf[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_quath_4": { "description": "Input Attribute", "type": "quath[4]", "default": [1.0, 2.0, 3.0, 4.0] }, "a_quatd_4_array": { "description": "Input Attribute", "type": "quatd[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_quatf_4_array": { "description": "Input Attribute", "type": "quatf[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_quath_4_array": { "description": "Input Attribute", "type": "quath[4][]", "default": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] }, "a_string": { "description": "Input Attribute", "type": "string", "default": "Rey" }, "a_texcoordd_2": { "description": "Input Attribute", "type": "texcoordd[2]", "default": [1.0, 2.0] }, "a_texcoordd_3": { "description": "Input Attribute", "type": "texcoordd[3]", "default": [1.0, 2.0, 3.0] }, "a_texcoordf_2": { "description": "Input Attribute", "type": "texcoordf[2]", "default": [1.0, 2.0] }, "a_texcoordf_3": { "description": "Input Attribute", "type": "texcoordf[3]", "default": [1.0, 2.0, 3.0] }, "a_texcoordh_2": { "description": "Input Attribute", "type": "texcoordh[2]", "default": [1.0, 2.0] }, "a_texcoordh_3": { "description": "Input Attribute", "type": "texcoordh[3]", "default": [1.0, 2.0, 3.0] }, "a_texcoordd_2_array": { "description": "Input Attribute", "type": "texcoordd[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_texcoordd_3_array": { "description": "Input Attribute", "type": "texcoordd[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_texcoordf_2_array": { "description": "Input Attribute", "type": "texcoordf[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_texcoordf_3_array": { "description": "Input Attribute", "type": "texcoordf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_texcoordh_2_array": { "description": "Input Attribute", "type": "texcoordh[2][]", "default": [[1.0, 2.0], [11.0, 12.0]] }, "a_texcoordh_3_array": { "description": "Input Attribute", "type": "texcoordh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_timecode": { "description": "Input Attribute", "type": "timecode", "default": 1.0 }, "a_timecode_array": { "description": "Input Attribute", "type": "timecode[]", "default": [1.0, 2.0] }, "a_token": { "description": "Input Attribute", "type": "token", "default": "Sith" }, "a_token_array": { "description": "Input Attribute", "type": "token[]", "default": ["Kylo", "Ren"] }, "a_uchar": { "description": "Input Attribute", "type": "uchar", "default": 1 }, "a_uchar_array": { "description": "Input Attribute", "type": "uchar[]", "default": [1, 2] }, "a_uint": { "description": "Input Attribute", "type": "uint", "default": 1 }, "a_uint_array": { "description": "Input Attribute", "type": "uint[]", "default": [1, 2] }, "a_uint64": { "description": "Input Attribute", "type": "uint64", "default": 1 }, "a_uint64_array": { "description": "Input Attribute", "type": "uint64[]", "default": [1, 2] }, "a_vectord_3": { "description": "Input Attribute", "type": "vectord[3]", "default": [1.0, 2.0, 3.0] }, "a_vectorf_3": { "description": "Input Attribute", "type": "vectorf[3]", "default": [1.0, 2.0, 3.0] }, "a_vectorh_3": { "description": "Input Attribute", "type": "vectorh[3]", "default": [1.0, 2.0, 3.0] }, "a_vectord_3_array": { "description": "Input Attribute", "type": "vectord[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_vectorf_3_array": { "description": "Input Attribute", "type": "vectorf[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] }, "a_vectorh_3_array": { "description": "Input Attribute", "type": "vectorh[3][]", "default": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] } }, "outputs": { "a_bool": { "description": "Computed Attribute", "type": "bool", "default": true }, "a_bool_array": { "description": "Computed Attribute", "type": "bool[]", "default": [true, false] }, "a_colord_3": { "description": "Computed Attribute", "type": "colord[3]", "default": [1.5, 2.5, 3.5] }, "a_colord_4": { "description": "Computed Attribute", "type": "colord[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colorf_3": { "description": "Computed Attribute", "type": "colorf[3]", "default": [1.5, 2.5, 3.5] }, "a_colorf_4": { "description": "Computed Attribute", "type": "colorf[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colorh_3": { "description": "Computed Attribute", "type": "colorh[3]", "default": [1.5, 2.5, 3.5] }, "a_colorh_4": { "description": "Computed Attribute", "type": "colorh[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_colord_3_array": { "description": "Computed Attribute", "type": "colord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colord_4_array": { "description": "Computed Attribute", "type": "colord[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_colorf_3_array": { "description": "Computed Attribute", "type": "colorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colorf_4_array": { "description": "Computed Attribute", "type": "colorf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_colorh_3_array": { "description": "Computed Attribute", "type": "colorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_colorh_4_array": { "description": "Computed Attribute", "type": "colorh[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_double": { "description": "Computed Attribute", "type": "double", "default": 1.5 }, "a_double_2": { "description": "Computed Attribute", "type": "double[2]", "default": [1.5, 2.5] }, "a_double_3": { "description": "Computed Attribute", "type": "double[3]", "default": [1.5, 2.5, 3.5] }, "a_double_4": { "description": "Computed Attribute", "type": "double[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_double_array": { "description": "Computed Attribute", "type": "double[]", "default": [1.5, 2.5] }, "a_double_2_array": { "description": "Computed Attribute", "type": "double[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_double_3_array": { "description": "Computed Attribute", "type": "double[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_double_4_array": { "description": "Computed Attribute", "type": "double[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_execution": { "description": "Computed Attribute", "type": "execution", "default": 2 }, "a_float": { "description": "Computed Attribute", "type": "float", "default": 1.5 }, "a_float_2": { "description": "Computed Attribute", "type": "float[2]", "default": [1.5, 2.5] }, "a_float_3": { "description": "Computed Attribute", "type": "float[3]", "default": [1.5, 2.5, 3.5] }, "a_float_4": { "description": "Computed Attribute", "type": "float[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_float_array": { "description": "Computed Attribute", "type": "float[]", "default": [1.5, 2.5] }, "a_float_2_array": { "description": "Computed Attribute", "type": "float[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_float_3_array": { "description": "Computed Attribute", "type": "float[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_float_4_array": { "description": "Computed Attribute", "type": "float[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_frame_4": { "description": "Computed Attribute", "type": "frame[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] }, "a_frame_4_array": { "description": "Computed Attribute", "type": "frame[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] }, "a_half": { "description": "Computed Attribute", "type": "half", "default": 1.5 }, "a_half_2": { "description": "Computed Attribute", "type": "half[2]", "default": [1.5, 2.5] }, "a_half_3": { "description": "Computed Attribute", "type": "half[3]", "default": [1.5, 2.5, 3.5] }, "a_half_4": { "description": "Computed Attribute", "type": "half[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_half_array": { "description": "Computed Attribute", "type": "half[]", "default": [1.5, 2.5] }, "a_half_2_array": { "description": "Computed Attribute", "type": "half[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_half_3_array": { "description": "Computed Attribute", "type": "half[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_half_4_array": { "description": "Computed Attribute", "type": "half[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_int": { "description": "Computed Attribute", "type": "int", "default": 1 }, "a_int_2": { "description": "Computed Attribute", "type": "int[2]", "default": [1, 2] }, "a_int_3": { "description": "Computed Attribute", "type": "int[3]", "default": [1, 2, 3] }, "a_int_4": { "description": "Computed Attribute", "type": "int[4]", "default": [1, 2, 3, 4] }, "a_int_array": { "description": "Computed Attribute", "type": "int[]", "default": [1, 2] }, "a_int_2_array": { "description": "Computed Attribute", "type": "int[2][]", "default": [[1, 2], [3, 4]] }, "a_int_3_array": { "description": "Computed Attribute", "type": "int[3][]", "default": [[1, 2, 3], [4, 5, 6]] }, "a_int_4_array": { "description": "Computed Attribute", "type": "int[4][]", "default": [[1, 2, 3, 4], [5, 6, 7, 8]] }, "a_int64": { "description": "Computed Attribute", "type": "int64", "default": 12345 }, "a_int64_array": { "description": "Computed Attribute", "type": "int64[]", "default": [12345, 23456] }, "a_matrixd_2": { "description": "Computed Attribute", "type": "matrixd[2]", "default": [[1.5, 2.5], [3.5, 4.5]] }, "a_matrixd_3": { "description": "Computed Attribute", "type": "matrixd[3]", "default": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]] }, "a_matrixd_4": { "description": "Computed Attribute", "type": "matrixd[4]", "default": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]] }, "a_matrixd_2_array": { "description": "Computed Attribute", "type": "matrixd[2][]", "default": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]] }, "a_matrixd_3_array": { "description": "Computed Attribute", "type": "matrixd[3][]", "default":[[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]] }, "a_matrixd_4_array": { "description": "Computed Attribute", "type": "matrixd[4][]", "default": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]] }, "a_normald_3": { "description": "Computed Attribute", "type": "normald[3]", "default": [1.5, 2.5, 3.5] }, "a_normalf_3": { "description": "Computed Attribute", "type": "normalf[3]", "default": [1.5, 2.5, 3.5] }, "a_normalh_3": { "description": "Computed Attribute", "type": "normalh[3]", "default": [1.5, 2.5, 3.5] }, "a_normald_3_array": { "description": "Computed Attribute", "type": "normald[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_normalf_3_array": { "description": "Computed Attribute", "type": "normalf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_normalh_3_array": { "description": "Computed Attribute", "type": "normalh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_objectId": { "description": "Computed Attribute", "type": "objectId", "default": 2 }, "a_objectId_array": { "description": "Computed Attribute", "type": "objectId[]", "default": [2, 3] }, "a_pointd_3": { "description": "Computed Attribute", "type": "pointd[3]", "default": [1.5, 2.5, 3.5] }, "a_pointf_3": { "description": "Computed Attribute", "type": "pointf[3]", "default": [1.5, 2.5, 3.5] }, "a_pointh_3": { "description": "Computed Attribute", "type": "pointh[3]", "default": [1.5, 2.5, 3.5] }, "a_pointd_3_array": { "description": "Computed Attribute", "type": "pointd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_pointf_3_array": { "description": "Computed Attribute", "type": "pointf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_pointh_3_array": { "description": "Computed Attribute", "type": "pointh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_quatd_4": { "description": "Computed Attribute", "type": "quatd[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quatf_4": { "description": "Computed Attribute", "type": "quatf[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quath_4": { "description": "Computed Attribute", "type": "quath[4]", "default": [1.5, 2.5, 3.5, 4.5] }, "a_quatd_4_array": { "description": "Computed Attribute", "type": "quatd[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_quatf_4_array": { "description": "Computed Attribute", "type": "quatf[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_quath_4_array": { "description": "Computed Attribute", "type": "quath[4][]", "default": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]] }, "a_string": { "description": "Computed Attribute", "type": "string", "default": "Snoke" }, "a_texcoordd_2": { "description": "Computed Attribute", "type": "texcoordd[2]", "default": [1.5, 2.5] }, "a_texcoordd_3": { "description": "Computed Attribute", "type": "texcoordd[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordf_2": { "description": "Computed Attribute", "type": "texcoordf[2]", "default": [1.5, 2.5] }, "a_texcoordf_3": { "description": "Computed Attribute", "type": "texcoordf[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordh_2": { "description": "Computed Attribute", "type": "texcoordh[2]", "default": [1.5, 2.5] }, "a_texcoordh_3": { "description": "Computed Attribute", "type": "texcoordh[3]", "default": [1.5, 2.5, 3.5] }, "a_texcoordd_2_array": { "description": "Computed Attribute", "type": "texcoordd[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordd_3_array": { "description": "Computed Attribute", "type": "texcoordd[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_texcoordf_2_array": { "description": "Computed Attribute", "type": "texcoordf[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordf_3_array": { "description": "Computed Attribute", "type": "texcoordf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_texcoordh_2_array": { "description": "Computed Attribute", "type": "texcoordh[2][]", "default": [[1.5, 2.5], [11.5, 12.5]] }, "a_texcoordh_3_array": { "description": "Computed Attribute", "type": "texcoordh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_timecode": { "description": "Computed Attribute", "type": "timecode", "default": 2.5 }, "a_timecode_array": { "description": "Computed Attribute", "type": "timecode[]", "default": [2.5, 3.5] }, "a_token": { "description": "Computed Attribute", "type": "token", "default": "Jedi" }, "a_token_array": { "description": "Computed Attribute", "type": "token[]", "default": ["Luke", "Skywalker"] }, "a_uchar": { "description": "Computed Attribute", "type": "uchar", "default": 2 }, "a_uchar_array": { "description": "Computed Attribute", "type": "uchar[]", "default": [2, 3] }, "a_uint": { "description": "Computed Attribute", "type": "uint", "default": 2 }, "a_uint_array": { "description": "Computed Attribute", "type": "uint[]", "default": [2, 3] }, "a_uint64": { "description": "Computed Attribute", "type": "uint64", "default": 2 }, "a_uint64_array": { "description": "Computed Attribute", "type": "uint64[]", "default": [2, 3] }, "a_vectord_3": { "description": "Computed Attribute", "type": "vectord[3]", "default": [1.5, 2.5, 3.5] }, "a_vectorf_3": { "description": "Computed Attribute", "type": "vectorf[3]", "default": [1.5, 2.5, 3.5] }, "a_vectorh_3": { "description": "Computed Attribute", "type": "vectorh[3]", "default": [1.5, 2.5, 3.5] }, "a_vectord_3_array": { "description": "Computed Attribute", "type": "vectord[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_vectorf_3_array": { "description": "Computed Attribute", "type": "vectorf[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] }, "a_vectorh_3_array": { "description": "Computed Attribute", "type": "vectorh[3][]", "default": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] } }, "tests": [ { "description": "Check to see if the outputs get their expected defaults when compute is bypassed", "inputs": { "inputs:doNotCompute": true }, "outputs": { "a_bool": true, "a_bool_array": [true, false], "a_colord_3": [1.5, 2.5, 3.5], "a_colord_4": [1.5, 2.5, 3.5, 4.5], "a_colorf_3": [1.5, 2.5, 3.5], "a_colorf_4": [1.5, 2.5, 3.5, 4.5], "a_colorh_3": [1.5, 2.5, 3.5], "a_colorh_4": [1.5, 2.5, 3.5, 4.5], "a_colord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colord_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_colorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colorf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_colorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_colorh_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_double": 1.5, "a_double_2": [1.5, 2.5], "a_double_3": [1.5, 2.5, 3.5], "a_double_4": [1.5, 2.5, 3.5, 4.5], "a_double_array": [1.5, 2.5], "a_double_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_double_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_double_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_execution": 2, "a_float": 1.5, "a_float_2": [1.5, 2.5], "a_float_3": [1.5, 2.5, 3.5], "a_float_4": [1.5, 2.5, 3.5, 4.5], "a_float_array": [1.5, 2.5], "a_float_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_float_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_float_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_frame_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], "a_frame_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], "a_half": 1.5, "a_half_2": [1.5, 2.5], "a_half_3": [1.5, 2.5, 3.5], "a_half_4": [1.5, 2.5, 3.5, 4.5], "a_half_array": [1.5, 2.5], "a_half_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_half_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_half_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_int": 1, "a_int_2": [1, 2], "a_int_3": [1, 2, 3], "a_int_4": [1, 2, 3, 4], "a_int_array": [1, 2], "a_int_2_array": [[1, 2], [3, 4]], "a_int_3_array": [[1, 2, 3], [4, 5, 6]], "a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]], "a_int64": 12345, "a_int64_array": [12345, 23456], "a_matrixd_2": [[1.5, 2.5], [3.5, 4.5]], "a_matrixd_3": [[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], "a_matrixd_4": [[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], "a_matrixd_2_array": [[[1.5, 2.5], [3.5, 4.5]], [[11.5, 12.5], [13.5, 14.5]]], "a_matrixd_3_array": [[[1.5, 2.5, 3.5], [4.5, 5.5, 6.5], [7.5, 8.5, 9.5]], [[11.5, 12.5, 13.5], [14.5, 15.5, 16.5], [17.5, 18.5, 19.5]]], "a_matrixd_4_array": [[[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5], [9.5, 10.5, 11.5, 12.5], [13.5, 14.5, 15.5, 16.5]], [[11.5, 12.5, 13.5, 14.5], [15.5, 16.5, 17.5, 18.5], [19.5, 20.5, 21.5, 22.5], [23.5, 24.5, 25.5, 26.5]]], "a_normald_3": [1.5, 2.5, 3.5], "a_normalf_3": [1.5, 2.5, 3.5], "a_normalh_3": [1.5, 2.5, 3.5], "a_normald_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_normalf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_normalh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_objectId": 2, "a_objectId_array": [2, 3], "a_pointd_3": [1.5, 2.5, 3.5], "a_pointf_3": [1.5, 2.5, 3.5], "a_pointh_3": [1.5, 2.5, 3.5], "a_pointd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_pointf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_pointh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_quatd_4": [1.5, 2.5, 3.5, 4.5], "a_quatf_4": [1.5, 2.5, 3.5, 4.5], "a_quath_4": [1.5, 2.5, 3.5, 4.5], "a_quatd_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_quatf_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_quath_4_array": [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], "a_string": "Snoke", "a_texcoordd_2": [1.5, 2.5], "a_texcoordd_3": [1.5, 2.5, 3.5], "a_texcoordf_2": [1.5, 2.5], "a_texcoordf_3": [1.5, 2.5, 3.5], "a_texcoordh_2": [1.5, 2.5], "a_texcoordh_3": [1.5, 2.5, 3.5], "a_texcoordd_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordd_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_texcoordf_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_texcoordh_2_array": [[1.5, 2.5], [11.5, 12.5]], "a_texcoordh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_timecode": 2.5, "a_timecode_array": [2.5, 3.5], "a_token": "Jedi", "a_token_array": ["Luke", "Skywalker"], "a_uchar": 2, "a_uchar_array": [2, 3], "a_uint": 2, "a_uint_array": [2, 3], "a_uint64": 2, "a_uint64_array": [2, 3], "a_vectord_3": [1.5, 2.5, 3.5], "a_vectorf_3": [1.5, 2.5, 3.5], "a_vectorh_3": [1.5, 2.5, 3.5], "a_vectord_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_vectorf_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], "a_vectorh_3_array": [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]] } }, { "description": "Regular evaluation where the default inputs are copied to the outputs", "inputs": { "inputs:doNotCompute": false }, "outputs": { "a_bool": false, "a_bool_array": [false, true], "a_colord_3": [1.0, 2.0, 3.0], "a_colord_4": [1.0, 2.0, 3.0, 4.0], "a_colorf_3": [1.0, 2.0, 3.0], "a_colorf_4": [1.0, 2.0, 3.0, 4.0], "a_colorh_3": [1.0, 2.0, 3.0], "a_colorh_4": [1.0, 2.0, 3.0, 4.0], "a_colord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colord_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_colorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colorf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_colorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_colorh_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_double": 1.0, "a_double_2": [1.0, 2.0], "a_double_3": [1.0, 2.0, 3.0], "a_double_4": [1.0, 2.0, 3.0, 4.0], "a_double_array": [1.0, 2.0], "a_double_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_double_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_double_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_execution": 1, "a_float": 1.0, "a_float_2": [1.0, 2.0], "a_float_3": [1.0, 2.0, 3.0], "a_float_4": [1.0, 2.0, 3.0, 4.0], "a_float_array": [1.0, 2.0], "a_float_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_float_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_float_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_frame_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], "a_frame_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], "a_half": 1.0, "a_half_2": [1.0, 2.0], "a_half_3": [1.0, 2.0, 3.0], "a_half_4": [1.0, 2.0, 3.0, 4.0], "a_half_array": [1.0, 2.0], "a_half_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_half_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_half_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_int": 1, "a_int_2": [1, 2], "a_int_3": [1, 2, 3], "a_int_4": [1, 2, 3, 4], "a_int_array": [1, 2], "a_int_2_array": [[1, 2], [3, 4]], "a_int_3_array": [[1, 2, 3], [4, 5, 6]], "a_int_4_array": [[1, 2, 3, 4], [5, 6, 7, 8]], "a_int64": 12345, "a_int64_array": [12345, 23456], "a_matrixd_2": [[1.0, 2.0], [3.0, 4.0]], "a_matrixd_3": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], "a_matrixd_4": [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], "a_matrixd_2_array": [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]], "a_matrixd_3_array": [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]], "a_matrixd_4_array": [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]], "a_normald_3": [1.0, 2.0, 3.0], "a_normalf_3": [1.0, 2.0, 3.0], "a_normalh_3": [1.0, 2.0, 3.0], "a_normald_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_normalf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_normalh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_objectId": 1, "a_objectId_array": [1, 2], "a_pointd_3": [1.0, 2.0, 3.0], "a_pointf_3": [1.0, 2.0, 3.0], "a_pointh_3": [1.0, 2.0, 3.0], "a_pointd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_pointf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_pointh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_quatd_4": [1.0, 2.0, 3.0, 4.0], "a_quatf_4": [1.0, 2.0, 3.0, 4.0], "a_quath_4": [1.0, 2.0, 3.0, 4.0], "a_quatd_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_quatf_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_quath_4_array": [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], "a_string": "Rey", "a_texcoordd_2": [1.0, 2.0], "a_texcoordd_3": [1.0, 2.0, 3.0], "a_texcoordf_2": [1.0, 2.0], "a_texcoordf_3": [1.0, 2.0, 3.0], "a_texcoordh_2": [1.0, 2.0], "a_texcoordh_3": [1.0, 2.0, 3.0], "a_texcoordd_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordd_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_texcoordf_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_texcoordh_2_array": [[1.0, 2.0], [11.0, 12.0]], "a_texcoordh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_timecode": 1.0, "a_timecode_array": [1.0, 2.0], "a_token": "Sith", "a_token_array": ["Kylo", "Ren"], "a_uchar": 1, "a_uchar_array": [1, 2], "a_uint": 1, "a_uint_array": [1, 2], "a_uint64": 1, "a_uint64_array": [1, 2], "a_vectord_3": [1.0, 2.0, 3.0], "a_vectorf_3": [1.0, 2.0, 3.0], "a_vectorh_3": [1.0, 2.0, 3.0], "a_vectord_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_vectorf_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], "a_vectorh_3_array": [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] } }, { "description": "Regular evaluation where non-default inputs are set and copied to the outputs", "inputs": { "inputs:doNotCompute": false, "a_bool": true, "a_bool_array": [true, true], "a_colord_3": [1.25, 2.25, 3.25], "a_colord_4": [1.25, 2.25, 3.25, 4.25], "a_colorf_3": [1.25, 2.25, 3.25], "a_colorf_4": [1.25, 2.25, 3.25, 4.25], "a_colorh_3": [1.25, 2.25, 3.25], "a_colorh_4": [1.25, 2.25, 3.25, 4.25], "a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_double": 1.25, "a_double_2": [1.25, 2.25], "a_double_3": [1.25, 2.25, 3.25], "a_double_4": [1.25, 2.25, 3.25, 4.25], "a_double_array": [1.25, 2.25], "a_double_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_execution": 3, "a_float": 1.25, "a_float_2": [1.25, 2.25], "a_float_3": [1.25, 2.25, 3.25], "a_float_4": [1.25, 2.25, 3.25, 4.25], "a_float_array": [1.25, 2.25], "a_float_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], "a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_half": 1.25, "a_half_2": [1.25, 2.25], "a_half_3": [1.25, 2.25, 3.25], "a_half_4": [1.25, 2.25, 3.25, 4.25], "a_half_array": [1.25, 2.25], "a_half_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_int": 11, "a_int_2": [11, 12], "a_int_3": [11, 12, 13], "a_int_4": [11, 12, 13, 14], "a_int_array": [11, 12], "a_int_2_array": [[11, 12], [13, 14]], "a_int_3_array": [[11, 12, 13], [14, 15, 16]], "a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]], "a_int64": 34567, "a_int64_array": [45678, 56789], "a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]], "a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]], "a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]], "a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]], "a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]], "a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_normald_3": [1.25, 2.25, 3.25], "a_normalf_3": [1.25, 2.25, 3.25], "a_normalh_3": [1.25, 2.25, 3.25], "a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_objectId": 3, "a_objectId_array": [3, 4], "a_pointd_3": [1.25, 2.25, 3.25], "a_pointf_3": [1.25, 2.25, 3.25], "a_pointh_3": [1.25, 2.25, 3.25], "a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_quatd_4": [1.25, 2.25, 3.25, 4.25], "a_quatf_4": [1.25, 2.25, 3.25, 4.25], "a_quath_4": [1.25, 2.25, 3.25, 4.25], "a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_string": "Palpatine", "a_texcoordd_2": [1.25, 2.25], "a_texcoordd_3": [1.25, 2.25, 3.25], "a_texcoordf_2": [1.25, 2.25], "a_texcoordf_3": [1.25, 2.25, 3.25], "a_texcoordh_2": [1.25, 2.25], "a_texcoordh_3": [1.25, 2.25, 3.25], "a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_timecode": 1.25, "a_timecode_array": [1.25, 2.25], "a_token": "Rebels", "a_token_array": ["Han", "Solo"], "a_uchar": 3, "a_uchar_array": [3, 4], "a_uint": 3, "a_uint_array": [3, 4], "a_uint64": 3, "a_uint64_array": [3, 4], "a_vectord_3": [1.25, 2.25, 3.25], "a_vectorf_3": [1.25, 2.25, 3.25], "a_vectorh_3": [1.25, 2.25, 3.25], "a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]] }, "outputs": { "a_bool": true, "a_bool_array": [true, true], "a_colord_3": [1.25, 2.25, 3.25], "a_colord_4": [1.25, 2.25, 3.25, 4.25], "a_colorf_3": [1.25, 2.25, 3.25], "a_colorf_4": [1.25, 2.25, 3.25, 4.25], "a_colorh_3": [1.25, 2.25, 3.25], "a_colorh_4": [1.25, 2.25, 3.25, 4.25], "a_colord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colord_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_colorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_colorh_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_double": 1.25, "a_double_2": [1.25, 2.25], "a_double_3": [1.25, 2.25, 3.25], "a_double_4": [1.25, 2.25, 3.25, 4.25], "a_double_array": [1.25, 2.25], "a_double_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_double_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_double_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_execution": 3, "a_float": 1.25, "a_float_2": [1.25, 2.25], "a_float_3": [1.25, 2.25, 3.25], "a_float_4": [1.25, 2.25, 3.25, 4.25], "a_float_array": [1.25, 2.25], "a_float_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_float_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_float_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_frame_4": [[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], "a_frame_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_half": 1.25, "a_half_2": [1.25, 2.25], "a_half_3": [1.25, 2.25, 3.25], "a_half_4": [1.25, 2.25, 3.25, 4.25], "a_half_array": [1.25, 2.25], "a_half_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_half_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_half_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_int": 11, "a_int_2": [11, 12], "a_int_3": [11, 12, 13], "a_int_4": [11, 12, 13, 14], "a_int_array": [11, 12], "a_int_2_array": [[11, 12], [13, 14]], "a_int_3_array": [[11, 12, 13], [14, 15, 16]], "a_int_4_array": [[11, 12, 13, 14], [15, 16, 17, 18]], "a_int64": 34567, "a_int64_array": [45678, 56789], "a_matrixd_2": [[1.25, 2.25], [3.25, 4.25]], "a_matrixd_3": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25], [21.25, 22.25, 23.25]], "a_matrixd_4": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25], [21.25, 22.25, 23.25, 24.25], [31.25, 32.25, 33.25, 34.25]], "a_matrixd_2_array": [[[1.25, 2.25], [3.25, 4.25]], [[11.25, 12.25], [13.25, 14.25]]], "a_matrixd_3_array": [[[1.25, 2.25, 3.25], [4.25, 5.25, 6.25], [7.25, 8.25, 9.25]], [[11.25, 12.25, 13.25], [14.25, 15.25, 16.25], [17.25, 18.25, 19.25]]], "a_matrixd_4_array": [[[1.25, 2.25, 3.25, 4.25], [5.25, 6.25, 7.25, 8.25], [9.25, 10.25, 11.25, 12.25], [13.25, 14.25, 15.25, 16.25]], [[11.25, 12.25, 13.25, 14.25], [15.25, 16.25, 17.25, 18.25], [19.25, 20.25, 21.25, 22.25], [23.25, 24.25, 25.25, 26.25]]], "a_normald_3": [1.25, 2.25, 3.25], "a_normalf_3": [1.25, 2.25, 3.25], "a_normalh_3": [1.25, 2.25, 3.25], "a_normald_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_normalh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_objectId": 3, "a_objectId_array": [3, 4], "a_pointd_3": [1.25, 2.25, 3.25], "a_pointf_3": [1.25, 2.25, 3.25], "a_pointh_3": [1.25, 2.25, 3.25], "a_pointd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_pointh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_quatd_4": [1.25, 2.25, 3.25, 4.25], "a_quatf_4": [1.25, 2.25, 3.25, 4.25], "a_quath_4": [1.25, 2.25, 3.25, 4.25], "a_quatd_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quatf_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_quath_4_array": [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], "a_string": "Palpatine", "a_texcoordd_2": [1.25, 2.25], "a_texcoordd_3": [1.25, 2.25, 3.25], "a_texcoordf_2": [1.25, 2.25], "a_texcoordf_3": [1.25, 2.25, 3.25], "a_texcoordh_2": [1.25, 2.25], "a_texcoordh_3": [1.25, 2.25, 3.25], "a_texcoordd_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordd_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordf_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_texcoordh_2_array": [[1.25, 2.25], [11.25, 12.25]], "a_texcoordh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_timecode": 1.25, "a_timecode_array": [1.25, 2.25], "a_token": "Rebels", "a_token_array": ["Han", "Solo"], "a_uchar": 3, "a_uchar_array": [3, 4], "a_uint": 3, "a_uint_array": [3, 4], "a_uint64": 3, "a_uint64_array": [3, 4], "a_vectord_3": [1.25, 2.25, 3.25], "a_vectorf_3": [1.25, 2.25, 3.25], "a_vectorh_3": [1.25, 2.25, 3.25], "a_vectord_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorf_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], "a_vectorh_3_array": [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]] } } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDeformer.cpp
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include "OgnTestDeformerDatabase.h" #include <omni/graph/core/CppWrappers.h> #include <cmath> namespace omni { namespace graph { namespace test { namespace { class PointComputeArgs { public: PointComputeArgs(const GfVec3f& inputPoint, float height, float width, float freq, GfVec3f& outputPoint) : m_inputPoint(inputPoint), m_height(height), m_width(width), m_freq(freq), m_outputPoint(outputPoint) { } const GfVec3f& m_inputPoint; float m_height; float m_width; float m_freq; GfVec3f& m_outputPoint; }; } // minimal compute node example that reads one float and writes one float // e.g. out value = 3.0f * in value class OgnTestDeformer { public: static bool compute(OgnTestDeformerDatabase& db) { const auto& points = db.inputs.points(); const auto& multiplier = db.inputs.multiplier(); const auto& wavelength = db.inputs.wavelength(); auto& outputPoints = db.outputs.points(); size_t numPoints = points.size(); // If there are no points to deform then we can bail early if (numPoints == 0) { return true; } // allocate output data outputPoints.resize(numPoints); float width = wavelength; float height = 10.0f * multiplier; float freq = 10.0f; // compute deformation std::transform(points.begin(), points.end(), outputPoints.begin(), [=](const GfVec3f& point) -> GfVec3f { float tx = freq * (point[0] - width) / width; float ty = 1.5f * freq * (point[1] - width) / width; float z = point[2] + height * (sin(tx) + cos(ty)); return { point[0], point[1], z }; }); return true; } }; REGISTER_OGN_NODE() } // namespace examples } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomPointsPy.py
""" This is the implementation of the OGN node defined in OgnRandomPoints.ogn """ import numpy as np class OgnRandomPointsPy: """ Generate an array of the specified number of points at random locations within the bounding cube """ @staticmethod def compute(db) -> bool: """Compute the outputs from the current input""" range_size = db.inputs.maximum - db.inputs.minimum point_count = db.inputs.pointCount db.outputs.points_size = point_count if point_count > 0: db.outputs.points = range_size * np.random.random_sample((point_count, 3)) + db.inputs.minimum return True
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComposeDouble3C.cpp
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnComposeDouble3CDatabase.h> namespace omni { namespace graph { namespace examples { class OgnComposeDouble3C { public: static bool compute(OgnComposeDouble3CDatabase& db) { auto x = db.inputs.x(); auto y = db.inputs.y(); auto z = db.inputs.z(); db.outputs.double3() = pxr::GfVec3d(x, y, z); return true; } }; REGISTER_OGN_NODE() } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestTypeResolution.ogn
{ "TypeResolution": { "version": 1, "uiName": "Test Node: Attribute Type Resolution", "description": [ "Test node, explicitly constructed to make the attribute type resolution mechanism testable.", "It has output attributes with union and any types whose type will be resolved at runtime", "when they are connected to inputs with a fixed type. The extra string output provides the", "resolution information to the test script for verification" ], "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["tests", "usd", "docs"], "inputs": { "anyValueIn": { "type": "any", "description": [ "Input that can resolve to any type. Internally the node couples ", "the types of inputs:anyValueIn -> outputs:anyValue. Meaning if one is resolved it will", "automatically resolve the other" ], "unvalidated": true } }, "outputs": { "resolvedType": { "type": "token[]", "description": [ "Array of strings representing the output attribute's type resolutions.", "The array items consist of comma-separated pairs of strings representing", "the output attribute name and the type to which it is currently resolved.", "e.g. if the attribute 'foo' is an integer there would be one entry in the array", "with the string 'foo,int'" ] }, "value": { "type": ["int", "int64", "uint", "uint64", "float", "double"], "description": "Output that only resolves to one of the numeric types.", "unvalidated": true }, "arrayValue": { "type": ["int[]", "int64[]", "uint[]", "uint64[]", "float[]", "double[]"], "description": "Output that only resolves to one of the numeric array types.", "unvalidated": true }, "tupleValue": { "type": ["int[3]", "float[3]", "double[3]"], "description": "Output that only resolves to one of the numeric tuple types.", "unvalidated": true }, "tupleArrayValue": { "type": ["int[3][]", "float[3][]", "double[3][]"], "description": "Output that only resolves to one of the numeric tuple array types.", "unvalidated": true }, "mixedValue": { "type": ["float", "float[]", "float[3]", "float[3][]"], "description": "Output that can resolve to data of different shapes.", "unvalidated": true }, "anyValue" : { "type": "any", "description" : "Output that can resolve to any type at all", "unvalidated": true } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComposeDouble3C.ogn
{ "ComposeDouble3C": { "version": 1, "description": ["Example node that takes in the components of three doubles and outputs a double3"], "uiName": "Test Node: Compose Double3 (C++)", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["usd", "docs"], "inputs": { "x": { "type": "double", "description": ["The x component of the input double3"], "default": 0 }, "y": { "type": "double", "description": ["The y component of the input double3"], "default": 0 }, "z": { "type": "double", "description": ["The z component of the input double3"], "default": 0 } }, "outputs": { "double3": { "type": "double[3]", "description": ["Output double3"] } }, "tests": [ { "inputs:x": 1.0, "inputs:y": 2.0, "inputs:z": 3.0, "outputs:double3": [1.0, 2.0, 3.0] } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDataModel.cpp
// Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnTestDataModelDatabase.h> namespace omni { namespace graph { namespace test { class OgnTestDataModel { public: // static bool compute(OgnTestDataModelDatabase& db) { ////////////////////////////////////////////////////////////////////////// // Bundle auto& refBundle = db.inputs.refBundle(); auto& mutBundle = db.inputs.mutBundle(); //first, make the tests size_t count = refBundle.attributeCount(); if (count != mutBundle.attributeCount()) { CARB_LOG_ERROR("Input bundle mismatch - (attribute count: ref has %zu, mut has %zu)", count, mutBundle.attributeCount()); return false; } bool shouldMatch = db.inputs.bundleShouldMatch(); int bundleArrayThatShouldDiffer = db.inputs.bundleArraysThatShouldDiffer(); auto it1 = refBundle.begin(); auto it2 = mutBundle.begin(); while (count) { count--; //should be the same attribute if(it1->name() != it2->name()) { CARB_LOG_ERROR("Input bundle mismatch - (attribute name: ref has %s, mut has %s)", db.tokenToString(it1->name()), db.tokenToString(it2->name())); return false; } if (it1->type() != it2->type()) { CARB_LOG_ERROR("Input bundle mismatch - (attribute \"%s\" type)", db.tokenToString(it1->name())); return false; } //check the data ConstRawPtr raw1{ nullptr }; size_t s1 = 0; it1->rawData(raw1, s1); ConstRawPtr raw2{ nullptr }; size_t s2 = 0; it2->rawData(raw2, s2); //size should always match, since it should be the same type if (s1 != s2) { CARB_LOG_ERROR("Mismatching attribute size (\"%s\") in inputs bundles: ref has %zu, mut has %zu", db.tokenToString(it1->name()), s1, s2); return false; } // check if we point to the right place if (it1->type().arrayDepth == 1) { //arrays: we store the ptr to the array => dereference to get the actual array base adress bool sameAttrib = (*(void**)raw1 == *(void**)raw2); if (!sameAttrib) { if (bundleArrayThatShouldDiffer == 0) { CARB_LOG_ERROR("Too many array attributes in input bundles don't match"); return false; } --bundleArrayThatShouldDiffer; } } else { //others bool sameAttrib = (raw1 == raw2); if (sameAttrib != shouldMatch) { CARB_LOG_ERROR("Attribute \"%s\" in bundles should%s match, but do%s", db.tokenToString(it1->name()), shouldMatch ? "" : "n't", shouldMatch ? "n't" : ""); return false; } } ++it1; ++it2; } //pass-through/mutate auto& outBundle = db.outputs.bundle(); outBundle = mutBundle; NameToken attribToMutate = db.inputs.attrib(); if (attribToMutate != omni::fabric::kUninitializedToken) { auto attrib = outBundle.attributeByName(attribToMutate); //just access-for-write the data to trigger the data-model features, no need to actually mutate anything RawPtr raw{ nullptr }; size_t s = 0; attrib.rawData(raw, s); } ////////////////////////////////////////////////////////////////////////// // Array auto& refArray = db.inputs.refArray(); auto& mutArray = db.inputs.mutArray(); bool arrayShouldMatch = db.inputs.arrayShouldMatch(); bool areTheSame = (refArray.data() == mutArray.data()); if(arrayShouldMatch != areTheSame) { CARB_LOG_ERROR("Array attributes should%s match, but do%s", arrayShouldMatch ? "" : "n't", arrayShouldMatch ? "n't" : ""); return false; } // pass-through: notice the absence of "()" operator on the attribute db.outputs.array = db.inputs.mutArray; if (db.inputs.mutateArray()) { //write access will trigger CoW auto& out = db.outputs.array(); if (out.data() == mutArray.data()) { CARB_LOG_ERROR("Array attributes shouldn't match after write access, but do..."); return false; } } return true; } }; REGISTER_OGN_NODE() } // test } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestNanInf.cpp
// Copyright (c) 2022-2023 NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnTestNanInfDatabase.h> namespace omni { namespace graph { namespace test { class OgnTestNanInf { public: static bool compute(OgnTestNanInfDatabase& db) { db.outputs.a_colord3_inf() = db.inputs.a_colord3_inf(); db.outputs.a_colord3_ninf() = db.inputs.a_colord3_ninf(); db.outputs.a_colord3_nan() = db.inputs.a_colord3_nan(); db.outputs.a_colord3_snan() = db.inputs.a_colord3_snan(); db.outputs.a_colord4_inf() = db.inputs.a_colord4_inf(); db.outputs.a_colord4_ninf() = db.inputs.a_colord4_ninf(); db.outputs.a_colord4_nan() = db.inputs.a_colord4_nan(); db.outputs.a_colord4_snan() = db.inputs.a_colord4_snan(); db.outputs.a_colord3_array_inf() = db.inputs.a_colord3_array_inf(); db.outputs.a_colord3_array_ninf() = db.inputs.a_colord3_array_ninf(); db.outputs.a_colord3_array_nan() = db.inputs.a_colord3_array_nan(); db.outputs.a_colord3_array_snan() = db.inputs.a_colord3_array_snan(); db.outputs.a_colord4_array_inf() = db.inputs.a_colord4_array_inf(); db.outputs.a_colord4_array_ninf() = db.inputs.a_colord4_array_ninf(); db.outputs.a_colord4_array_nan() = db.inputs.a_colord4_array_nan(); db.outputs.a_colord4_array_snan() = db.inputs.a_colord4_array_snan(); db.outputs.a_colorf3_inf() = db.inputs.a_colorf3_inf(); db.outputs.a_colorf3_ninf() = db.inputs.a_colorf3_ninf(); db.outputs.a_colorf3_nan() = db.inputs.a_colorf3_nan(); db.outputs.a_colorf3_snan() = db.inputs.a_colorf3_snan(); db.outputs.a_colorf4_inf() = db.inputs.a_colorf4_inf(); db.outputs.a_colorf4_ninf() = db.inputs.a_colorf4_ninf(); db.outputs.a_colorf4_nan() = db.inputs.a_colorf4_nan(); db.outputs.a_colorf4_snan() = db.inputs.a_colorf4_snan(); db.outputs.a_colorf3_array_inf() = db.inputs.a_colorf3_array_inf(); db.outputs.a_colorf3_array_ninf() = db.inputs.a_colorf3_array_ninf(); db.outputs.a_colorf3_array_nan() = db.inputs.a_colorf3_array_nan(); db.outputs.a_colorf3_array_snan() = db.inputs.a_colorf3_array_snan(); db.outputs.a_colorf4_array_inf() = db.inputs.a_colorf4_array_inf(); db.outputs.a_colorf4_array_ninf() = db.inputs.a_colorf4_array_ninf(); db.outputs.a_colorf4_array_nan() = db.inputs.a_colorf4_array_nan(); db.outputs.a_colorf4_array_snan() = db.inputs.a_colorf4_array_snan(); db.outputs.a_colorh3_inf() = db.inputs.a_colorh3_inf(); db.outputs.a_colorh3_ninf() = db.inputs.a_colorh3_ninf(); db.outputs.a_colorh3_nan() = db.inputs.a_colorh3_nan(); db.outputs.a_colorh3_snan() = db.inputs.a_colorh3_snan(); db.outputs.a_colorh4_inf() = db.inputs.a_colorh4_inf(); db.outputs.a_colorh4_ninf() = db.inputs.a_colorh4_ninf(); db.outputs.a_colorh4_nan() = db.inputs.a_colorh4_nan(); db.outputs.a_colorh4_snan() = db.inputs.a_colorh4_snan(); db.outputs.a_colorh3_array_inf() = db.inputs.a_colorh3_array_inf(); db.outputs.a_colorh3_array_ninf() = db.inputs.a_colorh3_array_ninf(); db.outputs.a_colorh3_array_nan() = db.inputs.a_colorh3_array_nan(); db.outputs.a_colorh3_array_snan() = db.inputs.a_colorh3_array_snan(); db.outputs.a_colorh4_array_inf() = db.inputs.a_colorh4_array_inf(); db.outputs.a_colorh4_array_ninf() = db.inputs.a_colorh4_array_ninf(); db.outputs.a_colorh4_array_nan() = db.inputs.a_colorh4_array_nan(); db.outputs.a_colorh4_array_snan() = db.inputs.a_colorh4_array_snan(); db.outputs.a_double_inf() = db.inputs.a_double_inf(); db.outputs.a_double_ninf() = db.inputs.a_double_ninf(); db.outputs.a_double_nan() = db.inputs.a_double_nan(); db.outputs.a_double_snan() = db.inputs.a_double_snan(); db.outputs.a_double2_inf() = db.inputs.a_double2_inf(); db.outputs.a_double2_ninf() = db.inputs.a_double2_ninf(); db.outputs.a_double2_nan() = db.inputs.a_double2_nan(); db.outputs.a_double2_snan() = db.inputs.a_double2_snan(); db.outputs.a_double3_inf() = db.inputs.a_double3_inf(); db.outputs.a_double3_ninf() = db.inputs.a_double3_ninf(); db.outputs.a_double3_nan() = db.inputs.a_double3_nan(); db.outputs.a_double3_snan() = db.inputs.a_double3_snan(); db.outputs.a_double4_inf() = db.inputs.a_double4_inf(); db.outputs.a_double4_ninf() = db.inputs.a_double4_ninf(); db.outputs.a_double4_nan() = db.inputs.a_double4_nan(); db.outputs.a_double4_snan() = db.inputs.a_double4_snan(); db.outputs.a_double_array_inf() = db.inputs.a_double_array_inf(); db.outputs.a_double_array_ninf() = db.inputs.a_double_array_ninf(); db.outputs.a_double_array_nan() = db.inputs.a_double_array_nan(); db.outputs.a_double_array_snan() = db.inputs.a_double_array_snan(); db.outputs.a_double2_array_inf() = db.inputs.a_double2_array_inf(); db.outputs.a_double2_array_ninf() = db.inputs.a_double2_array_ninf(); db.outputs.a_double2_array_nan() = db.inputs.a_double2_array_nan(); db.outputs.a_double2_array_snan() = db.inputs.a_double2_array_snan(); db.outputs.a_double3_array_inf() = db.inputs.a_double3_array_inf(); db.outputs.a_double3_array_ninf() = db.inputs.a_double3_array_ninf(); db.outputs.a_double3_array_nan() = db.inputs.a_double3_array_nan(); db.outputs.a_double3_array_snan() = db.inputs.a_double3_array_snan(); db.outputs.a_double4_array_inf() = db.inputs.a_double4_array_inf(); db.outputs.a_double4_array_ninf() = db.inputs.a_double4_array_ninf(); db.outputs.a_double4_array_nan() = db.inputs.a_double4_array_nan(); db.outputs.a_double4_array_snan() = db.inputs.a_double4_array_snan(); db.outputs.a_float_inf() = db.inputs.a_float_inf(); db.outputs.a_float_ninf() = db.inputs.a_float_ninf(); db.outputs.a_float_nan() = db.inputs.a_float_nan(); db.outputs.a_float_snan() = db.inputs.a_float_snan(); db.outputs.a_float2_inf() = db.inputs.a_float2_inf(); db.outputs.a_float2_ninf() = db.inputs.a_float2_ninf(); db.outputs.a_float2_nan() = db.inputs.a_float2_nan(); db.outputs.a_float2_snan() = db.inputs.a_float2_snan(); db.outputs.a_float3_inf() = db.inputs.a_float3_inf(); db.outputs.a_float3_ninf() = db.inputs.a_float3_ninf(); db.outputs.a_float3_nan() = db.inputs.a_float3_nan(); db.outputs.a_float3_snan() = db.inputs.a_float3_snan(); db.outputs.a_float4_inf() = db.inputs.a_float4_inf(); db.outputs.a_float4_ninf() = db.inputs.a_float4_ninf(); db.outputs.a_float4_nan() = db.inputs.a_float4_nan(); db.outputs.a_float4_snan() = db.inputs.a_float4_snan(); db.outputs.a_float_array_inf() = db.inputs.a_float_array_inf(); db.outputs.a_float_array_ninf() = db.inputs.a_float_array_ninf(); db.outputs.a_float_array_nan() = db.inputs.a_float_array_nan(); db.outputs.a_float_array_snan() = db.inputs.a_float_array_snan(); db.outputs.a_float2_array_inf() = db.inputs.a_float2_array_inf(); db.outputs.a_float2_array_ninf() = db.inputs.a_float2_array_ninf(); db.outputs.a_float2_array_nan() = db.inputs.a_float2_array_nan(); db.outputs.a_float2_array_snan() = db.inputs.a_float2_array_snan(); db.outputs.a_float3_array_inf() = db.inputs.a_float3_array_inf(); db.outputs.a_float3_array_ninf() = db.inputs.a_float3_array_ninf(); db.outputs.a_float3_array_nan() = db.inputs.a_float3_array_nan(); db.outputs.a_float3_array_snan() = db.inputs.a_float3_array_snan(); db.outputs.a_float4_array_inf() = db.inputs.a_float4_array_inf(); db.outputs.a_float4_array_ninf() = db.inputs.a_float4_array_ninf(); db.outputs.a_float4_array_nan() = db.inputs.a_float4_array_nan(); db.outputs.a_float4_array_snan() = db.inputs.a_float4_array_snan(); db.outputs.a_frame4_inf() = db.inputs.a_frame4_inf(); db.outputs.a_frame4_ninf() = db.inputs.a_frame4_ninf(); db.outputs.a_frame4_nan() = db.inputs.a_frame4_nan(); db.outputs.a_frame4_snan() = db.inputs.a_frame4_snan(); db.outputs.a_frame4_array_inf() = db.inputs.a_frame4_array_inf(); db.outputs.a_frame4_array_ninf() = db.inputs.a_frame4_array_ninf(); db.outputs.a_frame4_array_nan() = db.inputs.a_frame4_array_nan(); db.outputs.a_frame4_array_snan() = db.inputs.a_frame4_array_snan(); db.outputs.a_half_inf() = db.inputs.a_half_inf(); db.outputs.a_half_ninf() = db.inputs.a_half_ninf(); db.outputs.a_half_nan() = db.inputs.a_half_nan(); db.outputs.a_half_snan() = db.inputs.a_half_snan(); db.outputs.a_half2_inf() = db.inputs.a_half2_inf(); db.outputs.a_half2_ninf() = db.inputs.a_half2_ninf(); db.outputs.a_half2_nan() = db.inputs.a_half2_nan(); db.outputs.a_half2_snan() = db.inputs.a_half2_snan(); db.outputs.a_half3_inf() = db.inputs.a_half3_inf(); db.outputs.a_half3_ninf() = db.inputs.a_half3_ninf(); db.outputs.a_half3_nan() = db.inputs.a_half3_nan(); db.outputs.a_half3_snan() = db.inputs.a_half3_snan(); db.outputs.a_half4_inf() = db.inputs.a_half4_inf(); db.outputs.a_half4_ninf() = db.inputs.a_half4_ninf(); db.outputs.a_half4_nan() = db.inputs.a_half4_nan(); db.outputs.a_half4_snan() = db.inputs.a_half4_snan(); db.outputs.a_half_array_inf() = db.inputs.a_half_array_inf(); db.outputs.a_half_array_ninf() = db.inputs.a_half_array_ninf(); db.outputs.a_half_array_nan() = db.inputs.a_half_array_nan(); db.outputs.a_half_array_snan() = db.inputs.a_half_array_snan(); db.outputs.a_half2_array_inf() = db.inputs.a_half2_array_inf(); db.outputs.a_half2_array_ninf() = db.inputs.a_half2_array_ninf(); db.outputs.a_half2_array_nan() = db.inputs.a_half2_array_nan(); db.outputs.a_half2_array_snan() = db.inputs.a_half2_array_snan(); db.outputs.a_half3_array_inf() = db.inputs.a_half3_array_inf(); db.outputs.a_half3_array_ninf() = db.inputs.a_half3_array_ninf(); db.outputs.a_half3_array_nan() = db.inputs.a_half3_array_nan(); db.outputs.a_half3_array_snan() = db.inputs.a_half3_array_snan(); db.outputs.a_half4_array_inf() = db.inputs.a_half4_array_inf(); db.outputs.a_half4_array_ninf() = db.inputs.a_half4_array_ninf(); db.outputs.a_half4_array_nan() = db.inputs.a_half4_array_nan(); db.outputs.a_half4_array_snan() = db.inputs.a_half4_array_snan(); db.outputs.a_matrixd2_inf() = db.inputs.a_matrixd2_inf(); db.outputs.a_matrixd2_ninf() = db.inputs.a_matrixd2_ninf(); db.outputs.a_matrixd2_nan() = db.inputs.a_matrixd2_nan(); db.outputs.a_matrixd2_snan() = db.inputs.a_matrixd2_snan(); db.outputs.a_matrixd3_inf() = db.inputs.a_matrixd3_inf(); db.outputs.a_matrixd3_ninf() = db.inputs.a_matrixd3_ninf(); db.outputs.a_matrixd3_nan() = db.inputs.a_matrixd3_nan(); db.outputs.a_matrixd3_snan() = db.inputs.a_matrixd3_snan(); db.outputs.a_matrixd4_inf() = db.inputs.a_matrixd4_inf(); db.outputs.a_matrixd4_ninf() = db.inputs.a_matrixd4_ninf(); db.outputs.a_matrixd4_nan() = db.inputs.a_matrixd4_nan(); db.outputs.a_matrixd4_snan() = db.inputs.a_matrixd4_snan(); db.outputs.a_matrixd2_array_inf() = db.inputs.a_matrixd2_array_inf(); db.outputs.a_matrixd2_array_ninf() = db.inputs.a_matrixd2_array_ninf(); db.outputs.a_matrixd2_array_nan() = db.inputs.a_matrixd2_array_nan(); db.outputs.a_matrixd2_array_snan() = db.inputs.a_matrixd2_array_snan(); db.outputs.a_matrixd3_array_inf() = db.inputs.a_matrixd3_array_inf(); db.outputs.a_matrixd3_array_ninf() = db.inputs.a_matrixd3_array_ninf(); db.outputs.a_matrixd3_array_nan() = db.inputs.a_matrixd3_array_nan(); db.outputs.a_matrixd3_array_snan() = db.inputs.a_matrixd3_array_snan(); db.outputs.a_matrixd4_array_inf() = db.inputs.a_matrixd4_array_inf(); db.outputs.a_matrixd4_array_ninf() = db.inputs.a_matrixd4_array_ninf(); db.outputs.a_matrixd4_array_nan() = db.inputs.a_matrixd4_array_nan(); db.outputs.a_matrixd4_array_snan() = db.inputs.a_matrixd4_array_snan(); db.outputs.a_normald3_inf() = db.inputs.a_normald3_inf(); db.outputs.a_normald3_ninf() = db.inputs.a_normald3_ninf(); db.outputs.a_normald3_nan() = db.inputs.a_normald3_nan(); db.outputs.a_normald3_snan() = db.inputs.a_normald3_snan(); db.outputs.a_normald3_array_inf() = db.inputs.a_normald3_array_inf(); db.outputs.a_normald3_array_ninf() = db.inputs.a_normald3_array_ninf(); db.outputs.a_normald3_array_nan() = db.inputs.a_normald3_array_nan(); db.outputs.a_normald3_array_snan() = db.inputs.a_normald3_array_snan(); db.outputs.a_normalf3_inf() = db.inputs.a_normalf3_inf(); db.outputs.a_normalf3_ninf() = db.inputs.a_normalf3_ninf(); db.outputs.a_normalf3_nan() = db.inputs.a_normalf3_nan(); db.outputs.a_normalf3_snan() = db.inputs.a_normalf3_snan(); db.outputs.a_normalf3_array_inf() = db.inputs.a_normalf3_array_inf(); db.outputs.a_normalf3_array_ninf() = db.inputs.a_normalf3_array_ninf(); db.outputs.a_normalf3_array_nan() = db.inputs.a_normalf3_array_nan(); db.outputs.a_normalf3_array_snan() = db.inputs.a_normalf3_array_snan(); db.outputs.a_normalh3_inf() = db.inputs.a_normalh3_inf(); db.outputs.a_normalh3_ninf() = db.inputs.a_normalh3_ninf(); db.outputs.a_normalh3_nan() = db.inputs.a_normalh3_nan(); db.outputs.a_normalh3_snan() = db.inputs.a_normalh3_snan(); db.outputs.a_normalh3_array_inf() = db.inputs.a_normalh3_array_inf(); db.outputs.a_normalh3_array_ninf() = db.inputs.a_normalh3_array_ninf(); db.outputs.a_normalh3_array_nan() = db.inputs.a_normalh3_array_nan(); db.outputs.a_normalh3_array_snan() = db.inputs.a_normalh3_array_snan(); db.outputs.a_pointd3_inf() = db.inputs.a_pointd3_inf(); db.outputs.a_pointd3_ninf() = db.inputs.a_pointd3_ninf(); db.outputs.a_pointd3_nan() = db.inputs.a_pointd3_nan(); db.outputs.a_pointd3_snan() = db.inputs.a_pointd3_snan(); db.outputs.a_pointd3_array_inf() = db.inputs.a_pointd3_array_inf(); db.outputs.a_pointd3_array_ninf() = db.inputs.a_pointd3_array_ninf(); db.outputs.a_pointd3_array_nan() = db.inputs.a_pointd3_array_nan(); db.outputs.a_pointd3_array_snan() = db.inputs.a_pointd3_array_snan(); db.outputs.a_pointf3_inf() = db.inputs.a_pointf3_inf(); db.outputs.a_pointf3_ninf() = db.inputs.a_pointf3_ninf(); db.outputs.a_pointf3_nan() = db.inputs.a_pointf3_nan(); db.outputs.a_pointf3_snan() = db.inputs.a_pointf3_snan(); db.outputs.a_pointf3_array_inf() = db.inputs.a_pointf3_array_inf(); db.outputs.a_pointf3_array_ninf() = db.inputs.a_pointf3_array_ninf(); db.outputs.a_pointf3_array_nan() = db.inputs.a_pointf3_array_nan(); db.outputs.a_pointf3_array_snan() = db.inputs.a_pointf3_array_snan(); db.outputs.a_pointh3_inf() = db.inputs.a_pointh3_inf(); db.outputs.a_pointh3_ninf() = db.inputs.a_pointh3_ninf(); db.outputs.a_pointh3_nan() = db.inputs.a_pointh3_nan(); db.outputs.a_pointh3_snan() = db.inputs.a_pointh3_snan(); db.outputs.a_pointh3_array_inf() = db.inputs.a_pointh3_array_inf(); db.outputs.a_pointh3_array_ninf() = db.inputs.a_pointh3_array_ninf(); db.outputs.a_pointh3_array_nan() = db.inputs.a_pointh3_array_nan(); db.outputs.a_pointh3_array_snan() = db.inputs.a_pointh3_array_snan(); db.outputs.a_quatd4_inf() = db.inputs.a_quatd4_inf(); db.outputs.a_quatd4_ninf() = db.inputs.a_quatd4_ninf(); db.outputs.a_quatd4_nan() = db.inputs.a_quatd4_nan(); db.outputs.a_quatd4_snan() = db.inputs.a_quatd4_snan(); db.outputs.a_quatd4_array_inf() = db.inputs.a_quatd4_array_inf(); db.outputs.a_quatd4_array_ninf() = db.inputs.a_quatd4_array_ninf(); db.outputs.a_quatd4_array_nan() = db.inputs.a_quatd4_array_nan(); db.outputs.a_quatd4_array_snan() = db.inputs.a_quatd4_array_snan(); db.outputs.a_quatf4_inf() = db.inputs.a_quatf4_inf(); db.outputs.a_quatf4_ninf() = db.inputs.a_quatf4_ninf(); db.outputs.a_quatf4_nan() = db.inputs.a_quatf4_nan(); db.outputs.a_quatf4_snan() = db.inputs.a_quatf4_snan(); db.outputs.a_quatf4_array_inf() = db.inputs.a_quatf4_array_inf(); db.outputs.a_quatf4_array_ninf() = db.inputs.a_quatf4_array_ninf(); db.outputs.a_quatf4_array_nan() = db.inputs.a_quatf4_array_nan(); db.outputs.a_quatf4_array_snan() = db.inputs.a_quatf4_array_snan(); db.outputs.a_quath4_inf() = db.inputs.a_quath4_inf(); db.outputs.a_quath4_ninf() = db.inputs.a_quath4_ninf(); db.outputs.a_quath4_nan() = db.inputs.a_quath4_nan(); db.outputs.a_quath4_snan() = db.inputs.a_quath4_snan(); db.outputs.a_quath4_array_inf() = db.inputs.a_quath4_array_inf(); db.outputs.a_quath4_array_ninf() = db.inputs.a_quath4_array_ninf(); db.outputs.a_quath4_array_nan() = db.inputs.a_quath4_array_nan(); db.outputs.a_quath4_array_snan() = db.inputs.a_quath4_array_snan(); db.outputs.a_texcoordd2_inf() = db.inputs.a_texcoordd2_inf(); db.outputs.a_texcoordd2_ninf() = db.inputs.a_texcoordd2_ninf(); db.outputs.a_texcoordd2_nan() = db.inputs.a_texcoordd2_nan(); db.outputs.a_texcoordd2_snan() = db.inputs.a_texcoordd2_snan(); db.outputs.a_texcoordd3_inf() = db.inputs.a_texcoordd3_inf(); db.outputs.a_texcoordd3_ninf() = db.inputs.a_texcoordd3_ninf(); db.outputs.a_texcoordd3_nan() = db.inputs.a_texcoordd3_nan(); db.outputs.a_texcoordd3_snan() = db.inputs.a_texcoordd3_snan(); db.outputs.a_texcoordd2_array_inf() = db.inputs.a_texcoordd2_array_inf(); db.outputs.a_texcoordd2_array_ninf() = db.inputs.a_texcoordd2_array_ninf(); db.outputs.a_texcoordd2_array_nan() = db.inputs.a_texcoordd2_array_nan(); db.outputs.a_texcoordd2_array_snan() = db.inputs.a_texcoordd2_array_snan(); db.outputs.a_texcoordd3_array_inf() = db.inputs.a_texcoordd3_array_inf(); db.outputs.a_texcoordd3_array_ninf() = db.inputs.a_texcoordd3_array_ninf(); db.outputs.a_texcoordd3_array_nan() = db.inputs.a_texcoordd3_array_nan(); db.outputs.a_texcoordd3_array_snan() = db.inputs.a_texcoordd3_array_snan(); db.outputs.a_texcoordf2_inf() = db.inputs.a_texcoordf2_inf(); db.outputs.a_texcoordf2_ninf() = db.inputs.a_texcoordf2_ninf(); db.outputs.a_texcoordf2_nan() = db.inputs.a_texcoordf2_nan(); db.outputs.a_texcoordf2_snan() = db.inputs.a_texcoordf2_snan(); db.outputs.a_texcoordf3_inf() = db.inputs.a_texcoordf3_inf(); db.outputs.a_texcoordf3_ninf() = db.inputs.a_texcoordf3_ninf(); db.outputs.a_texcoordf3_nan() = db.inputs.a_texcoordf3_nan(); db.outputs.a_texcoordf3_snan() = db.inputs.a_texcoordf3_snan(); db.outputs.a_texcoordf2_array_inf() = db.inputs.a_texcoordf2_array_inf(); db.outputs.a_texcoordf2_array_ninf() = db.inputs.a_texcoordf2_array_ninf(); db.outputs.a_texcoordf2_array_nan() = db.inputs.a_texcoordf2_array_nan(); db.outputs.a_texcoordf2_array_snan() = db.inputs.a_texcoordf2_array_snan(); db.outputs.a_texcoordf3_array_inf() = db.inputs.a_texcoordf3_array_inf(); db.outputs.a_texcoordf3_array_ninf() = db.inputs.a_texcoordf3_array_ninf(); db.outputs.a_texcoordf3_array_nan() = db.inputs.a_texcoordf3_array_nan(); db.outputs.a_texcoordf3_array_snan() = db.inputs.a_texcoordf3_array_snan(); db.outputs.a_texcoordh2_inf() = db.inputs.a_texcoordh2_inf(); db.outputs.a_texcoordh2_ninf() = db.inputs.a_texcoordh2_ninf(); db.outputs.a_texcoordh2_nan() = db.inputs.a_texcoordh2_nan(); db.outputs.a_texcoordh2_snan() = db.inputs.a_texcoordh2_snan(); db.outputs.a_texcoordh3_inf() = db.inputs.a_texcoordh3_inf(); db.outputs.a_texcoordh3_ninf() = db.inputs.a_texcoordh3_ninf(); db.outputs.a_texcoordh3_nan() = db.inputs.a_texcoordh3_nan(); db.outputs.a_texcoordh3_snan() = db.inputs.a_texcoordh3_snan(); db.outputs.a_texcoordh2_array_inf() = db.inputs.a_texcoordh2_array_inf(); db.outputs.a_texcoordh2_array_ninf() = db.inputs.a_texcoordh2_array_ninf(); db.outputs.a_texcoordh2_array_nan() = db.inputs.a_texcoordh2_array_nan(); db.outputs.a_texcoordh2_array_snan() = db.inputs.a_texcoordh2_array_snan(); db.outputs.a_texcoordh3_array_inf() = db.inputs.a_texcoordh3_array_inf(); db.outputs.a_texcoordh3_array_ninf() = db.inputs.a_texcoordh3_array_ninf(); db.outputs.a_texcoordh3_array_nan() = db.inputs.a_texcoordh3_array_nan(); db.outputs.a_texcoordh3_array_snan() = db.inputs.a_texcoordh3_array_snan(); db.outputs.a_timecode_inf() = db.inputs.a_timecode_inf(); db.outputs.a_timecode_ninf() = db.inputs.a_timecode_ninf(); db.outputs.a_timecode_nan() = db.inputs.a_timecode_nan(); db.outputs.a_timecode_snan() = db.inputs.a_timecode_snan(); db.outputs.a_timecode_array_inf() = db.inputs.a_timecode_array_inf(); db.outputs.a_timecode_array_ninf() = db.inputs.a_timecode_array_ninf(); db.outputs.a_timecode_array_nan() = db.inputs.a_timecode_array_nan(); db.outputs.a_timecode_array_snan() = db.inputs.a_timecode_array_snan(); db.outputs.a_vectord3_inf() = db.inputs.a_vectord3_inf(); db.outputs.a_vectord3_ninf() = db.inputs.a_vectord3_ninf(); db.outputs.a_vectord3_nan() = db.inputs.a_vectord3_nan(); db.outputs.a_vectord3_snan() = db.inputs.a_vectord3_snan(); db.outputs.a_vectord3_array_inf() = db.inputs.a_vectord3_array_inf(); db.outputs.a_vectord3_array_ninf() = db.inputs.a_vectord3_array_ninf(); db.outputs.a_vectord3_array_nan() = db.inputs.a_vectord3_array_nan(); db.outputs.a_vectord3_array_snan() = db.inputs.a_vectord3_array_snan(); db.outputs.a_vectorf3_inf() = db.inputs.a_vectorf3_inf(); db.outputs.a_vectorf3_ninf() = db.inputs.a_vectorf3_ninf(); db.outputs.a_vectorf3_nan() = db.inputs.a_vectorf3_nan(); db.outputs.a_vectorf3_snan() = db.inputs.a_vectorf3_snan(); db.outputs.a_vectorf3_array_inf() = db.inputs.a_vectorf3_array_inf(); db.outputs.a_vectorf3_array_ninf() = db.inputs.a_vectorf3_array_ninf(); db.outputs.a_vectorf3_array_nan() = db.inputs.a_vectorf3_array_nan(); db.outputs.a_vectorf3_array_snan() = db.inputs.a_vectorf3_array_snan(); db.outputs.a_vectorh3_inf() = db.inputs.a_vectorh3_inf(); db.outputs.a_vectorh3_ninf() = db.inputs.a_vectorh3_ninf(); db.outputs.a_vectorh3_nan() = db.inputs.a_vectorh3_nan(); db.outputs.a_vectorh3_snan() = db.inputs.a_vectorh3_snan(); db.outputs.a_vectorh3_array_inf() = db.inputs.a_vectorh3_array_inf(); db.outputs.a_vectorh3_array_ninf() = db.inputs.a_vectorh3_array_ninf(); db.outputs.a_vectorh3_array_nan() = db.inputs.a_vectorh3_array_nan(); db.outputs.a_vectorh3_array_snan() = db.inputs.a_vectorh3_array_snan(); return true; } }; REGISTER_OGN_NODE() } // test } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestGracefulShutdown.ogn
{ "TestGracefulShutdown": { "version": 1, "description": [ "Test node that exercises the internal state in such a way that if the extension shuts down before", "the state can be released on the nodes it will produce an error. Test scripts can use this to verify", "that the extension does not shut down prematurely, giving its nodes a chance to release any resources", "they may have acquired for their internal state." ], "uiName": "Test Node: Graceful Shutdown", "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["tests", "usd", "docs"], "icon": { "path": "TestNodeIcon.svg" } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnNodeDatabasePy.py
""" This node is designed to test database id. """ class OgnNodeDatabasePy: @staticmethod def compute(db) -> bool: db.outputs.id = id(db)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestGracefulShutdown.cpp
// Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnTestGracefulShutdownDatabase.h> #include <omni/graph/core/ComputeGraph.h> namespace omni { namespace graph { namespace test { // Specialty node used to test the graceful shutdown process for extensions that ensures that node states have been // destroyed before the shutdown begins (to avoid static object destruction order problems, where the state might // might be accessing data within the extension). // // Exceptions are thrown instead of the standard error logging so that the test scripts can detect when there is a problem. // class OgnTestGracefulShutdown { public: // Static class member that will be set to false when the extension loads and true when the extension is // unloading in order to flag that information for the state object to check as part of the test. static bool sShutdownStarted; // The class member makes this class behave as internal per-node state. The state will use this node // type's registration as an indication that the shutdown is happening in the proper order. NodeTypeObj m_myNodeTypeObj{ nullptr, core::kInvalidNodeTypeHandle }; void reportFailure(const char* message) { // The error logging may not work if the extension is shutting down but try anyway CARB_LOG_ERROR(message); auto interface = carb::getCachedInterface<core::ComputeGraph>(); CARB_ASSERT(interface); interface->setTestFailure(true); } OgnTestGracefulShutdown() { auto iGraphRegistry = carb::getCachedInterface<core::IGraphRegistry>(); if (iGraphRegistry) { m_myNodeTypeObj = iGraphRegistry->getRegisteredType("omni.graph.test.TestGracefulShutdown"); if (! m_myNodeTypeObj.iNodeType or (m_myNodeTypeObj.nodeTypeHandle == core::kInvalidNodeTypeHandle)) { reportFailure("TestGracefulShutdown node failed to find its node registration on initialization"); } } else { reportFailure("TestGracefulShutdown node failed to acquire the IGraphRegistry interface on initialization"); } } ~OgnTestGracefulShutdown() { auto iGraphRegistry = carb::getCachedInterface<core::IGraphRegistry>(); if (iGraphRegistry) { // For the test the specialized registration process will cause the static flag on this node to be set // to false before the deregistration happens, simulating a potential problem with static object // destruction order. That means if this node's state is still alive during the extension shutdown the // flag will be false, otherwise it will be true. if (OgnTestGracefulShutdown::sShutdownStarted) { reportFailure("TestGracefulShutdown release did not happen until the extension was being shut down"); } } else { reportFailure("TestGracefulShutdown node failed to acquire the IGraphRegistry interface on release"); } }; static bool compute(OgnTestGracefulShutdownDatabase& db) { // Accessing the state is required to create it since it creates on demand (void) db.internalState<OgnTestGracefulShutdown>(); return true; } }; bool OgnTestGracefulShutdown::sShutdownStarted = false; // Specialized version of the code in REGISTER_OGN_NODE() that inserts a modification to the static flag that indicates // when the extension shutdown has started. namespace { class RegistrationWrapper : ogn::NodeTypeBootstrapImpl<OgnTestGracefulShutdown, OgnTestGracefulShutdownDatabase> { public: RegistrationWrapper() : ogn::NodeTypeBootstrapImpl<OgnTestGracefulShutdown, OgnTestGracefulShutdownDatabase>( "omni.graph.test.TestGracefulShutdown", 1, "omni.graph.test" ) { OgnTestGracefulShutdown::sShutdownStarted = false; } ~RegistrationWrapper() { OgnTestGracefulShutdown::sShutdownStarted = true; } }; RegistrationWrapper s_registration; } } // namespace test } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComputeErrorCpp.cpp
// Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnComputeErrorCppDatabase.h> #include <omni/graph/core/IInternal.h> #include <string> class OgnComputeErrorCpp { public: static void initialize(const GraphContextObj& context, const NodeObj& nodeObj) { const AttributeObj& attrObj = nodeObj.iNode->getAttribute(nodeObj, "inputs:deprecatedInInit"); const IInternal* iInternal = carb::getCachedInterface<omni::graph::core::IInternal>(); // We would not normally deprecate an attribute this way. It would be done through the .ogn file. // This is just for testing purposes. iInternal->deprecateAttribute(attrObj, "Use 'dummyIn' instead."); } static bool compute(OgnComputeErrorCppDatabase& db) { auto severity = db.inputs.severity(); auto failCompute = db.inputs.failCompute(); std::string message(db.inputs.message()); db.outputs.dummyOut() = db.inputs.dummyIn(); if (severity == db.tokens.warning) { db.logWarning(message.c_str()); } else if (severity == db.tokens.error) { db.logError(message.c_str()); } return !failCompute; } }; REGISTER_OGN_NODE()
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSubtract.py
""" Implementation of an OmniGraph node that subtracts a value from a double3 array """ class OgnTestSubtract: @staticmethod def compute(db): input_array = db.inputs.in_array # print(input_array) _ = db.inputs.value_to_subtract # print(value_to_subtract) db.outputs.out_array_size = input_array.shape[0] output_array = db.outputs.out_array output_array[:, 1] += 1 return True
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleProducerPy.ogn
{ "BundleProducerPy": { "version": 1, "description": "Node that produces output bundle for change tracking", "language": "Python", "categories": "internal:test", "exclude": [ "usd", "docs" ], "uiName": "Test Node: Bundle Properties", "icon": { "path": "TestNodeIcon.svg" }, "outputs": { "bundle": { "type": "bundle", "description": [ "Output Bundle" ] } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleProducerPy.py
""" This node is designed to produce output bundle and test bundle change tracking. """ class OgnBundleProducerPy: @staticmethod def compute(db) -> bool: # Enable tracking for output bundle db.outputs.bundle.changes().activate() # The output is being mutated by unit test return True
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestReadVariablePy.ogn
{ "omni.graph.test.TestReadVariablePy": { "version": 1, "description": ["Node that reads a value from a variable"], "uiName": "Read Variable", "categories": ["internal:test"], "exclude": ["tests", "usd", "docs"], "icon": { "path": "TestNodeIcon.svg" }, "language": "python", "inputs": { "variableName": { "type": "token", "description": "The name of the graph variable to use." } }, "outputs": { "value": { "type": "any", "description": "The variable value that we returned.", "unvalidated": true } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleProperties.ogn
{ "BundleProperties": { "version": 1, "description": "Node that exposes properties of the bundle", "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["usd", "docs"], "inputs": { "bundle": { "type": "bundle", "description": ["Input Bundle"] } }, "outputs": { "valid": { "description": "Valid state of the input bundle", "type": "bool", "default": false } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestGatherRandomRotations.cpp
// Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include "UsdPCH.h" #include <OgnTestGatherRandomRotationsDatabase.h> namespace omni { namespace graph { namespace test { class OgnTestGatherRandomRotations { public: static bool compute(OgnTestGatherRandomRotationsDatabase& db) { static const NameToken orientationNameToken = db.stringToToken("_worldOrientation"); static const NameToken translateNameToken = db.stringToToken("_worldPosition"); // bucketIds is coming from code gen and is set to be a uint64_t. BucketId bucketId{ db.inputs.bucketIds() }; if (bucketId == carb::flatcache::kInvalidBucketId) return false; size_t count = 0; pxr::GfVec4f* orientationArray; orientationArray = (pxr::GfVec4f *) db.abi_context().iContext->getBucketArray(db.abi_context(), bucketId, orientationNameToken, count); if (!orientationArray) return false; pxr::GfVec3d* translationArray; translationArray = (pxr::GfVec3d *) db.abi_context().iContext->getBucketArray(db.abi_context(), bucketId, translateNameToken, count); if (!translationArray) return false; float xx = 0, yy = 0, zz = 0; const float spacing = 0.7f; for (uint32_t i = 0; i != count; i++) { xx += spacing; if (xx > spacing * 30) { xx = 0; yy += spacing; if (yy > spacing * 30) { yy = 0; zz += spacing; } } translationArray[i][0] = xx; translationArray[i][1] = yy; translationArray[i][2] = zz; float r0 = static_cast <float> (rand()) / static_cast <float> (RAND_MAX); float r1 = static_cast <float> (rand()) / static_cast <float> (RAND_MAX); float r2 = static_cast <float> (rand()) / static_cast <float> (RAND_MAX); float r3 = static_cast <float> (rand()) / static_cast <float> (RAND_MAX); float len = sqrt(r0*r0 + r1 * r1 + r2 * r2 + r3 * r3); r0 /= len; r1 /= len; r2 /= len; r3 /= len; orientationArray[i][0] = r0; orientationArray[i][1] = r1; orientationArray[i][2] = r2; orientationArray[i][3] = r3; } return true; } }; REGISTER_OGN_NODE() } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleChildConsumerPy.ogn
{ "BundleChildConsumerPy": { "version": 1, "description": "Consumes child bundle made by bundle child producer", "language": "Python", "uiName": "Test Node: Bundle Child Consumer", "icon": { "path": "TestNodeIcon.svg" }, "exclude": ["usd", "docs"], "categories": "internal:test", "inputs": { "bundle": { "description": "Input Bundle", "type": "bundle" } }, "outputs": { "numChildren": { "description": "Number of children", "type": "int", "default": 0 }, "numSurfaces": { "description": "Number of surfaces", "type": "int", "default": 0 } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDynamicAttributeMemory.ogn
{ "TestDynamicAttributeMemory": { "version": 1, "description": [ "Test node that exercises various memory locations for dynamic attributes.", "Add a dynamic input attribute named 'array' with type 'int[]' and a dynamic output attribute named", "'array' with type 'int[]' to exercise the node. The inputs array will be copied to the output array", "using the requested memory space." ], "language": "python", "categories": "internal:test", "exclude": ["tests", "usd", "docs"], "icon": { "path": "TestNodeIcon.svg" }, "inputs": { "onGpu": { "type": "bool", "description": "Set to True if the dynamic attribute memory should come from the GPU" }, "gpuPtrsOnGpu": { "type": "bool", "description": "Set to True if the pointers to GPU array memory should also be on the GPU" } }, "outputs": { "inputMemoryVerified": { "type": "bool", "description": [ "True if the memory locations of the input dynamic attribute matched the locations requested", "by the input attribute values." ] }, "outputMemoryVerified": { "type": "bool", "description": [ "True if the memory locations of the output dynamic attribute matched the locations requested", "by the input attribute values." ] } }, "$tests": "Tests cannot be added here as they require the addition of dynamic attributes to do anything" } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestUsdCasting.cpp
// Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnTestUsdCastingDatabase.h> #include <omni/graph/core/ogn/UsdTypes.h> namespace omni { namespace graph { namespace test { class OgnTestUsdCasting { public: static bool compute(OgnTestUsdCastingDatabase& db) { // The input bundle could contain any of the legal data types so check them all. When a match is found then // a copy of the regular input attribute with the same type is added to both the state and output bundles. // The type check is not normally needed since the copyData would handle that, but this node's purpose is to // exercise those same type checks so do them here. auto& outputBundle = db.outputs.a_bundle(); auto& stateBundle = db.state.a_bundle(); for (const auto& bundledAttribute : db.inputs.a_bundle()) { const auto& bundledType = bundledAttribute.type(); bool matchingTypeFound = bundledAttribute.get<pxr::GfHalf>() || bundledAttribute.get<pxr::TfToken>() || bundledAttribute.get<pxr::SdfTimeCode>() || bundledAttribute.get<pxr::GfMatrix2d>() || bundledAttribute.get<pxr::GfMatrix3d>() || bundledAttribute.get<pxr::GfMatrix4d>() || bundledAttribute.get<pxr::GfVec2d>() || bundledAttribute.get<pxr::GfVec2f>() || bundledAttribute.get<pxr::GfVec2h>() || bundledAttribute.get<pxr::GfVec2i>() || bundledAttribute.get<pxr::GfVec3d>() || bundledAttribute.get<pxr::GfVec3f>() || bundledAttribute.get<pxr::GfVec3h>() || bundledAttribute.get<pxr::GfVec3i>() || bundledAttribute.get<pxr::GfVec4d>() || bundledAttribute.get<pxr::GfVec4f>() || bundledAttribute.get<pxr::GfVec4h>() || bundledAttribute.get<pxr::GfVec4i>() || bundledAttribute.get<pxr::GfQuatd>() || bundledAttribute.get<pxr::GfQuatf>() || bundledAttribute.get<pxr::GfQuath>() || bundledAttribute.get<pxr::GfHalf[]>() || bundledAttribute.get<pxr::TfToken[]>() || bundledAttribute.get<pxr::SdfTimeCode[]>() || bundledAttribute.get<pxr::GfMatrix2d[]>() || bundledAttribute.get<pxr::GfMatrix3d[]>() || bundledAttribute.get<pxr::GfMatrix4d[]>() || bundledAttribute.get<pxr::GfVec2d[]>() || bundledAttribute.get<pxr::GfVec2f[]>() || bundledAttribute.get<pxr::GfVec2h[]>() || bundledAttribute.get<pxr::GfVec2i[]>() || bundledAttribute.get<pxr::GfVec3d[]>() || bundledAttribute.get<pxr::GfVec3f[]>() || bundledAttribute.get<pxr::GfVec3h[]>() || bundledAttribute.get<pxr::GfVec3i[]>() || bundledAttribute.get<pxr::GfVec4d[]>() || bundledAttribute.get<pxr::GfVec4f[]>() || bundledAttribute.get<pxr::GfVec4h[]>() || bundledAttribute.get<pxr::GfVec4i[]>() || bundledAttribute.get<pxr::GfQuatd[]>() || bundledAttribute.get<pxr::GfQuatf[]>() || bundledAttribute.get<pxr::GfQuath[]>(); if (matchingTypeFound) { auto newOutput = outputBundle.addAttribute(bundledAttribute.name(), bundledType); auto newState = stateBundle.addAttribute(bundledAttribute.name(), bundledType); newOutput.copyData(bundledAttribute); newState.copyData(bundledAttribute); } } return true; } }; REGISTER_OGN_NODE() } // namespace test } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestTypeResolution.cpp
// Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnTestTypeResolutionDatabase.h> #include <unordered_map> namespace omni { namespace graph { namespace test { // Helper that returns a tokenized string containing the comma-separated attribute name and resolved type // e.g. if the output "value" resolves to integer the string returned is "outputs:value,int". // Unresolved types will have the data type "unknown" template <typename OutputToResolve> NameToken getResolutionDescription(OutputToResolve& attribute, NameToken attributeName, OgnTestTypeResolutionDatabase& db) { std::string attributeResolution{db.tokenToString(attributeName)}; attributeResolution += ","; attributeResolution += getOgnTypeName(attribute.type()); return db.stringToToken(attributeResolution.c_str()); } class OgnTestTypeResolution { public: static bool compute(OgnTestTypeResolutionDatabase& db) { // Set up the output array to report all of the available resolved types auto& resolvedType = db.outputs.resolvedType(); resolvedType.resize(6); // Populate the output with the individual output attributes resolution information resolvedType[0] = getResolutionDescription(db.outputs.value(), outputs::value.token(), db); resolvedType[1] = getResolutionDescription(db.outputs.arrayValue(), outputs::arrayValue.token(), db); resolvedType[2] = getResolutionDescription(db.outputs.tupleValue(), outputs::tupleValue.token(), db); resolvedType[3] = getResolutionDescription(db.outputs.tupleArrayValue(), outputs::tupleArrayValue.token(), db); resolvedType[4] = getResolutionDescription(db.outputs.mixedValue(), outputs::mixedValue.token(), db); resolvedType[5] = getResolutionDescription(db.outputs.anyValue(), outputs::anyValue.token(), db); // Copy the input 'any' attribute value to output 'any'. if (db.inputs.anyValueIn().resolved()) { db.outputs.anyValue().copyData(db.inputs.anyValueIn()); } return true; } static void onConnectionTypeResolve(const NodeObj& node) { // anyValue and anyValueIn are coupled in this example - set one and the other auto-sets // the other attribs are going to behave as unrelated inputs, so disconnecting an attrib will // flip it back to any state auto iNode = node.iNode; size_t nAttribs = iNode->getAttributeCount(node); std::vector<AttributeObj> allAttribs(nAttribs); if (!iNode->getAttributes(node, &allAttribs[0], nAttribs)) return; std::unordered_map<std::string, AttributeObj> attribsByName; const std::string anyValue = outputs::anyValue.name(), anyValueIn = inputs::anyValueIn.name(); for (auto& attribObj : allAttribs) { const char* name = attribObj.iAttribute->getName(attribObj); attribsByName.emplace(name, attribObj); } auto iAttribute = allAttribs[0].iAttribute; auto isDisconnected = [&](const std::string& name) { return iAttribute->getDownstreamConnectionCount(attribsByName[name]) == 0 && iAttribute->getUpstreamConnectionCount(attribsByName[name]) == 0; }; Type anyValueType = iAttribute->getResolvedType(attribsByName[anyValue]); Type anyValueInType = iAttribute->getResolvedType(attribsByName[anyValueIn]); // if one attribute is resolved and not the other we can resolve the other // but if one is resolved and the other not, and the resolved one has no connections - we can unresolve the // other way if (anyValueType != anyValueInType) { if (anyValueInType.baseType != BaseDataType::eUnknown) { if (isDisconnected(anyValueIn)) { iAttribute->setResolvedType(attribsByName[anyValueIn], Type()); } else iAttribute->setResolvedType(attribsByName[anyValue], anyValueInType); } else if (anyValueType.baseType != BaseDataType::eUnknown) { if (isDisconnected(anyValue)) { iAttribute->setResolvedType(attribsByName[anyValue], Type()); } else iAttribute->setResolvedType(attribsByName[anyValueIn], anyValueType); } } // If both are disconnected and both resolved, we can unresolve them both else if (isDisconnected(anyValue) && isDisconnected(anyValueIn)) { iAttribute->setResolvedType(attribsByName[anyValue], Type()); iAttribute->setResolvedType(attribsByName[anyValueIn], Type()); return; } } }; REGISTER_OGN_NODE() } // namespace test } // namespace graph } // namespace omni
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundleChildProducerPy.ogn
{ "BundleChildProducerPy": { "version": 1, "description": "Produces child bundle for bundle child consumer", "language": "Python", "uiName": "Test Node: Bundle Child Producer", "icon": { "path": "TestNodeIcon.svg" }, "exclude": ["usd", "docs"], "categories": "internal:test", "inputs": { "bundle": { "description": "Input Bundle", "type": "bundle" } }, "outputs": { "bundle": { "description": "Output Bundle", "type": "bundle" }, "numChildren": { "description": "Number of children", "type": "int", "default": 0 } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnRandomBundlePoints.ogn
{ "RandomBundlePoints": { "version": 1, "description": [ "Generate a bundle of 'bundleSize' arrays of 'pointCount' points at random locations within the", "bounding cube delineated by the corner points 'minimum' and 'maximum'." ], "uiName": "Test Node: Generate Random Bundled Points", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "exclude": ["tests", "usd", "docs"], "inputs": { "pointCount": { "type": "uint64", "description": "Number of points to generate", "uiName": "Point Count" }, "bundleSize": { "type": "int", "description": "Number of point attributes to generate in the bundle", "uiName": "Bundle Size" }, "minimum": { "type": "pointf[3]", "description": "Lowest X, Y, Z values for the bounding volume", "uiName": "Bounding Cube Minimum", "default": [ 0.0, 0.0, 0.0 ] }, "maximum": { "type": "pointf[3]", "description": "Highest X, Y, Z values for the bounding volume", "uiName": "Bounding Cube Maximum", "default": [ 1.0, 1.0, 1.0 ] } }, "outputs": { "bundle": { "type": "bundle", "description": "Randomly generated bundle of attributes containing random points", "uiName": "Random Bundle" } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnFakeTutorialTupleData.ogn
{ "omni.tests.FakeTupleData" : { "version": 1, "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["tests", "usd", "docs"], "description": [ "This is an alter-ego of a tutorial node that allows to test a change in the default OGN values. Do not use in a real graph" ], "inputs": { "a_double3": { "type": "double[3]", "description": "This is an attribute with three double values", "default": [4.5, 6.7, 8.9] } }, "outputs": { "a_double3": { "type": "double[3]", "description": "This is a computed attribute with three double values" } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestGatherRandomRotations.ogn
{ "TestGatherRandomRotations": { "description": ["A sample node that gathers (vectorizes) a bunch of translations and rotations for OmniHydra. It lays out the objects in a grid and assigns a random value for the rotation "], "uiName": "Test Node: Gather Random Rotations", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "exclude": ["tests", "usd", "docs"], "inputs": { "bucketIds": { "description": "bucketIds of the buckets involved in the gather", "type": "uint64", "default": 0 } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnComputeErrorCpp.ogn
{ "ComputeErrorCpp": { "description": [ "Generates a customizable error during its compute(), for testing", "purposes. C++ version." ], "metadata" : { "uiName": "Generate compute error (C++)" }, "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["usd", "docs"], "inputs": { "severity": { "description": "Severity of the error. 'none' disables the error.", "type": "token", "metadata": { "allowedTokens": [ "none", "warning", "error" ] }, "default": "none" }, "message": { "description": "Text of the error message.", "type": "string" }, "failCompute": { "description": "If true, the compute() call will return failure to the evaluator.", "type": "bool", "default": false }, "dummyIn": { "description": "Dummy value to be copied to the output.", "type": "int", "default": 0 }, "deprecatedInOgn": { "description": "Attribute which has been deprecated here in the .ogn file.", "type": "float", "deprecated": "Use 'dummyIn' instead." }, "deprecatedInInit": { "description": "Attribute which has been deprecated in the node's initialization code.", "type": "float" } }, "outputs": { "dummyOut": { "description": "Value copied from 'dummyIn'", "type": "int", "default": 0 } }, "tests": [ { "inputs:dummyIn": 3, "outputs:dummyOut": 3} ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnBundlePropertiesPy.ogn
{ "BundlePropertiesPy": { "version": 1, "description": "Node that exposes properties of the bundle", "language": "Python", "categories": "internal:test", "exclude": [ "usd", "docs" ], "uiName": "Test Node: Bundle Properties", "icon": { "path": "TestNodeIcon.svg" }, "inputs": { "bundle": { "type": "bundle", "description": [ "Input Bundle" ], "optional": true } }, "outputs": { "valid": { "description": "Valid state of the input bundle", "type": "bool", "default": false } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSchedulingHintsList.ogn
{ "TestSchedulingHintsList": { "description": [ "Test node for scheduling hints specified by a list.", "Note that the scheduling hints do not correspond to what the node actually does, they are just for testing." ], "version": 1, "language": "python", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "exclude": ["tests", "usd", "docs"], "uiName": "Test Node: Scheduling Hints by List", "scheduling": ["threadsafe"] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAllowedTokens.ogn
{ "TestAllowedTokens": { "version": 1, "description": ["Example node testing the allowedToken list on attributes"], "language": "python", "uiName": "Test Node: Allowed Tokens (Python)", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "exclude": ["usd", "docs"], "inputs": { "simpleTokens": { "type": "token", "description": "Attribute with simple allowedTokens", "metadata": { "allowedTokens": ["red", "green", "blue"] }, "default": "red" }, "specialTokens": { "type": "token", "description": "Attribute with allowedTokens containing special characters", "metadata": { "allowedTokens": { "lt": "<", "gt": ">" } }, "default": ">" } }, "outputs": { "combinedTokens": { "type": "token", "description": "Token consisting of the two inputs, concatenated." } }, "tests": [ { "inputs:simpleTokens": "red", "inputs:specialTokens": "<", "outputs:combinedTokens": "red<" }, { "inputs:simpleTokens": "green", "inputs:specialTokens": ">", "outputs:combinedTokens": "green>" }, { "inputs:simpleTokens": "blue", "inputs:specialTokens": "<", "outputs:combinedTokens": "blue<" } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestTupleArrays.ogn
{ "TupleArrays": { "version": 1, "description": "This is a test node that passes tuple array values through, multiplied by a constant", "language": "python", "uiName": "Test Node: Tuple Array Multiplier", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "exclude": ["usd", "docs"], "inputs": { "float3Array": { "description": "Float[3] type array", "type": "float[3][]", "default": [] }, "multiplier": { "description": "Multiplier", "type": "float", "default": 1.0 } }, "$comment": "Outputs are named the same as their corresponding inputs to make tests simpler", "outputs": { "float3Array": { "description": "Float[3] result", "type": "float[3][]", "default": [] } }, "tests": [ { "inputs:float3Array": [[1.0, 2.0, 3.0],[2.0, 3.0, 4.0]], "inputs:multiplier": 3.0, "outputs:float3Array": [[3.0, 6.0, 9.0],[6.0, 9.0, 12.0]] } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestAddAnyTypeAnyMemory.cpp
// Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnTestAddAnyTypeAnyMemoryDatabase.h> namespace omni { namespace graph { namespace examples { extern "C" void testAddAnyTypeAnyMemoryEP(float const*, float const*, float*); class OgnTestAddAnyTypeAnyMemory { public: static bool compute(OgnTestAddAnyTypeAnyMemoryDatabase& db) { //This is a test node not supposed to be used in a real graph, but only for test // we assume that it will only be used with float inputs auto const& vec = *db.inputs.vec().getCpu<float[3]>(); auto const& scalar = *db.inputs.scalar().getCpu<float>(); auto& resCpu = *db.outputs.outCpu().get<float[3]>(); for (size_t i = 0; i < 3; ++i) resCpu[i] = vec[i] + scalar; auto const& gpu_vec = *db.inputs.vec().getGpu<float[3]>(); auto const& gpu_scalar = *db.inputs.scalar().getGpu<float>(); auto& resGpu = *db.outputs.outGpu().get<float[3]>(); testAddAnyTypeAnyMemoryEP(gpu_vec, &gpu_scalar, resGpu); return true; } static void onConnectionTypeResolve(const NodeObj& nodeObj) { AttributeObj attributes[4]{ nodeObj.iNode->getAttributeByToken(nodeObj, inputs::vec.token()), nodeObj.iNode->getAttributeByToken(nodeObj, inputs::scalar.token()), nodeObj.iNode->getAttributeByToken(nodeObj, outputs::outCpu.token()), nodeObj.iNode->getAttributeByToken(nodeObj, outputs::outGpu.token()) }; uint8_t tupleBuff[4] = {3, 1, 3, 3}; uint8_t arrayBuff[4] = {0, 0, 0, 0}; AttributeRole roleBuff[4] = { AttributeRole::eNone, AttributeRole::eNone, AttributeRole::eNone, AttributeRole::eNone }; nodeObj.iNode->resolvePartiallyCoupledAttributes(nodeObj, attributes, tupleBuff, arrayBuff, roleBuff, 4); } }; REGISTER_OGN_NODE() } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestBundleAttributeInterpolation.cpp
// Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include "OgnTestBundleAttributeInterpolationDatabase.h" #include <omni/graph/core/BundlePrims.h> namespace omni { namespace graph { namespace test { class OgnTestBundleAttributeInterpolation { public: static bool compute(OgnTestBundleAttributeInterpolationDatabase& db) { auto& inputPrims = db.inputs.prims(); ConstBundlePrims bundlePrims(db.abi_context(), inputPrims.abi_bundleHandle()); CARB_ASSERT(bundlePrims.getPrimCount() == 1); ConstBundlePrim* bundlePrim = bundlePrims.getPrim(0); CARB_ASSERT(bundlePrim != nullptr); if (!bundlePrim) return false; BundleAttrib const* bundleAttrib = bundlePrim->getConstAttr(db.inputs.attribute()); CARB_ASSERT(bundleAttrib != nullptr); if (!bundleAttrib) return false; db.outputs.interpolation() = bundleAttrib->interpolation(); return true; } }; REGISTER_OGN_NODE() } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnDecomposeDouble3C.cpp
// Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. // // NVIDIA CORPORATION and its licensors retain all intellectual property // and proprietary rights in and to this software, related documentation // and any modifications thereto. Any use, reproduction, disclosure or // distribution of this software and related documentation without an express // license agreement from NVIDIA CORPORATION is strictly prohibited. // #include <OgnDecomposeDouble3CDatabase.h> namespace omni { namespace graph { namespace examples { class OgnDecomposeDouble3C { public: static bool compute(OgnDecomposeDouble3CDatabase& db) { auto input = db.inputs.double3(); db.outputs.x() = input[0]; db.outputs.y() = input[1]; db.outputs.z() = input[2]; return true; } }; REGISTER_OGN_NODE() } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestSerial.ogn
{ "TestSerial": { "version": 1, "description": ["Test whether a node was executed serially within the execution framework."], "uiName": "Test Node: Serial", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "exclude": ["tests", "usd", "docs"], "outputs": { "result": { "type": "bool", "description": [ "Set to true when this node was successfully executed by", "the execution framework serially. False otherwise." ], "uiName": "Result" } } } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestNanInfPy.ogn
{ "TestNanInfPy": { "version": 1, "description": "Test node that exercises specification of NaN and Inf numbers, tuples, and arrays", "uiName": "Python Test Node: Exercise NaN and Inf", "language": "Python", "icon": { "path": "TestNodeIcon.svg" }, "exclude": ["usd", "docs"], "categories": "internal:test", "inputs": { "a_colord3_inf": {"type": "colord[3]", "default": ["inf", "inf", "inf"], "description": "colord3 Infinity"}, "a_colord3_ninf": {"type": "colord[3]", "default": ["-inf", "-inf", "-inf"], "description": "colord3 -Infinity"}, "a_colord3_nan": {"type": "colord[3]", "default": ["nan", "nan", "nan"], "description": "colord3 NaN"}, "a_colord3_snan": {"type": "colord[3]", "default": ["snan", "snan", "snan"], "description": "colord3 sNaN"}, "a_colord4_inf": {"type": "colord[4]", "default": ["inf", "inf", "inf", "inf"], "description": "colord4 Infinity"}, "a_colord4_ninf": {"type": "colord[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "colord4 -Infinity"}, "a_colord4_nan": {"type": "colord[4]", "default": ["nan", "nan", "nan", "nan"], "description": "colord4 NaN"}, "a_colord4_snan": {"type": "colord[4]", "default": ["snan", "snan", "snan", "snan"], "description": "colord4 sNaN"}, "a_colord3_array_inf": {"type": "colord[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "colord3_array Infinity"}, "a_colord3_array_ninf": {"type": "colord[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "colord3_array -Infinity"}, "a_colord3_array_nan": {"type": "colord[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "colord3_array NaN"}, "a_colord3_array_snan": {"type": "colord[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "colord3_array sNaN"}, "a_colord4_array_inf": {"type": "colord[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "colord4_array Infinity"}, "a_colord4_array_ninf": {"type": "colord[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "colord4_array -Infinity"}, "a_colord4_array_nan": {"type": "colord[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "colord4_array NaN"}, "a_colord4_array_snan": {"type": "colord[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "colord4_array sNaN"}, "a_colorf3_inf": {"type": "colorf[3]", "default": ["inf", "inf", "inf"], "description": "colorf3 Infinity"}, "a_colorf3_ninf": {"type": "colorf[3]", "default": ["-inf", "-inf", "-inf"], "description": "colorf3 -Infinity"}, "a_colorf3_nan": {"type": "colorf[3]", "default": ["nan", "nan", "nan"], "description": "colorf3 NaN"}, "a_colorf3_snan": {"type": "colorf[3]", "default": ["snan", "snan", "snan"], "description": "colorf3 sNaN"}, "a_colorf4_inf": {"type": "colorf[4]", "default": ["inf", "inf", "inf", "inf"], "description": "colorf4 Infinity"}, "a_colorf4_ninf": {"type": "colorf[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "colorf4 -Infinity"}, "a_colorf4_nan": {"type": "colorf[4]", "default": ["nan", "nan", "nan", "nan"], "description": "colorf4 NaN"}, "a_colorf4_snan": {"type": "colorf[4]", "default": ["snan", "snan", "snan", "snan"], "description": "colorf4 sNaN"}, "a_colorf3_array_inf": {"type": "colorf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "colorf3_array Infinity"}, "a_colorf3_array_ninf": {"type": "colorf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "colorf3_array -Infinity"}, "a_colorf3_array_nan": {"type": "colorf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "colorf3_array NaN"}, "a_colorf3_array_snan": {"type": "colorf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "colorf3_array sNaN"}, "a_colorf4_array_inf": {"type": "colorf[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "colorf4_array Infinity"}, "a_colorf4_array_ninf": {"type": "colorf[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "colorf4_array -Infinity"}, "a_colorf4_array_nan": {"type": "colorf[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "colorf4_array NaN"}, "a_colorf4_array_snan": {"type": "colorf[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "colorf4_array sNaN"}, "a_colorh3_inf": {"type": "colorh[3]", "default": ["inf", "inf", "inf"], "description": "colorh3 Infinity"}, "a_colorh3_ninf": {"type": "colorh[3]", "default": ["-inf", "-inf", "-inf"], "description": "colorh3 -Infinity"}, "a_colorh3_nan": {"type": "colorh[3]", "default": ["nan", "nan", "nan"], "description": "colorh3 NaN"}, "a_colorh3_snan": {"type": "colorh[3]", "default": ["snan", "snan", "snan"], "description": "colorh3 sNaN"}, "a_colorh4_inf": {"type": "colorh[4]", "default": ["inf", "inf", "inf", "inf"], "description": "colorh4 Infinity"}, "a_colorh4_ninf": {"type": "colorh[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "colorh4 -Infinity"}, "a_colorh4_nan": {"type": "colorh[4]", "default": ["nan", "nan", "nan", "nan"], "description": "colorh4 NaN"}, "a_colorh4_snan": {"type": "colorh[4]", "default": ["snan", "snan", "snan", "snan"], "description": "colorh4 sNaN"}, "a_colorh3_array_inf": {"type": "colorh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "colorh3_array Infinity"}, "a_colorh3_array_ninf": {"type": "colorh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "colorh3_array -Infinity"}, "a_colorh3_array_nan": {"type": "colorh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "colorh3_array NaN"}, "a_colorh3_array_snan": {"type": "colorh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "colorh3_array sNaN"}, "a_colorh4_array_inf": {"type": "colorh[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "colorh4_array Infinity"}, "a_colorh4_array_ninf": {"type": "colorh[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "colorh4_array -Infinity"}, "a_colorh4_array_nan": {"type": "colorh[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "colorh4_array NaN"}, "a_colorh4_array_snan": {"type": "colorh[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "colorh4_array sNaN"}, "a_double_inf": {"type": "double", "default": "inf", "description": "double Infinity"}, "a_double_ninf": {"type": "double", "default": "-inf", "description": "double -Infinity"}, "a_double_nan": {"type": "double", "default": "nan", "description": "double NaN"}, "a_double_snan": {"type": "double", "default": "snan", "description": "double sNaN"}, "a_double2_inf": {"type": "double[2]", "default": ["inf", "inf"], "description": "double2 Infinity"}, "a_double2_ninf": {"type": "double[2]", "default": ["-inf", "-inf"], "description": "double2 -Infinity"}, "a_double2_nan": {"type": "double[2]", "default": ["nan", "nan"], "description": "double2 NaN"}, "a_double2_snan": {"type": "double[2]", "default": ["snan", "snan"], "description": "double2 sNaN"}, "a_double3_inf": {"type": "double[3]", "default": ["inf", "inf", "inf"], "description": "double3 Infinity"}, "a_double3_ninf": {"type": "double[3]", "default": ["-inf", "-inf", "-inf"], "description": "double3 -Infinity"}, "a_double3_nan": {"type": "double[3]", "default": ["nan", "nan", "nan"], "description": "double3 NaN"}, "a_double3_snan": {"type": "double[3]", "default": ["snan", "snan", "snan"], "description": "double3 sNaN"}, "a_double4_inf": {"type": "double[4]", "default": ["inf", "inf", "inf", "inf"], "description": "double4 Infinity"}, "a_double4_ninf": {"type": "double[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "double4 -Infinity"}, "a_double4_nan": {"type": "double[4]", "default": ["nan", "nan", "nan", "nan"], "description": "double4 NaN"}, "a_double4_snan": {"type": "double[4]", "default": ["snan", "snan", "snan", "snan"], "description": "double4 sNaN"}, "a_double_array_inf": {"type": "double[]", "default": ["inf", "inf"], "description": "double_array Infinity"}, "a_double_array_ninf": {"type": "double[]", "default": ["-inf", "-inf"], "description": "double_array -Infinity"}, "a_double_array_nan": {"type": "double[]", "default": ["nan", "nan"], "description": "double_array NaN"}, "a_double_array_snan": {"type": "double[]", "default": ["snan", "snan"], "description": "double_array sNaN"}, "a_double2_array_inf": {"type": "double[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "double2_array Infinity"}, "a_double2_array_ninf": {"type": "double[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "double2_array -Infinity"}, "a_double2_array_nan": {"type": "double[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "double2_array NaN"}, "a_double2_array_snan": {"type": "double[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "double2_array sNaN"}, "a_double3_array_inf": {"type": "double[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "double3_array Infinity"}, "a_double3_array_ninf": {"type": "double[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "double3_array -Infinity"}, "a_double3_array_nan": {"type": "double[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "double3_array NaN"}, "a_double3_array_snan": {"type": "double[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "double3_array sNaN"}, "a_double4_array_inf": {"type": "double[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "double4_array Infinity"}, "a_double4_array_ninf": {"type": "double[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "double4_array -Infinity"}, "a_double4_array_nan": {"type": "double[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "double4_array NaN"}, "a_double4_array_snan": {"type": "double[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "double4_array sNaN"}, "a_float_inf": {"type": "float", "default": "inf", "description": "float Infinity"}, "a_float_ninf": {"type": "float", "default": "-inf", "description": "float -Infinity"}, "a_float_nan": {"type": "float", "default": "nan", "description": "float NaN"}, "a_float_snan": {"type": "float", "default": "snan", "description": "float sNaN"}, "a_float2_inf": {"type": "float[2]", "default": ["inf", "inf"], "description": "float2 Infinity"}, "a_float2_ninf": {"type": "float[2]", "default": ["-inf", "-inf"], "description": "float2 -Infinity"}, "a_float2_nan": {"type": "float[2]", "default": ["nan", "nan"], "description": "float2 NaN"}, "a_float2_snan": {"type": "float[2]", "default": ["snan", "snan"], "description": "float2 sNaN"}, "a_float3_inf": {"type": "float[3]", "default": ["inf", "inf", "inf"], "description": "float3 Infinity"}, "a_float3_ninf": {"type": "float[3]", "default": ["-inf", "-inf", "-inf"], "description": "float3 -Infinity"}, "a_float3_nan": {"type": "float[3]", "default": ["nan", "nan", "nan"], "description": "float3 NaN"}, "a_float3_snan": {"type": "float[3]", "default": ["snan", "snan", "snan"], "description": "float3 sNaN"}, "a_float4_inf": {"type": "float[4]", "default": ["inf", "inf", "inf", "inf"], "description": "float4 Infinity"}, "a_float4_ninf": {"type": "float[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "float4 -Infinity"}, "a_float4_nan": {"type": "float[4]", "default": ["nan", "nan", "nan", "nan"], "description": "float4 NaN"}, "a_float4_snan": {"type": "float[4]", "default": ["snan", "snan", "snan", "snan"], "description": "float4 sNaN"}, "a_float_array_inf": {"type": "float[]", "default": ["inf", "inf"], "description": "float_array Infinity"}, "a_float_array_ninf": {"type": "float[]", "default": ["-inf", "-inf"], "description": "float_array -Infinity"}, "a_float_array_nan": {"type": "float[]", "default": ["nan", "nan"], "description": "float_array NaN"}, "a_float_array_snan": {"type": "float[]", "default": ["snan", "snan"], "description": "float_array sNaN"}, "a_float2_array_inf": {"type": "float[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "float2_array Infinity"}, "a_float2_array_ninf": {"type": "float[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "float2_array -Infinity"}, "a_float2_array_nan": {"type": "float[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "float2_array NaN"}, "a_float2_array_snan": {"type": "float[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "float2_array sNaN"}, "a_float3_array_inf": {"type": "float[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "float3_array Infinity"}, "a_float3_array_ninf": {"type": "float[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "float3_array -Infinity"}, "a_float3_array_nan": {"type": "float[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "float3_array NaN"}, "a_float3_array_snan": {"type": "float[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "float3_array sNaN"}, "a_float4_array_inf": {"type": "float[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "float4_array Infinity"}, "a_float4_array_ninf": {"type": "float[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "float4_array -Infinity"}, "a_float4_array_nan": {"type": "float[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "float4_array NaN"}, "a_float4_array_snan": {"type": "float[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "float4_array sNaN"}, "a_frame4_inf": {"type": "frame[4]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "frame4 Infinity"}, "a_frame4_ninf": {"type": "frame[4]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "frame4 -Infinity"}, "a_frame4_nan": {"type": "frame[4]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "frame4 NaN"}, "a_frame4_snan": {"type": "frame[4]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "frame4 sNaN"}, "a_frame4_array_inf": {"type": "frame[4][]", "default": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "description": "frame4_array Infinity"}, "a_frame4_array_ninf": {"type": "frame[4][]", "default": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "description": "frame4_array -Infinity"}, "a_frame4_array_nan": {"type": "frame[4][]", "default": [[["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]]], "description": "frame4_array NaN"}, "a_frame4_array_snan": {"type": "frame[4][]", "default": [[["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]]], "description": "frame4_array sNaN"}, "a_half_inf": {"type": "half", "default": "inf", "description": "half Infinity"}, "a_half_ninf": {"type": "half", "default": "-inf", "description": "half -Infinity"}, "a_half_nan": {"type": "half", "default": "nan", "description": "half NaN"}, "a_half_snan": {"type": "half", "default": "snan", "description": "half sNaN"}, "a_half2_inf": {"type": "half[2]", "default": ["inf", "inf"], "description": "half2 Infinity"}, "a_half2_ninf": {"type": "half[2]", "default": ["-inf", "-inf"], "description": "half2 -Infinity"}, "a_half2_nan": {"type": "half[2]", "default": ["nan", "nan"], "description": "half2 NaN"}, "a_half2_snan": {"type": "half[2]", "default": ["snan", "snan"], "description": "half2 sNaN"}, "a_half3_inf": {"type": "half[3]", "default": ["inf", "inf", "inf"], "description": "half3 Infinity"}, "a_half3_ninf": {"type": "half[3]", "default": ["-inf", "-inf", "-inf"], "description": "half3 -Infinity"}, "a_half3_nan": {"type": "half[3]", "default": ["nan", "nan", "nan"], "description": "half3 NaN"}, "a_half3_snan": {"type": "half[3]", "default": ["snan", "snan", "snan"], "description": "half3 sNaN"}, "a_half4_inf": {"type": "half[4]", "default": ["inf", "inf", "inf", "inf"], "description": "half4 Infinity"}, "a_half4_ninf": {"type": "half[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "half4 -Infinity"}, "a_half4_nan": {"type": "half[4]", "default": ["nan", "nan", "nan", "nan"], "description": "half4 NaN"}, "a_half4_snan": {"type": "half[4]", "default": ["snan", "snan", "snan", "snan"], "description": "half4 sNaN"}, "a_half_array_inf": {"type": "half[]", "default": ["inf", "inf"], "description": "half_array Infinity"}, "a_half_array_ninf": {"type": "half[]", "default": ["-inf", "-inf"], "description": "half_array -Infinity"}, "a_half_array_nan": {"type": "half[]", "default": ["nan", "nan"], "description": "half_array NaN"}, "a_half_array_snan": {"type": "half[]", "default": ["snan", "snan"], "description": "half_array sNaN"}, "a_half2_array_inf": {"type": "half[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "half2_array Infinity"}, "a_half2_array_ninf": {"type": "half[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "half2_array -Infinity"}, "a_half2_array_nan": {"type": "half[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "half2_array NaN"}, "a_half2_array_snan": {"type": "half[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "half2_array sNaN"}, "a_half3_array_inf": {"type": "half[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "half3_array Infinity"}, "a_half3_array_ninf": {"type": "half[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "half3_array -Infinity"}, "a_half3_array_nan": {"type": "half[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "half3_array NaN"}, "a_half3_array_snan": {"type": "half[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "half3_array sNaN"}, "a_half4_array_inf": {"type": "half[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "half4_array Infinity"}, "a_half4_array_ninf": {"type": "half[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "half4_array -Infinity"}, "a_half4_array_nan": {"type": "half[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "half4_array NaN"}, "a_half4_array_snan": {"type": "half[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "half4_array sNaN"}, "a_matrixd2_inf": {"type": "matrixd[2]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "matrixd2 Infinity"}, "a_matrixd2_ninf": {"type": "matrixd[2]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "matrixd2 -Infinity"}, "a_matrixd2_nan": {"type": "matrixd[2]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "matrixd2 NaN"}, "a_matrixd2_snan": {"type": "matrixd[2]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "matrixd2 sNaN"}, "a_matrixd3_inf": {"type": "matrixd[3]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "matrixd3 Infinity"}, "a_matrixd3_ninf": {"type": "matrixd[3]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "matrixd3 -Infinity"}, "a_matrixd3_nan": {"type": "matrixd[3]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "matrixd3 NaN"}, "a_matrixd3_snan": {"type": "matrixd[3]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "matrixd3 sNaN"}, "a_matrixd4_inf": {"type": "matrixd[4]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "matrixd4 Infinity"}, "a_matrixd4_ninf": {"type": "matrixd[4]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "matrixd4 -Infinity"}, "a_matrixd4_nan": {"type": "matrixd[4]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "matrixd4 NaN"}, "a_matrixd4_snan": {"type": "matrixd[4]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "matrixd4 sNaN"}, "a_matrixd2_array_inf": {"type": "matrixd[2][]", "default": [[["inf", "inf"], ["inf", "inf"]], [["inf", "inf"], ["inf", "inf"]]], "description": "matrixd2_array Infinity"}, "a_matrixd2_array_ninf": {"type": "matrixd[2][]", "default": [[["-inf", "-inf"], ["-inf", "-inf"]], [["-inf", "-inf"], ["-inf", "-inf"]]], "description": "matrixd2_array -Infinity"}, "a_matrixd2_array_nan": {"type": "matrixd[2][]", "default": [[["nan", "nan"], ["nan", "nan"]], [["nan", "nan"], ["nan", "nan"]]], "description": "matrixd2_array NaN"}, "a_matrixd2_array_snan": {"type": "matrixd[2][]", "default": [[["snan", "snan"], ["snan", "snan"]], [["snan", "snan"], ["snan", "snan"]]], "description": "matrixd2_array sNaN"}, "a_matrixd3_array_inf": {"type": "matrixd[3][]", "default": [[["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]]], "description": "matrixd3_array Infinity"}, "a_matrixd3_array_ninf": {"type": "matrixd[3][]", "default": [[["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]]], "description": "matrixd3_array -Infinity"}, "a_matrixd3_array_nan": {"type": "matrixd[3][]", "default": [[["nan", "nan", "nan"], ["nan", "nan", "nan"], ["nan", "nan", "nan"]], [["nan", "nan", "nan"], ["nan", "nan", "nan"], ["nan", "nan", "nan"]]], "description": "matrixd3_array NaN"}, "a_matrixd3_array_snan": {"type": "matrixd[3][]", "default": [[["snan", "snan", "snan"], ["snan", "snan", "snan"], ["snan", "snan", "snan"]], [["snan", "snan", "snan"], ["snan", "snan", "snan"], ["snan", "snan", "snan"]]], "description": "matrixd3_array sNaN"}, "a_matrixd4_array_inf": {"type": "matrixd[4][]", "default": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "description": "matrixd4_array Infinity"}, "a_matrixd4_array_ninf": {"type": "matrixd[4][]", "default": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "description": "matrixd4_array -Infinity"}, "a_matrixd4_array_nan": {"type": "matrixd[4][]", "default": [[["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]]], "description": "matrixd4_array NaN"}, "a_matrixd4_array_snan": {"type": "matrixd[4][]", "default": [[["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]]], "description": "matrixd4_array sNaN"}, "a_normald3_inf": {"type": "normald[3]", "default": ["inf", "inf", "inf"], "description": "normald3 Infinity"}, "a_normald3_ninf": {"type": "normald[3]", "default": ["-inf", "-inf", "-inf"], "description": "normald3 -Infinity"}, "a_normald3_nan": {"type": "normald[3]", "default": ["nan", "nan", "nan"], "description": "normald3 NaN"}, "a_normald3_snan": {"type": "normald[3]", "default": ["snan", "snan", "snan"], "description": "normald3 sNaN"}, "a_normald3_array_inf": {"type": "normald[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "normald3_array Infinity"}, "a_normald3_array_ninf": {"type": "normald[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "normald3_array -Infinity"}, "a_normald3_array_nan": {"type": "normald[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "normald3_array NaN"}, "a_normald3_array_snan": {"type": "normald[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "normald3_array sNaN"}, "a_normalf3_inf": {"type": "normalf[3]", "default": ["inf", "inf", "inf"], "description": "normalf3 Infinity"}, "a_normalf3_ninf": {"type": "normalf[3]", "default": ["-inf", "-inf", "-inf"], "description": "normalf3 -Infinity"}, "a_normalf3_nan": {"type": "normalf[3]", "default": ["nan", "nan", "nan"], "description": "normalf3 NaN"}, "a_normalf3_snan": {"type": "normalf[3]", "default": ["snan", "snan", "snan"], "description": "normalf3 sNaN"}, "a_normalf3_array_inf": {"type": "normalf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "normalf3_array Infinity"}, "a_normalf3_array_ninf": {"type": "normalf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "normalf3_array -Infinity"}, "a_normalf3_array_nan": {"type": "normalf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "normalf3_array NaN"}, "a_normalf3_array_snan": {"type": "normalf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "normalf3_array sNaN"}, "a_normalh3_inf": {"type": "normalh[3]", "default": ["inf", "inf", "inf"], "description": "normalh3 Infinity"}, "a_normalh3_ninf": {"type": "normalh[3]", "default": ["-inf", "-inf", "-inf"], "description": "normalh3 -Infinity"}, "a_normalh3_nan": {"type": "normalh[3]", "default": ["nan", "nan", "nan"], "description": "normalh3 NaN"}, "a_normalh3_snan": {"type": "normalh[3]", "default": ["snan", "snan", "snan"], "description": "normalh3 sNaN"}, "a_normalh3_array_inf": {"type": "normalh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "normalh3_array Infinity"}, "a_normalh3_array_ninf": {"type": "normalh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "normalh3_array -Infinity"}, "a_normalh3_array_nan": {"type": "normalh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "normalh3_array NaN"}, "a_normalh3_array_snan": {"type": "normalh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "normalh3_array sNaN"}, "a_pointd3_inf": {"type": "pointd[3]", "default": ["inf", "inf", "inf"], "description": "pointd3 Infinity"}, "a_pointd3_ninf": {"type": "pointd[3]", "default": ["-inf", "-inf", "-inf"], "description": "pointd3 -Infinity"}, "a_pointd3_nan": {"type": "pointd[3]", "default": ["nan", "nan", "nan"], "description": "pointd3 NaN"}, "a_pointd3_snan": {"type": "pointd[3]", "default": ["snan", "snan", "snan"], "description": "pointd3 sNaN"}, "a_pointd3_array_inf": {"type": "pointd[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "pointd3_array Infinity"}, "a_pointd3_array_ninf": {"type": "pointd[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "pointd3_array -Infinity"}, "a_pointd3_array_nan": {"type": "pointd[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "pointd3_array NaN"}, "a_pointd3_array_snan": {"type": "pointd[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "pointd3_array sNaN"}, "a_pointf3_inf": {"type": "pointf[3]", "default": ["inf", "inf", "inf"], "description": "pointf3 Infinity"}, "a_pointf3_ninf": {"type": "pointf[3]", "default": ["-inf", "-inf", "-inf"], "description": "pointf3 -Infinity"}, "a_pointf3_nan": {"type": "pointf[3]", "default": ["nan", "nan", "nan"], "description": "pointf3 NaN"}, "a_pointf3_snan": {"type": "pointf[3]", "default": ["snan", "snan", "snan"], "description": "pointf3 sNaN"}, "a_pointf3_array_inf": {"type": "pointf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "pointf3_array Infinity"}, "a_pointf3_array_ninf": {"type": "pointf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "pointf3_array -Infinity"}, "a_pointf3_array_nan": {"type": "pointf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "pointf3_array NaN"}, "a_pointf3_array_snan": {"type": "pointf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "pointf3_array sNaN"}, "a_pointh3_inf": {"type": "pointh[3]", "default": ["inf", "inf", "inf"], "description": "pointh3 Infinity"}, "a_pointh3_ninf": {"type": "pointh[3]", "default": ["-inf", "-inf", "-inf"], "description": "pointh3 -Infinity"}, "a_pointh3_nan": {"type": "pointh[3]", "default": ["nan", "nan", "nan"], "description": "pointh3 NaN"}, "a_pointh3_snan": {"type": "pointh[3]", "default": ["snan", "snan", "snan"], "description": "pointh3 sNaN"}, "a_pointh3_array_inf": {"type": "pointh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "pointh3_array Infinity"}, "a_pointh3_array_ninf": {"type": "pointh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "pointh3_array -Infinity"}, "a_pointh3_array_nan": {"type": "pointh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "pointh3_array NaN"}, "a_pointh3_array_snan": {"type": "pointh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "pointh3_array sNaN"}, "a_quatd4_inf": {"type": "quatd[4]", "default": ["inf", "inf", "inf", "inf"], "description": "quatd4 Infinity"}, "a_quatd4_ninf": {"type": "quatd[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "quatd4 -Infinity"}, "a_quatd4_nan": {"type": "quatd[4]", "default": ["nan", "nan", "nan", "nan"], "description": "quatd4 NaN"}, "a_quatd4_snan": {"type": "quatd[4]", "default": ["snan", "snan", "snan", "snan"], "description": "quatd4 sNaN"}, "a_quatd4_array_inf": {"type": "quatd[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "quatd4_array Infinity"}, "a_quatd4_array_ninf": {"type": "quatd[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "quatd4_array -Infinity"}, "a_quatd4_array_nan": {"type": "quatd[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "quatd4_array NaN"}, "a_quatd4_array_snan": {"type": "quatd[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "quatd4_array sNaN"}, "a_quatf4_inf": {"type": "quatf[4]", "default": ["inf", "inf", "inf", "inf"], "description": "quatf4 Infinity"}, "a_quatf4_ninf": {"type": "quatf[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "quatf4 -Infinity"}, "a_quatf4_nan": {"type": "quatf[4]", "default": ["nan", "nan", "nan", "nan"], "description": "quatf4 NaN"}, "a_quatf4_snan": {"type": "quatf[4]", "default": ["snan", "snan", "snan", "snan"], "description": "quatf4 sNaN"}, "a_quatf4_array_inf": {"type": "quatf[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "quatf4_array Infinity"}, "a_quatf4_array_ninf": {"type": "quatf[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "quatf4_array -Infinity"}, "a_quatf4_array_nan": {"type": "quatf[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "quatf4_array NaN"}, "a_quatf4_array_snan": {"type": "quatf[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "quatf4_array sNaN"}, "a_quath4_inf": {"type": "quath[4]", "default": ["inf", "inf", "inf", "inf"], "description": "quath4 Infinity"}, "a_quath4_ninf": {"type": "quath[4]", "default": ["-inf", "-inf", "-inf", "-inf"], "description": "quath4 -Infinity"}, "a_quath4_nan": {"type": "quath[4]", "default": ["nan", "nan", "nan", "nan"], "description": "quath4 NaN"}, "a_quath4_snan": {"type": "quath[4]", "default": ["snan", "snan", "snan", "snan"], "description": "quath4 sNaN"}, "a_quath4_array_inf": {"type": "quath[4][]", "default": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "description": "quath4_array Infinity"}, "a_quath4_array_ninf": {"type": "quath[4][]", "default": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "description": "quath4_array -Infinity"}, "a_quath4_array_nan": {"type": "quath[4][]", "default": [["nan", "nan", "nan", "nan"], ["nan", "nan", "nan", "nan"]], "description": "quath4_array NaN"}, "a_quath4_array_snan": {"type": "quath[4][]", "default": [["snan", "snan", "snan", "snan"], ["snan", "snan", "snan", "snan"]], "description": "quath4_array sNaN"}, "a_texcoordd2_inf": {"type": "texcoordd[2]", "default": ["inf", "inf"], "description": "texcoordd2 Infinity"}, "a_texcoordd2_ninf": {"type": "texcoordd[2]", "default": ["-inf", "-inf"], "description": "texcoordd2 -Infinity"}, "a_texcoordd2_nan": {"type": "texcoordd[2]", "default": ["nan", "nan"], "description": "texcoordd2 NaN"}, "a_texcoordd2_snan": {"type": "texcoordd[2]", "default": ["snan", "snan"], "description": "texcoordd2 sNaN"}, "a_texcoordd3_inf": {"type": "texcoordd[3]", "default": ["inf", "inf", "inf"], "description": "texcoordd3 Infinity"}, "a_texcoordd3_ninf": {"type": "texcoordd[3]", "default": ["-inf", "-inf", "-inf"], "description": "texcoordd3 -Infinity"}, "a_texcoordd3_nan": {"type": "texcoordd[3]", "default": ["nan", "nan", "nan"], "description": "texcoordd3 NaN"}, "a_texcoordd3_snan": {"type": "texcoordd[3]", "default": ["snan", "snan", "snan"], "description": "texcoordd3 sNaN"}, "a_texcoordd2_array_inf": {"type": "texcoordd[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "texcoordd2_array Infinity"}, "a_texcoordd2_array_ninf": {"type": "texcoordd[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "texcoordd2_array -Infinity"}, "a_texcoordd2_array_nan": {"type": "texcoordd[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "texcoordd2_array NaN"}, "a_texcoordd2_array_snan": {"type": "texcoordd[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "texcoordd2_array sNaN"}, "a_texcoordd3_array_inf": {"type": "texcoordd[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "texcoordd3_array Infinity"}, "a_texcoordd3_array_ninf": {"type": "texcoordd[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "texcoordd3_array -Infinity"}, "a_texcoordd3_array_nan": {"type": "texcoordd[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "texcoordd3_array NaN"}, "a_texcoordd3_array_snan": {"type": "texcoordd[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "texcoordd3_array sNaN"}, "a_texcoordf2_inf": {"type": "texcoordf[2]", "default": ["inf", "inf"], "description": "texcoordf2 Infinity"}, "a_texcoordf2_ninf": {"type": "texcoordf[2]", "default": ["-inf", "-inf"], "description": "texcoordf2 -Infinity"}, "a_texcoordf2_nan": {"type": "texcoordf[2]", "default": ["nan", "nan"], "description": "texcoordf2 NaN"}, "a_texcoordf2_snan": {"type": "texcoordf[2]", "default": ["snan", "snan"], "description": "texcoordf2 sNaN"}, "a_texcoordf3_inf": {"type": "texcoordf[3]", "default": ["inf", "inf", "inf"], "description": "texcoordf3 Infinity"}, "a_texcoordf3_ninf": {"type": "texcoordf[3]", "default": ["-inf", "-inf", "-inf"], "description": "texcoordf3 -Infinity"}, "a_texcoordf3_nan": {"type": "texcoordf[3]", "default": ["nan", "nan", "nan"], "description": "texcoordf3 NaN"}, "a_texcoordf3_snan": {"type": "texcoordf[3]", "default": ["snan", "snan", "snan"], "description": "texcoordf3 sNaN"}, "a_texcoordf2_array_inf": {"type": "texcoordf[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "texcoordf2_array Infinity"}, "a_texcoordf2_array_ninf": {"type": "texcoordf[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "texcoordf2_array -Infinity"}, "a_texcoordf2_array_nan": {"type": "texcoordf[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "texcoordf2_array NaN"}, "a_texcoordf2_array_snan": {"type": "texcoordf[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "texcoordf2_array sNaN"}, "a_texcoordf3_array_inf": {"type": "texcoordf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "texcoordf3_array Infinity"}, "a_texcoordf3_array_ninf": {"type": "texcoordf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "texcoordf3_array -Infinity"}, "a_texcoordf3_array_nan": {"type": "texcoordf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "texcoordf3_array NaN"}, "a_texcoordf3_array_snan": {"type": "texcoordf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "texcoordf3_array sNaN"}, "a_texcoordh2_inf": {"type": "texcoordh[2]", "default": ["inf", "inf"], "description": "texcoordh2 Infinity"}, "a_texcoordh2_ninf": {"type": "texcoordh[2]", "default": ["-inf", "-inf"], "description": "texcoordh2 -Infinity"}, "a_texcoordh2_nan": {"type": "texcoordh[2]", "default": ["nan", "nan"], "description": "texcoordh2 NaN"}, "a_texcoordh2_snan": {"type": "texcoordh[2]", "default": ["snan", "snan"], "description": "texcoordh2 sNaN"}, "a_texcoordh3_inf": {"type": "texcoordh[3]", "default": ["inf", "inf", "inf"], "description": "texcoordh3 Infinity"}, "a_texcoordh3_ninf": {"type": "texcoordh[3]", "default": ["-inf", "-inf", "-inf"], "description": "texcoordh3 -Infinity"}, "a_texcoordh3_nan": {"type": "texcoordh[3]", "default": ["nan", "nan", "nan"], "description": "texcoordh3 NaN"}, "a_texcoordh3_snan": {"type": "texcoordh[3]", "default": ["snan", "snan", "snan"], "description": "texcoordh3 sNaN"}, "a_texcoordh2_array_inf": {"type": "texcoordh[2][]", "default": [["inf", "inf"], ["inf", "inf"]], "description": "texcoordh2_array Infinity"}, "a_texcoordh2_array_ninf": {"type": "texcoordh[2][]", "default": [["-inf", "-inf"], ["-inf", "-inf"]], "description": "texcoordh2_array -Infinity"}, "a_texcoordh2_array_nan": {"type": "texcoordh[2][]", "default": [["nan", "nan"], ["nan", "nan"]], "description": "texcoordh2_array NaN"}, "a_texcoordh2_array_snan": {"type": "texcoordh[2][]", "default": [["snan", "snan"], ["snan", "snan"]], "description": "texcoordh2_array sNaN"}, "a_texcoordh3_array_inf": {"type": "texcoordh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "texcoordh3_array Infinity"}, "a_texcoordh3_array_ninf": {"type": "texcoordh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "texcoordh3_array -Infinity"}, "a_texcoordh3_array_nan": {"type": "texcoordh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "texcoordh3_array NaN"}, "a_texcoordh3_array_snan": {"type": "texcoordh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "texcoordh3_array sNaN"}, "a_timecode_inf": {"type": "timecode", "default": "inf", "description": "timecode Infinity"}, "a_timecode_ninf": {"type": "timecode", "default": "-inf", "description": "timecode -Infinity"}, "a_timecode_nan": {"type": "timecode", "default": "nan", "description": "timecode NaN"}, "a_timecode_snan": {"type": "timecode", "default": "snan", "description": "timecode sNaN"}, "a_timecode_array_inf": {"type": "timecode[]", "default": ["inf", "inf"], "description": "timecode_array Infinity"}, "a_timecode_array_ninf": {"type": "timecode[]", "default": ["-inf", "-inf"], "description": "timecode_array -Infinity"}, "a_timecode_array_nan": {"type": "timecode[]", "default": ["nan", "nan"], "description": "timecode_array NaN"}, "a_timecode_array_snan": {"type": "timecode[]", "default": ["snan", "snan"], "description": "timecode_array sNaN"}, "a_vectord3_inf": {"type": "vectord[3]", "default": ["inf", "inf", "inf"], "description": "vectord3 Infinity"}, "a_vectord3_ninf": {"type": "vectord[3]", "default": ["-inf", "-inf", "-inf"], "description": "vectord3 -Infinity"}, "a_vectord3_nan": {"type": "vectord[3]", "default": ["nan", "nan", "nan"], "description": "vectord3 NaN"}, "a_vectord3_snan": {"type": "vectord[3]", "default": ["snan", "snan", "snan"], "description": "vectord3 sNaN"}, "a_vectord3_array_inf": {"type": "vectord[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "vectord3_array Infinity"}, "a_vectord3_array_ninf": {"type": "vectord[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "vectord3_array -Infinity"}, "a_vectord3_array_nan": {"type": "vectord[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "vectord3_array NaN"}, "a_vectord3_array_snan": {"type": "vectord[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "vectord3_array sNaN"}, "a_vectorf3_inf": {"type": "vectorf[3]", "default": ["inf", "inf", "inf"], "description": "vectorf3 Infinity"}, "a_vectorf3_ninf": {"type": "vectorf[3]", "default": ["-inf", "-inf", "-inf"], "description": "vectorf3 -Infinity"}, "a_vectorf3_nan": {"type": "vectorf[3]", "default": ["nan", "nan", "nan"], "description": "vectorf3 NaN"}, "a_vectorf3_snan": {"type": "vectorf[3]", "default": ["snan", "snan", "snan"], "description": "vectorf3 sNaN"}, "a_vectorf3_array_inf": {"type": "vectorf[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "vectorf3_array Infinity"}, "a_vectorf3_array_ninf": {"type": "vectorf[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "vectorf3_array -Infinity"}, "a_vectorf3_array_nan": {"type": "vectorf[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "vectorf3_array NaN"}, "a_vectorf3_array_snan": {"type": "vectorf[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "vectorf3_array sNaN"}, "a_vectorh3_inf": {"type": "vectorh[3]", "default": ["inf", "inf", "inf"], "description": "vectorh3 Infinity"}, "a_vectorh3_ninf": {"type": "vectorh[3]", "default": ["-inf", "-inf", "-inf"], "description": "vectorh3 -Infinity"}, "a_vectorh3_nan": {"type": "vectorh[3]", "default": ["nan", "nan", "nan"], "description": "vectorh3 NaN"}, "a_vectorh3_snan": {"type": "vectorh[3]", "default": ["snan", "snan", "snan"], "description": "vectorh3 sNaN"}, "a_vectorh3_array_inf": {"type": "vectorh[3][]", "default": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "description": "vectorh3_array Infinity"}, "a_vectorh3_array_ninf": {"type": "vectorh[3][]", "default": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "description": "vectorh3_array -Infinity"}, "a_vectorh3_array_nan": {"type": "vectorh[3][]", "default": [["nan", "nan", "nan"], ["nan", "nan", "nan"]], "description": "vectorh3_array NaN"}, "a_vectorh3_array_snan": {"type": "vectorh[3][]", "default": [["snan", "snan", "snan"], ["snan", "snan", "snan"]], "description": "vectorh3_array sNaN"} }, "outputs": { "a_colord3_inf": {"type": "colord[3]", "description": "colord3 Infinity"}, "a_colord3_ninf": {"type": "colord[3]", "description": "colord3 -Infinity"}, "a_colord3_nan": {"type": "colord[3]", "description": "colord3 NaN"}, "a_colord3_snan": {"type": "colord[3]", "description": "colord3 sNaN"}, "a_colord4_inf": {"type": "colord[4]", "description": "colord4 Infinity"}, "a_colord4_ninf": {"type": "colord[4]", "description": "colord4 -Infinity"}, "a_colord4_nan": {"type": "colord[4]", "description": "colord4 NaN"}, "a_colord4_snan": {"type": "colord[4]", "description": "colord4 sNaN"}, "a_colord3_array_inf": {"type": "colord[3][]", "description": "colord3_array Infinity"}, "a_colord3_array_ninf": {"type": "colord[3][]", "description": "colord3_array -Infinity"}, "a_colord3_array_nan": {"type": "colord[3][]", "description": "colord3_array NaN"}, "a_colord3_array_snan": {"type": "colord[3][]", "description": "colord3_array sNaN"}, "a_colord4_array_inf": {"type": "colord[4][]", "description": "colord4_array Infinity"}, "a_colord4_array_ninf": {"type": "colord[4][]", "description": "colord4_array -Infinity"}, "a_colord4_array_nan": {"type": "colord[4][]", "description": "colord4_array NaN"}, "a_colord4_array_snan": {"type": "colord[4][]", "description": "colord4_array sNaN"}, "a_colorf3_inf": {"type": "colorf[3]", "description": "colorf3 Infinity"}, "a_colorf3_ninf": {"type": "colorf[3]", "description": "colorf3 -Infinity"}, "a_colorf3_nan": {"type": "colorf[3]", "description": "colorf3 NaN"}, "a_colorf3_snan": {"type": "colorf[3]", "description": "colorf3 sNaN"}, "a_colorf4_inf": {"type": "colorf[4]", "description": "colorf4 Infinity"}, "a_colorf4_ninf": {"type": "colorf[4]", "description": "colorf4 -Infinity"}, "a_colorf4_nan": {"type": "colorf[4]", "description": "colorf4 NaN"}, "a_colorf4_snan": {"type": "colorf[4]", "description": "colorf4 sNaN"}, "a_colorf3_array_inf": {"type": "colorf[3][]", "description": "colorf3_array Infinity"}, "a_colorf3_array_ninf": {"type": "colorf[3][]", "description": "colorf3_array -Infinity"}, "a_colorf3_array_nan": {"type": "colorf[3][]", "description": "colorf3_array NaN"}, "a_colorf3_array_snan": {"type": "colorf[3][]", "description": "colorf3_array sNaN"}, "a_colorf4_array_inf": {"type": "colorf[4][]", "description": "colorf4_array Infinity"}, "a_colorf4_array_ninf": {"type": "colorf[4][]", "description": "colorf4_array -Infinity"}, "a_colorf4_array_nan": {"type": "colorf[4][]", "description": "colorf4_array NaN"}, "a_colorf4_array_snan": {"type": "colorf[4][]", "description": "colorf4_array sNaN"}, "a_colorh3_inf": {"type": "colorh[3]", "description": "colorh3 Infinity"}, "a_colorh3_ninf": {"type": "colorh[3]", "description": "colorh3 -Infinity"}, "a_colorh3_nan": {"type": "colorh[3]", "description": "colorh3 NaN"}, "a_colorh3_snan": {"type": "colorh[3]", "description": "colorh3 sNaN"}, "a_colorh4_inf": {"type": "colorh[4]", "description": "colorh4 Infinity"}, "a_colorh4_ninf": {"type": "colorh[4]", "description": "colorh4 -Infinity"}, "a_colorh4_nan": {"type": "colorh[4]", "description": "colorh4 NaN"}, "a_colorh4_snan": {"type": "colorh[4]", "description": "colorh4 sNaN"}, "a_colorh3_array_inf": {"type": "colorh[3][]", "description": "colorh3_array Infinity"}, "a_colorh3_array_ninf": {"type": "colorh[3][]", "description": "colorh3_array -Infinity"}, "a_colorh3_array_nan": {"type": "colorh[3][]", "description": "colorh3_array NaN"}, "a_colorh3_array_snan": {"type": "colorh[3][]", "description": "colorh3_array sNaN"}, "a_colorh4_array_inf": {"type": "colorh[4][]", "description": "colorh4_array Infinity"}, "a_colorh4_array_ninf": {"type": "colorh[4][]", "description": "colorh4_array -Infinity"}, "a_colorh4_array_nan": {"type": "colorh[4][]", "description": "colorh4_array NaN"}, "a_colorh4_array_snan": {"type": "colorh[4][]", "description": "colorh4_array sNaN"}, "a_double_inf": {"type": "double", "description": "double Infinity"}, "a_double_ninf": {"type": "double", "description": "double -Infinity"}, "a_double_nan": {"type": "double", "description": "double NaN"}, "a_double_snan": {"type": "double", "description": "double sNaN"}, "a_double2_inf": {"type": "double[2]", "description": "double2 Infinity"}, "a_double2_ninf": {"type": "double[2]", "description": "double2 -Infinity"}, "a_double2_nan": {"type": "double[2]", "description": "double2 NaN"}, "a_double2_snan": {"type": "double[2]", "description": "double2 sNaN"}, "a_double3_inf": {"type": "double[3]", "description": "double3 Infinity"}, "a_double3_ninf": {"type": "double[3]", "description": "double3 -Infinity"}, "a_double3_nan": {"type": "double[3]", "description": "double3 NaN"}, "a_double3_snan": {"type": "double[3]", "description": "double3 sNaN"}, "a_double4_inf": {"type": "double[4]", "description": "double4 Infinity"}, "a_double4_ninf": {"type": "double[4]", "description": "double4 -Infinity"}, "a_double4_nan": {"type": "double[4]", "description": "double4 NaN"}, "a_double4_snan": {"type": "double[4]", "description": "double4 sNaN"}, "a_double_array_inf": {"type": "double[]", "description": "double_array Infinity"}, "a_double_array_ninf": {"type": "double[]", "description": "double_array -Infinity"}, "a_double_array_nan": {"type": "double[]", "description": "double_array NaN"}, "a_double_array_snan": {"type": "double[]", "description": "double_array sNaN"}, "a_double2_array_inf": {"type": "double[2][]", "description": "double2_array Infinity"}, "a_double2_array_ninf": {"type": "double[2][]", "description": "double2_array -Infinity"}, "a_double2_array_nan": {"type": "double[2][]", "description": "double2_array NaN"}, "a_double2_array_snan": {"type": "double[2][]", "description": "double2_array sNaN"}, "a_double3_array_inf": {"type": "double[3][]", "description": "double3_array Infinity"}, "a_double3_array_ninf": {"type": "double[3][]", "description": "double3_array -Infinity"}, "a_double3_array_nan": {"type": "double[3][]", "description": "double3_array NaN"}, "a_double3_array_snan": {"type": "double[3][]", "description": "double3_array sNaN"}, "a_double4_array_inf": {"type": "double[4][]", "description": "double4_array Infinity"}, "a_double4_array_ninf": {"type": "double[4][]", "description": "double4_array -Infinity"}, "a_double4_array_nan": {"type": "double[4][]", "description": "double4_array NaN"}, "a_double4_array_snan": {"type": "double[4][]", "description": "double4_array sNaN"}, "a_float_inf": {"type": "float", "description": "float Infinity"}, "a_float_ninf": {"type": "float", "description": "float -Infinity"}, "a_float_nan": {"type": "float", "description": "float NaN"}, "a_float_snan": {"type": "float", "description": "float sNaN"}, "a_float2_inf": {"type": "float[2]", "description": "float2 Infinity"}, "a_float2_ninf": {"type": "float[2]", "description": "float2 -Infinity"}, "a_float2_nan": {"type": "float[2]", "description": "float2 NaN"}, "a_float2_snan": {"type": "float[2]", "description": "float2 sNaN"}, "a_float3_inf": {"type": "float[3]", "description": "float3 Infinity"}, "a_float3_ninf": {"type": "float[3]", "description": "float3 -Infinity"}, "a_float3_nan": {"type": "float[3]", "description": "float3 NaN"}, "a_float3_snan": {"type": "float[3]", "description": "float3 sNaN"}, "a_float4_inf": {"type": "float[4]", "description": "float4 Infinity"}, "a_float4_ninf": {"type": "float[4]", "description": "float4 -Infinity"}, "a_float4_nan": {"type": "float[4]", "description": "float4 NaN"}, "a_float4_snan": {"type": "float[4]", "description": "float4 sNaN"}, "a_float_array_inf": {"type": "float[]", "description": "float_array Infinity"}, "a_float_array_ninf": {"type": "float[]", "description": "float_array -Infinity"}, "a_float_array_nan": {"type": "float[]", "description": "float_array NaN"}, "a_float_array_snan": {"type": "float[]", "description": "float_array sNaN"}, "a_float2_array_inf": {"type": "float[2][]", "description": "float2_array Infinity"}, "a_float2_array_ninf": {"type": "float[2][]", "description": "float2_array -Infinity"}, "a_float2_array_nan": {"type": "float[2][]", "description": "float2_array NaN"}, "a_float2_array_snan": {"type": "float[2][]", "description": "float2_array sNaN"}, "a_float3_array_inf": {"type": "float[3][]", "description": "float3_array Infinity"}, "a_float3_array_ninf": {"type": "float[3][]", "description": "float3_array -Infinity"}, "a_float3_array_nan": {"type": "float[3][]", "description": "float3_array NaN"}, "a_float3_array_snan": {"type": "float[3][]", "description": "float3_array sNaN"}, "a_float4_array_inf": {"type": "float[4][]", "description": "float4_array Infinity"}, "a_float4_array_ninf": {"type": "float[4][]", "description": "float4_array -Infinity"}, "a_float4_array_nan": {"type": "float[4][]", "description": "float4_array NaN"}, "a_float4_array_snan": {"type": "float[4][]", "description": "float4_array sNaN"}, "a_frame4_inf": {"type": "frame[4]", "description": "frame4 Infinity"}, "a_frame4_ninf": {"type": "frame[4]", "description": "frame4 -Infinity"}, "a_frame4_nan": {"type": "frame[4]", "description": "frame4 NaN"}, "a_frame4_snan": {"type": "frame[4]", "description": "frame4 sNaN"}, "a_frame4_array_inf": {"type": "frame[4][]", "description": "frame4_array Infinity"}, "a_frame4_array_ninf": {"type": "frame[4][]", "description": "frame4_array -Infinity"}, "a_frame4_array_nan": {"type": "frame[4][]", "description": "frame4_array NaN"}, "a_frame4_array_snan": {"type": "frame[4][]", "description": "frame4_array sNaN"}, "a_half_inf": {"type": "half", "description": "half Infinity"}, "a_half_ninf": {"type": "half", "description": "half -Infinity"}, "a_half_nan": {"type": "half", "description": "half NaN"}, "a_half_snan": {"type": "half", "description": "half sNaN"}, "a_half2_inf": {"type": "half[2]", "description": "half2 Infinity"}, "a_half2_ninf": {"type": "half[2]", "description": "half2 -Infinity"}, "a_half2_nan": {"type": "half[2]", "description": "half2 NaN"}, "a_half2_snan": {"type": "half[2]", "description": "half2 sNaN"}, "a_half3_inf": {"type": "half[3]", "description": "half3 Infinity"}, "a_half3_ninf": {"type": "half[3]", "description": "half3 -Infinity"}, "a_half3_nan": {"type": "half[3]", "description": "half3 NaN"}, "a_half3_snan": {"type": "half[3]", "description": "half3 sNaN"}, "a_half4_inf": {"type": "half[4]", "description": "half4 Infinity"}, "a_half4_ninf": {"type": "half[4]", "description": "half4 -Infinity"}, "a_half4_nan": {"type": "half[4]", "description": "half4 NaN"}, "a_half4_snan": {"type": "half[4]", "description": "half4 sNaN"}, "a_half_array_inf": {"type": "half[]", "description": "half_array Infinity"}, "a_half_array_ninf": {"type": "half[]", "description": "half_array -Infinity"}, "a_half_array_nan": {"type": "half[]", "description": "half_array NaN"}, "a_half_array_snan": {"type": "half[]", "description": "half_array sNaN"}, "a_half2_array_inf": {"type": "half[2][]", "description": "half2_array Infinity"}, "a_half2_array_ninf": {"type": "half[2][]", "description": "half2_array -Infinity"}, "a_half2_array_nan": {"type": "half[2][]", "description": "half2_array NaN"}, "a_half2_array_snan": {"type": "half[2][]", "description": "half2_array sNaN"}, "a_half3_array_inf": {"type": "half[3][]", "description": "half3_array Infinity"}, "a_half3_array_ninf": {"type": "half[3][]", "description": "half3_array -Infinity"}, "a_half3_array_nan": {"type": "half[3][]", "description": "half3_array NaN"}, "a_half3_array_snan": {"type": "half[3][]", "description": "half3_array sNaN"}, "a_half4_array_inf": {"type": "half[4][]", "description": "half4_array Infinity"}, "a_half4_array_ninf": {"type": "half[4][]", "description": "half4_array -Infinity"}, "a_half4_array_nan": {"type": "half[4][]", "description": "half4_array NaN"}, "a_half4_array_snan": {"type": "half[4][]", "description": "half4_array sNaN"}, "a_matrixd2_inf": {"type": "matrixd[2]", "description": "matrixd2 Infinity"}, "a_matrixd2_ninf": {"type": "matrixd[2]", "description": "matrixd2 -Infinity"}, "a_matrixd2_nan": {"type": "matrixd[2]", "description": "matrixd2 NaN"}, "a_matrixd2_snan": {"type": "matrixd[2]", "description": "matrixd2 sNaN"}, "a_matrixd3_inf": {"type": "matrixd[3]", "description": "matrixd3 Infinity"}, "a_matrixd3_ninf": {"type": "matrixd[3]", "description": "matrixd3 -Infinity"}, "a_matrixd3_nan": {"type": "matrixd[3]", "description": "matrixd3 NaN"}, "a_matrixd3_snan": {"type": "matrixd[3]", "description": "matrixd3 sNaN"}, "a_matrixd4_inf": {"type": "matrixd[4]", "description": "matrixd4 Infinity"}, "a_matrixd4_ninf": {"type": "matrixd[4]", "description": "matrixd4 -Infinity"}, "a_matrixd4_nan": {"type": "matrixd[4]", "description": "matrixd4 NaN"}, "a_matrixd4_snan": {"type": "matrixd[4]", "description": "matrixd4 sNaN"}, "a_matrixd2_array_inf": {"type": "matrixd[2][]", "description": "matrixd2_array Infinity"}, "a_matrixd2_array_ninf": {"type": "matrixd[2][]", "description": "matrixd2_array -Infinity"}, "a_matrixd2_array_nan": {"type": "matrixd[2][]", "description": "matrixd2_array NaN"}, "a_matrixd2_array_snan": {"type": "matrixd[2][]", "description": "matrixd2_array sNaN"}, "a_matrixd3_array_inf": {"type": "matrixd[3][]", "description": "matrixd3_array Infinity"}, "a_matrixd3_array_ninf": {"type": "matrixd[3][]", "description": "matrixd3_array -Infinity"}, "a_matrixd3_array_nan": {"type": "matrixd[3][]", "description": "matrixd3_array NaN"}, "a_matrixd3_array_snan": {"type": "matrixd[3][]", "description": "matrixd3_array sNaN"}, "a_matrixd4_array_inf": {"type": "matrixd[4][]", "description": "matrixd4_array Infinity"}, "a_matrixd4_array_ninf": {"type": "matrixd[4][]", "description": "matrixd4_array -Infinity"}, "a_matrixd4_array_nan": {"type": "matrixd[4][]", "description": "matrixd4_array NaN"}, "a_matrixd4_array_snan": {"type": "matrixd[4][]", "description": "matrixd4_array sNaN"}, "a_normald3_inf": {"type": "normald[3]", "description": "normald3 Infinity"}, "a_normald3_ninf": {"type": "normald[3]", "description": "normald3 -Infinity"}, "a_normald3_nan": {"type": "normald[3]", "description": "normald3 NaN"}, "a_normald3_snan": {"type": "normald[3]", "description": "normald3 sNaN"}, "a_normald3_array_inf": {"type": "normald[3][]", "description": "normald3_array Infinity"}, "a_normald3_array_ninf": {"type": "normald[3][]", "description": "normald3_array -Infinity"}, "a_normald3_array_nan": {"type": "normald[3][]", "description": "normald3_array NaN"}, "a_normald3_array_snan": {"type": "normald[3][]", "description": "normald3_array sNaN"}, "a_normalf3_inf": {"type": "normalf[3]", "description": "normalf3 Infinity"}, "a_normalf3_ninf": {"type": "normalf[3]", "description": "normalf3 -Infinity"}, "a_normalf3_nan": {"type": "normalf[3]", "description": "normalf3 NaN"}, "a_normalf3_snan": {"type": "normalf[3]", "description": "normalf3 sNaN"}, "a_normalf3_array_inf": {"type": "normalf[3][]", "description": "normalf3_array Infinity"}, "a_normalf3_array_ninf": {"type": "normalf[3][]", "description": "normalf3_array -Infinity"}, "a_normalf3_array_nan": {"type": "normalf[3][]", "description": "normalf3_array NaN"}, "a_normalf3_array_snan": {"type": "normalf[3][]", "description": "normalf3_array sNaN"}, "a_normalh3_inf": {"type": "normalh[3]", "description": "normalh3 Infinity"}, "a_normalh3_ninf": {"type": "normalh[3]", "description": "normalh3 -Infinity"}, "a_normalh3_nan": {"type": "normalh[3]", "description": "normalh3 NaN"}, "a_normalh3_snan": {"type": "normalh[3]", "description": "normalh3 sNaN"}, "a_normalh3_array_inf": {"type": "normalh[3][]", "description": "normalh3_array Infinity"}, "a_normalh3_array_ninf": {"type": "normalh[3][]", "description": "normalh3_array -Infinity"}, "a_normalh3_array_nan": {"type": "normalh[3][]", "description": "normalh3_array NaN"}, "a_normalh3_array_snan": {"type": "normalh[3][]", "description": "normalh3_array sNaN"}, "a_pointd3_inf": {"type": "pointd[3]", "description": "pointd3 Infinity"}, "a_pointd3_ninf": {"type": "pointd[3]", "description": "pointd3 -Infinity"}, "a_pointd3_nan": {"type": "pointd[3]", "description": "pointd3 NaN"}, "a_pointd3_snan": {"type": "pointd[3]", "description": "pointd3 sNaN"}, "a_pointd3_array_inf": {"type": "pointd[3][]", "description": "pointd3_array Infinity"}, "a_pointd3_array_ninf": {"type": "pointd[3][]", "description": "pointd3_array -Infinity"}, "a_pointd3_array_nan": {"type": "pointd[3][]", "description": "pointd3_array NaN"}, "a_pointd3_array_snan": {"type": "pointd[3][]", "description": "pointd3_array sNaN"}, "a_pointf3_inf": {"type": "pointf[3]", "description": "pointf3 Infinity"}, "a_pointf3_ninf": {"type": "pointf[3]", "description": "pointf3 -Infinity"}, "a_pointf3_nan": {"type": "pointf[3]", "description": "pointf3 NaN"}, "a_pointf3_snan": {"type": "pointf[3]", "description": "pointf3 sNaN"}, "a_pointf3_array_inf": {"type": "pointf[3][]", "description": "pointf3_array Infinity"}, "a_pointf3_array_ninf": {"type": "pointf[3][]", "description": "pointf3_array -Infinity"}, "a_pointf3_array_nan": {"type": "pointf[3][]", "description": "pointf3_array NaN"}, "a_pointf3_array_snan": {"type": "pointf[3][]", "description": "pointf3_array sNaN"}, "a_pointh3_inf": {"type": "pointh[3]", "description": "pointh3 Infinity"}, "a_pointh3_ninf": {"type": "pointh[3]", "description": "pointh3 -Infinity"}, "a_pointh3_nan": {"type": "pointh[3]", "description": "pointh3 NaN"}, "a_pointh3_snan": {"type": "pointh[3]", "description": "pointh3 sNaN"}, "a_pointh3_array_inf": {"type": "pointh[3][]", "description": "pointh3_array Infinity"}, "a_pointh3_array_ninf": {"type": "pointh[3][]", "description": "pointh3_array -Infinity"}, "a_pointh3_array_nan": {"type": "pointh[3][]", "description": "pointh3_array NaN"}, "a_pointh3_array_snan": {"type": "pointh[3][]", "description": "pointh3_array sNaN"}, "a_quatd4_inf": {"type": "quatd[4]", "description": "quatd4 Infinity"}, "a_quatd4_ninf": {"type": "quatd[4]", "description": "quatd4 -Infinity"}, "a_quatd4_nan": {"type": "quatd[4]", "description": "quatd4 NaN"}, "a_quatd4_snan": {"type": "quatd[4]", "description": "quatd4 sNaN"}, "a_quatd4_array_inf": {"type": "quatd[4][]", "description": "quatd4_array Infinity"}, "a_quatd4_array_ninf": {"type": "quatd[4][]", "description": "quatd4_array -Infinity"}, "a_quatd4_array_nan": {"type": "quatd[4][]", "description": "quatd4_array NaN"}, "a_quatd4_array_snan": {"type": "quatd[4][]", "description": "quatd4_array sNaN"}, "a_quatf4_inf": {"type": "quatf[4]", "description": "quatf4 Infinity"}, "a_quatf4_ninf": {"type": "quatf[4]", "description": "quatf4 -Infinity"}, "a_quatf4_nan": {"type": "quatf[4]", "description": "quatf4 NaN"}, "a_quatf4_snan": {"type": "quatf[4]", "description": "quatf4 sNaN"}, "a_quatf4_array_inf": {"type": "quatf[4][]", "description": "quatf4_array Infinity"}, "a_quatf4_array_ninf": {"type": "quatf[4][]", "description": "quatf4_array -Infinity"}, "a_quatf4_array_nan": {"type": "quatf[4][]", "description": "quatf4_array NaN"}, "a_quatf4_array_snan": {"type": "quatf[4][]", "description": "quatf4_array sNaN"}, "a_quath4_inf": {"type": "quath[4]", "description": "quath4 Infinity"}, "a_quath4_ninf": {"type": "quath[4]", "description": "quath4 -Infinity"}, "a_quath4_nan": {"type": "quath[4]", "description": "quath4 NaN"}, "a_quath4_snan": {"type": "quath[4]", "description": "quath4 sNaN"}, "a_quath4_array_inf": {"type": "quath[4][]", "description": "quath4_array Infinity"}, "a_quath4_array_ninf": {"type": "quath[4][]", "description": "quath4_array -Infinity"}, "a_quath4_array_nan": {"type": "quath[4][]", "description": "quath4_array NaN"}, "a_quath4_array_snan": {"type": "quath[4][]", "description": "quath4_array sNaN"}, "a_texcoordd2_inf": {"type": "texcoordd[2]", "description": "texcoordd2 Infinity"}, "a_texcoordd2_ninf": {"type": "texcoordd[2]", "description": "texcoordd2 -Infinity"}, "a_texcoordd2_nan": {"type": "texcoordd[2]", "description": "texcoordd2 NaN"}, "a_texcoordd2_snan": {"type": "texcoordd[2]", "description": "texcoordd2 sNaN"}, "a_texcoordd3_inf": {"type": "texcoordd[3]", "description": "texcoordd3 Infinity"}, "a_texcoordd3_ninf": {"type": "texcoordd[3]", "description": "texcoordd3 -Infinity"}, "a_texcoordd3_nan": {"type": "texcoordd[3]", "description": "texcoordd3 NaN"}, "a_texcoordd3_snan": {"type": "texcoordd[3]", "description": "texcoordd3 sNaN"}, "a_texcoordd2_array_inf": {"type": "texcoordd[2][]", "description": "texcoordd2_array Infinity"}, "a_texcoordd2_array_ninf": {"type": "texcoordd[2][]", "description": "texcoordd2_array -Infinity"}, "a_texcoordd2_array_nan": {"type": "texcoordd[2][]", "description": "texcoordd2_array NaN"}, "a_texcoordd2_array_snan": {"type": "texcoordd[2][]", "description": "texcoordd2_array sNaN"}, "a_texcoordd3_array_inf": {"type": "texcoordd[3][]", "description": "texcoordd3_array Infinity"}, "a_texcoordd3_array_ninf": {"type": "texcoordd[3][]", "description": "texcoordd3_array -Infinity"}, "a_texcoordd3_array_nan": {"type": "texcoordd[3][]", "description": "texcoordd3_array NaN"}, "a_texcoordd3_array_snan": {"type": "texcoordd[3][]", "description": "texcoordd3_array sNaN"}, "a_texcoordf2_inf": {"type": "texcoordf[2]", "description": "texcoordf2 Infinity"}, "a_texcoordf2_ninf": {"type": "texcoordf[2]", "description": "texcoordf2 -Infinity"}, "a_texcoordf2_nan": {"type": "texcoordf[2]", "description": "texcoordf2 NaN"}, "a_texcoordf2_snan": {"type": "texcoordf[2]", "description": "texcoordf2 sNaN"}, "a_texcoordf3_inf": {"type": "texcoordf[3]", "description": "texcoordf3 Infinity"}, "a_texcoordf3_ninf": {"type": "texcoordf[3]", "description": "texcoordf3 -Infinity"}, "a_texcoordf3_nan": {"type": "texcoordf[3]", "description": "texcoordf3 NaN"}, "a_texcoordf3_snan": {"type": "texcoordf[3]", "description": "texcoordf3 sNaN"}, "a_texcoordf2_array_inf": {"type": "texcoordf[2][]", "description": "texcoordf2_array Infinity"}, "a_texcoordf2_array_ninf": {"type": "texcoordf[2][]", "description": "texcoordf2_array -Infinity"}, "a_texcoordf2_array_nan": {"type": "texcoordf[2][]", "description": "texcoordf2_array NaN"}, "a_texcoordf2_array_snan": {"type": "texcoordf[2][]", "description": "texcoordf2_array sNaN"}, "a_texcoordf3_array_inf": {"type": "texcoordf[3][]", "description": "texcoordf3_array Infinity"}, "a_texcoordf3_array_ninf": {"type": "texcoordf[3][]", "description": "texcoordf3_array -Infinity"}, "a_texcoordf3_array_nan": {"type": "texcoordf[3][]", "description": "texcoordf3_array NaN"}, "a_texcoordf3_array_snan": {"type": "texcoordf[3][]", "description": "texcoordf3_array sNaN"}, "a_texcoordh2_inf": {"type": "texcoordh[2]", "description": "texcoordh2 Infinity"}, "a_texcoordh2_ninf": {"type": "texcoordh[2]", "description": "texcoordh2 -Infinity"}, "a_texcoordh2_nan": {"type": "texcoordh[2]", "description": "texcoordh2 NaN"}, "a_texcoordh2_snan": {"type": "texcoordh[2]", "description": "texcoordh2 sNaN"}, "a_texcoordh3_inf": {"type": "texcoordh[3]", "description": "texcoordh3 Infinity"}, "a_texcoordh3_ninf": {"type": "texcoordh[3]", "description": "texcoordh3 -Infinity"}, "a_texcoordh3_nan": {"type": "texcoordh[3]", "description": "texcoordh3 NaN"}, "a_texcoordh3_snan": {"type": "texcoordh[3]", "description": "texcoordh3 sNaN"}, "a_texcoordh2_array_inf": {"type": "texcoordh[2][]", "description": "texcoordh2_array Infinity"}, "a_texcoordh2_array_ninf": {"type": "texcoordh[2][]", "description": "texcoordh2_array -Infinity"}, "a_texcoordh2_array_nan": {"type": "texcoordh[2][]", "description": "texcoordh2_array NaN"}, "a_texcoordh2_array_snan": {"type": "texcoordh[2][]", "description": "texcoordh2_array sNaN"}, "a_texcoordh3_array_inf": {"type": "texcoordh[3][]", "description": "texcoordh3_array Infinity"}, "a_texcoordh3_array_ninf": {"type": "texcoordh[3][]", "description": "texcoordh3_array -Infinity"}, "a_texcoordh3_array_nan": {"type": "texcoordh[3][]", "description": "texcoordh3_array NaN"}, "a_texcoordh3_array_snan": {"type": "texcoordh[3][]", "description": "texcoordh3_array sNaN"}, "a_timecode_inf": {"type": "timecode", "description": "timecode Infinity"}, "a_timecode_ninf": {"type": "timecode", "description": "timecode -Infinity"}, "a_timecode_nan": {"type": "timecode", "description": "timecode NaN"}, "a_timecode_snan": {"type": "timecode", "description": "timecode sNaN"}, "a_timecode_array_inf": {"type": "timecode[]", "description": "timecode_array Infinity"}, "a_timecode_array_ninf": {"type": "timecode[]", "description": "timecode_array -Infinity"}, "a_timecode_array_nan": {"type": "timecode[]", "description": "timecode_array NaN"}, "a_timecode_array_snan": {"type": "timecode[]", "description": "timecode_array sNaN"}, "a_vectord3_inf": {"type": "vectord[3]", "description": "vectord3 Infinity"}, "a_vectord3_ninf": {"type": "vectord[3]", "description": "vectord3 -Infinity"}, "a_vectord3_nan": {"type": "vectord[3]", "description": "vectord3 NaN"}, "a_vectord3_snan": {"type": "vectord[3]", "description": "vectord3 sNaN"}, "a_vectord3_array_inf": {"type": "vectord[3][]", "description": "vectord3_array Infinity"}, "a_vectord3_array_ninf": {"type": "vectord[3][]", "description": "vectord3_array -Infinity"}, "a_vectord3_array_nan": {"type": "vectord[3][]", "description": "vectord3_array NaN"}, "a_vectord3_array_snan": {"type": "vectord[3][]", "description": "vectord3_array sNaN"}, "a_vectorf3_inf": {"type": "vectorf[3]", "description": "vectorf3 Infinity"}, "a_vectorf3_ninf": {"type": "vectorf[3]", "description": "vectorf3 -Infinity"}, "a_vectorf3_nan": {"type": "vectorf[3]", "description": "vectorf3 NaN"}, "a_vectorf3_snan": {"type": "vectorf[3]", "description": "vectorf3 sNaN"}, "a_vectorf3_array_inf": {"type": "vectorf[3][]", "description": "vectorf3_array Infinity"}, "a_vectorf3_array_ninf": {"type": "vectorf[3][]", "description": "vectorf3_array -Infinity"}, "a_vectorf3_array_nan": {"type": "vectorf[3][]", "description": "vectorf3_array NaN"}, "a_vectorf3_array_snan": {"type": "vectorf[3][]", "description": "vectorf3_array sNaN"}, "a_vectorh3_inf": {"type": "vectorh[3]", "description": "vectorh3 Infinity"}, "a_vectorh3_ninf": {"type": "vectorh[3]", "description": "vectorh3 -Infinity"}, "a_vectorh3_nan": {"type": "vectorh[3]", "description": "vectorh3 NaN"}, "a_vectorh3_snan": {"type": "vectorh[3]", "description": "vectorh3 sNaN"}, "a_vectorh3_array_inf": {"type": "vectorh[3][]", "description": "vectorh3_array Infinity"}, "a_vectorh3_array_ninf": {"type": "vectorh[3][]", "description": "vectorh3_array -Infinity"}, "a_vectorh3_array_nan": {"type": "vectorh[3][]", "description": "vectorh3_array NaN"}, "a_vectorh3_array_snan": {"type": "vectorh[3][]", "description": "vectorh3_array sNaN"} }, "tests": [ { "inputs:a_colord3_inf": ["-inf", "-inf", "-inf"], "outputs:a_colord3_inf": ["-inf", "-inf", "-inf"], "inputs:a_colord3_ninf": ["inf", "inf", "inf"], "outputs:a_colord3_ninf": ["inf", "inf", "inf"], "inputs:a_colord4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_colord4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_colord4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_colord4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_colord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_colord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_colord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_colord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_colord4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_colord4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_colord4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_colord4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_colorf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_colorf3_inf": ["-inf", "-inf", "-inf"], "inputs:a_colorf3_ninf": ["inf", "inf", "inf"], "outputs:a_colorf3_ninf": ["inf", "inf", "inf"], "inputs:a_colorf4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_colorf4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_colorf4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_colorf4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_colorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_colorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_colorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_colorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_colorf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_colorf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_colorf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_colorf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_colorh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_colorh3_inf": ["-inf", "-inf", "-inf"], "inputs:a_colorh3_ninf": ["inf", "inf", "inf"], "outputs:a_colorh3_ninf": ["inf", "inf", "inf"], "inputs:a_colorh4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_colorh4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_colorh4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_colorh4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_colorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_colorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_colorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_colorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_colorh4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_colorh4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_colorh4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_colorh4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_double_inf": "-inf", "outputs:a_double_inf": "-inf", "inputs:a_double_ninf": "inf", "outputs:a_double_ninf": "inf", "inputs:a_double2_inf": ["-inf", "-inf"], "outputs:a_double2_inf": ["-inf", "-inf"], "inputs:a_double2_ninf": ["inf", "inf"], "outputs:a_double2_ninf": ["inf", "inf"], "inputs:a_double3_inf": ["-inf", "-inf", "-inf"], "outputs:a_double3_inf": ["-inf", "-inf", "-inf"], "inputs:a_double3_ninf": ["inf", "inf", "inf"], "outputs:a_double3_ninf": ["inf", "inf", "inf"], "inputs:a_double4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_double4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_double4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_double4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_double_array_inf": ["-inf", "-inf"], "outputs:a_double_array_inf": ["-inf", "-inf"], "inputs:a_double_array_ninf": ["inf", "inf"], "outputs:a_double_array_ninf": ["inf", "inf"], "inputs:a_double2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_double2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "inputs:a_double2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_double2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "inputs:a_double3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_double3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_double3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_double3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_double4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_double4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_double4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_double4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_float_inf": "-inf", "outputs:a_float_inf": "-inf", "inputs:a_float_ninf": "inf", "outputs:a_float_ninf": "inf", "inputs:a_float2_inf": ["-inf", "-inf"], "outputs:a_float2_inf": ["-inf", "-inf"], "inputs:a_float2_ninf": ["inf", "inf"], "outputs:a_float2_ninf": ["inf", "inf"], "inputs:a_float3_inf": ["-inf", "-inf", "-inf"], "outputs:a_float3_inf": ["-inf", "-inf", "-inf"], "inputs:a_float3_ninf": ["inf", "inf", "inf"], "outputs:a_float3_ninf": ["inf", "inf", "inf"], "inputs:a_float4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_float4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_float4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_float4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_float_array_inf": ["-inf", "-inf"], "outputs:a_float_array_inf": ["-inf", "-inf"], "inputs:a_float_array_ninf": ["inf", "inf"], "outputs:a_float_array_ninf": ["inf", "inf"], "inputs:a_float2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_float2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "inputs:a_float2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_float2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "inputs:a_float3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_float3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_float3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_float3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_float4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_float4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_float4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_float4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_frame4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_frame4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_frame4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_frame4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_frame4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "outputs:a_frame4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "inputs:a_frame4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "outputs:a_frame4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "inputs:a_half_inf": "-inf", "outputs:a_half_inf": "-inf", "inputs:a_half_ninf": "inf", "outputs:a_half_ninf": "inf", "inputs:a_half2_inf": ["-inf", "-inf"], "outputs:a_half2_inf": ["-inf", "-inf"], "inputs:a_half2_ninf": ["inf", "inf"], "outputs:a_half2_ninf": ["inf", "inf"], "inputs:a_half3_inf": ["-inf", "-inf", "-inf"], "outputs:a_half3_inf": ["-inf", "-inf", "-inf"], "inputs:a_half3_ninf": ["inf", "inf", "inf"], "outputs:a_half3_ninf": ["inf", "inf", "inf"], "inputs:a_half4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_half4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_half4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_half4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_half_array_inf": ["-inf", "-inf"], "outputs:a_half_array_inf": ["-inf", "-inf"], "inputs:a_half_array_ninf": ["inf", "inf"], "outputs:a_half_array_ninf": ["inf", "inf"], "inputs:a_half2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_half2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "inputs:a_half2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_half2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "inputs:a_half3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_half3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_half3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_half3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_half4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_half4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_half4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_half4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_matrixd2_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_matrixd2_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "inputs:a_matrixd2_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_matrixd2_ninf": [["inf", "inf"], ["inf", "inf"]], "inputs:a_matrixd3_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_matrixd3_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_matrixd3_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_matrixd3_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_matrixd4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_matrixd4_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_matrixd4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_matrixd4_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_matrixd2_array_inf": [[["-inf", "-inf"], ["-inf", "-inf"]], [["-inf", "-inf"], ["-inf", "-inf"]]], "outputs:a_matrixd2_array_inf": [[["-inf", "-inf"], ["-inf", "-inf"]], [["-inf", "-inf"], ["-inf", "-inf"]]], "inputs:a_matrixd2_array_ninf": [[["inf", "inf"], ["inf", "inf"]], [["inf", "inf"], ["inf", "inf"]]], "outputs:a_matrixd2_array_ninf": [[["inf", "inf"], ["inf", "inf"]], [["inf", "inf"], ["inf", "inf"]]], "inputs:a_matrixd3_array_inf": [[["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]]], "outputs:a_matrixd3_array_inf": [[["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]]], "inputs:a_matrixd3_array_ninf": [[["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]]], "outputs:a_matrixd3_array_ninf": [[["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]], [["inf", "inf", "inf"], ["inf", "inf", "inf"], ["inf", "inf", "inf"]]], "inputs:a_matrixd4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "outputs:a_matrixd4_array_inf": [[["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]]], "inputs:a_matrixd4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "outputs:a_matrixd4_array_ninf": [[["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]]], "inputs:a_normald3_inf": ["-inf", "-inf", "-inf"], "outputs:a_normald3_inf": ["-inf", "-inf", "-inf"], "inputs:a_normald3_ninf": ["inf", "inf", "inf"], "outputs:a_normald3_ninf": ["inf", "inf", "inf"], "inputs:a_normald3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_normald3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_normald3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_normald3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_normalf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_normalf3_inf": ["-inf", "-inf", "-inf"], "inputs:a_normalf3_ninf": ["inf", "inf", "inf"], "outputs:a_normalf3_ninf": ["inf", "inf", "inf"], "inputs:a_normalf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_normalf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_normalf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_normalf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_normalh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_normalh3_inf": ["-inf", "-inf", "-inf"], "inputs:a_normalh3_ninf": ["inf", "inf", "inf"], "outputs:a_normalh3_ninf": ["inf", "inf", "inf"], "inputs:a_normalh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_normalh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_normalh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_normalh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_pointd3_inf": ["-inf", "-inf", "-inf"], "outputs:a_pointd3_inf": ["-inf", "-inf", "-inf"], "inputs:a_pointd3_ninf": ["inf", "inf", "inf"], "outputs:a_pointd3_ninf": ["inf", "inf", "inf"], "inputs:a_pointd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_pointd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_pointd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_pointd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_pointf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_pointf3_inf": ["-inf", "-inf", "-inf"], "inputs:a_pointf3_ninf": ["inf", "inf", "inf"], "outputs:a_pointf3_ninf": ["inf", "inf", "inf"], "inputs:a_pointf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_pointf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_pointf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_pointf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_pointh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_pointh3_inf": ["-inf", "-inf", "-inf"], "inputs:a_pointh3_ninf": ["inf", "inf", "inf"], "outputs:a_pointh3_ninf": ["inf", "inf", "inf"], "inputs:a_pointh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_pointh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_pointh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_pointh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_quatd4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_quatd4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_quatd4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_quatd4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_quatd4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_quatd4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_quatd4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_quatd4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_quatf4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_quatf4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_quatf4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_quatf4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_quatf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_quatf4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_quatf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_quatf4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_quath4_inf": ["-inf", "-inf", "-inf", "-inf"], "outputs:a_quath4_inf": ["-inf", "-inf", "-inf", "-inf"], "inputs:a_quath4_ninf": ["inf", "inf", "inf", "inf"], "outputs:a_quath4_ninf": ["inf", "inf", "inf", "inf"], "inputs:a_quath4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "outputs:a_quath4_array_inf": [["-inf", "-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf", "-inf"]], "inputs:a_quath4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "outputs:a_quath4_array_ninf": [["inf", "inf", "inf", "inf"], ["inf", "inf", "inf", "inf"]], "inputs:a_texcoordd2_inf": ["-inf", "-inf"], "outputs:a_texcoordd2_inf": ["-inf", "-inf"], "inputs:a_texcoordd2_ninf": ["inf", "inf"], "outputs:a_texcoordd2_ninf": ["inf", "inf"], "inputs:a_texcoordd3_inf": ["-inf", "-inf", "-inf"], "outputs:a_texcoordd3_inf": ["-inf", "-inf", "-inf"], "inputs:a_texcoordd3_ninf": ["inf", "inf", "inf"], "outputs:a_texcoordd3_ninf": ["inf", "inf", "inf"], "inputs:a_texcoordd2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_texcoordd2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "inputs:a_texcoordd2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_texcoordd2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "inputs:a_texcoordd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_texcoordd3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_texcoordd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_texcoordd3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_texcoordf2_inf": ["-inf", "-inf"], "outputs:a_texcoordf2_inf": ["-inf", "-inf"], "inputs:a_texcoordf2_ninf": ["inf", "inf"], "outputs:a_texcoordf2_ninf": ["inf", "inf"], "inputs:a_texcoordf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_texcoordf3_inf": ["-inf", "-inf", "-inf"], "inputs:a_texcoordf3_ninf": ["inf", "inf", "inf"], "outputs:a_texcoordf3_ninf": ["inf", "inf", "inf"], "inputs:a_texcoordf2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_texcoordf2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "inputs:a_texcoordf2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_texcoordf2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "inputs:a_texcoordf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_texcoordf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_texcoordf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_texcoordf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_texcoordh2_inf": ["-inf", "-inf"], "outputs:a_texcoordh2_inf": ["-inf", "-inf"], "inputs:a_texcoordh2_ninf": ["inf", "inf"], "outputs:a_texcoordh2_ninf": ["inf", "inf"], "inputs:a_texcoordh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_texcoordh3_inf": ["-inf", "-inf", "-inf"], "inputs:a_texcoordh3_ninf": ["inf", "inf", "inf"], "outputs:a_texcoordh3_ninf": ["inf", "inf", "inf"], "inputs:a_texcoordh2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "outputs:a_texcoordh2_array_inf": [["-inf", "-inf"], ["-inf", "-inf"]], "inputs:a_texcoordh2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "outputs:a_texcoordh2_array_ninf": [["inf", "inf"], ["inf", "inf"]], "inputs:a_texcoordh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_texcoordh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_texcoordh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_texcoordh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_timecode_inf": "-inf", "outputs:a_timecode_inf": "-inf", "inputs:a_timecode_ninf": "inf", "outputs:a_timecode_ninf": "inf", "inputs:a_timecode_array_inf": ["-inf", "-inf"], "outputs:a_timecode_array_inf": ["-inf", "-inf"], "inputs:a_timecode_array_ninf": ["inf", "inf"], "outputs:a_timecode_array_ninf": ["inf", "inf"], "inputs:a_vectord3_inf": ["-inf", "-inf", "-inf"], "outputs:a_vectord3_inf": ["-inf", "-inf", "-inf"], "inputs:a_vectord3_ninf": ["inf", "inf", "inf"], "outputs:a_vectord3_ninf": ["inf", "inf", "inf"], "inputs:a_vectord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_vectord3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_vectord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_vectord3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_vectorf3_inf": ["-inf", "-inf", "-inf"], "outputs:a_vectorf3_inf": ["-inf", "-inf", "-inf"], "inputs:a_vectorf3_ninf": ["inf", "inf", "inf"], "outputs:a_vectorf3_ninf": ["inf", "inf", "inf"], "inputs:a_vectorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_vectorf3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_vectorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_vectorf3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "inputs:a_vectorh3_inf": ["-inf", "-inf", "-inf"], "outputs:a_vectorh3_inf": ["-inf", "-inf", "-inf"], "inputs:a_vectorh3_ninf": ["inf", "inf", "inf"], "outputs:a_vectorh3_ninf": ["inf", "inf", "inf"], "inputs:a_vectorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "outputs:a_vectorh3_array_inf": [["-inf", "-inf", "-inf"], ["-inf", "-inf", "-inf"]], "inputs:a_vectorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "outputs:a_vectorh3_array_ninf": [["inf", "inf", "inf"], ["inf", "inf", "inf"]], "$comment": "Cannot test NaN types as NaN==NaN is always false, so use a test script instead" } ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/nodes/OgnTestDeformer.ogn
{ "TestDeformer": { "version": 1, "description": [ "Test deformer node that applies a sine wave to a mesh. Set up for Realm processing in the compute(), and", " will not compute if connected to upstream node of same type with multiplier set to zero - for testing of", " dynamic scheduling"], "uiName": "Test Node: Sine Wave Deformer", "icon": { "path": "TestNodeIcon.svg" }, "categories": "internal:test", "scheduling": ["threadsafe"], "exclude": ["usd", "docs"], "inputs": { "points": { "description": "Set of points to be deformed", "type": "pointf[3][]" }, "wavelength": { "description": "Wavelength of sinusodal deformer function", "type": "float", "default": 50.0 }, "multiplier": { "description": "Amplitude of sinusoidal deformer function", "type": "float", "default": 0.7 } }, "outputs": { "points": { "description": "Set of deformed points", "type": "pointf[3][]" } }, "tests": [ { "inputs:points": [[2.0, -2.0, 3.0]], "outputs:points": [[2.0, -2.0, -2.73895]]} ] } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestAddAnyTypeAnyMemory.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:vec', {'type': 'float[3]', 'value': [2.0, 2.0, 2.0]}, True], ['inputs:scalar', {'type': 'float', 'value': 3.0}, True], ], 'outputs': [ ['outputs:outCpu', {'type': 'float[3]', 'value': [5.0, 5.0, 5.0]}, False], ['outputs:outGpu', {'type': 'float[3]', 'value': [5.0, 5.0, 5.0]}, True], ], }, { 'inputs': [ ['inputs:vec', {'type': 'float[3]', 'value': [5.0, 5.0, 5.0]}, True], ['inputs:scalar', {'type': 'float', 'value': 10.0}, True], ], 'outputs': [ ['outputs:outCpu', {'type': 'float[3]', 'value': [15.0, 15.0, 15.0]}, False], ['outputs:outGpu', {'type': 'float[3]', 'value': [15.0, 15.0, 15.0]}, True], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAddAnyTypeAnyMemory", "omni.graph.test.TestAddAnyTypeAnyMemory", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAddAnyTypeAnyMemory User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAddAnyTypeAnyMemory","omni.graph.test.TestAddAnyTypeAnyMemory", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAddAnyTypeAnyMemory User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_TestAddAnyTypeAnyMemory", "omni.graph.test.TestAddAnyTypeAnyMemory", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.TestAddAnyTypeAnyMemory User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnTestAddAnyTypeAnyMemoryDatabase import OgnTestAddAnyTypeAnyMemoryDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestAddAnyTypeAnyMemory", "omni.graph.test.TestAddAnyTypeAnyMemory") }) database = OgnTestAddAnyTypeAnyMemoryDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error"
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnComputeErrorCpp.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:dummyIn', 3, False], ], 'outputs': [ ['outputs:dummyOut', 3, False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_ComputeErrorCpp", "omni.graph.test.ComputeErrorCpp", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.ComputeErrorCpp User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_ComputeErrorCpp","omni.graph.test.ComputeErrorCpp", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.ComputeErrorCpp User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_ComputeErrorCpp", "omni.graph.test.ComputeErrorCpp", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.ComputeErrorCpp User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnComputeErrorCppDatabase import OgnComputeErrorCppDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_ComputeErrorCpp", "omni.graph.test.ComputeErrorCpp") }) database = OgnComputeErrorCppDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:deprecatedInInit")) attribute = test_node.get_attribute("inputs:deprecatedInInit") db_value = database.inputs.deprecatedInInit expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:deprecatedInOgn")) attribute = test_node.get_attribute("inputs:deprecatedInOgn") db_value = database.inputs.deprecatedInOgn expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:dummyIn")) attribute = test_node.get_attribute("inputs:dummyIn") db_value = database.inputs.dummyIn expected_value = 0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:failCompute")) attribute = test_node.get_attribute("inputs:failCompute") db_value = database.inputs.failCompute expected_value = False ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:message")) attribute = test_node.get_attribute("inputs:message") db_value = database.inputs.message expected_value = "" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:severity")) attribute = test_node.get_attribute("inputs:severity") db_value = database.inputs.severity expected_value = "none" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:dummyOut")) attribute = test_node.get_attribute("outputs:dummyOut") db_value = database.outputs.dummyOut
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestAllDataTypesCarb.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:doNotCompute', True, False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, False], False], ['outputs:a_colord_3', [1.5, 2.5, 3.5], False], ['outputs:a_colord_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorh_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colord_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorh_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_double', 1.5, False], ['outputs:a_double_2', [1.5, 2.5], False], ['outputs:a_double_3', [1.5, 2.5, 3.5], False], ['outputs:a_double_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_double_array', [1.5, 2.5], False], ['outputs:a_double_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_double_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_double_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_execution', 2, False], ['outputs:a_float', 1.5, False], ['outputs:a_float_2', [1.5, 2.5], False], ['outputs:a_float_3', [1.5, 2.5, 3.5], False], ['outputs:a_float_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_float_array', [1.5, 2.5], False], ['outputs:a_float_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_float_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_float_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_frame_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_frame_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_half', 1.5, False], ['outputs:a_half_2', [1.5, 2.5], False], ['outputs:a_half_3', [1.5, 2.5, 3.5], False], ['outputs:a_half_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_half_array', [1.5, 2.5], False], ['outputs:a_half_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_half_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_half_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_matrixd_3', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], False], ['outputs:a_matrixd_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_matrixd_2_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_matrixd_3_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5]], False], ['outputs:a_matrixd_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_normald_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalf_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalh_3', [1.5, 2.5, 3.5], False], ['outputs:a_normald_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_objectId', 2, False], ['outputs:a_objectId_array', [2, 3], False], ['outputs:a_pointd_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointf_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointh_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_quatd_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quath_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatd_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quatf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quath_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_string', "Snoke", False], ['outputs:a_texcoordd_2', [1.5, 2.5], False], ['outputs:a_texcoordd_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordf_2', [1.5, 2.5], False], ['outputs:a_texcoordf_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordh_2', [1.5, 2.5], False], ['outputs:a_texcoordh_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordd_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordf_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordh_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_timecode', 2.5, False], ['outputs:a_timecode_array', [2.5, 3.5], False], ['outputs:a_token', "Jedi", False], ['outputs:a_token_array', ["Luke", "Skywalker"], False], ['outputs:a_uchar', 2, False], ['outputs:a_uchar_array', [2, 3], False], ['outputs:a_uint', 2, False], ['outputs:a_uint_array', [2, 3], False], ['outputs:a_uint64', 2, False], ['outputs:a_uint64_array', [2, 3], False], ['outputs:a_vectord_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ], 'outputs': [ ['outputs:a_bool', False, False], ['outputs:a_bool_array', [False, True], False], ['outputs:a_colord_3', [1.0, 2.0, 3.0], False], ['outputs:a_colord_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorh_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colord_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorh_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_double', 1.0, False], ['outputs:a_double_2', [1.0, 2.0], False], ['outputs:a_double_3', [1.0, 2.0, 3.0], False], ['outputs:a_double_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_double_array', [1.0, 2.0], False], ['outputs:a_double_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_double_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_double_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_execution', 1, False], ['outputs:a_float', 1.0, False], ['outputs:a_float_2', [1.0, 2.0], False], ['outputs:a_float_3', [1.0, 2.0, 3.0], False], ['outputs:a_float_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_float_array', [1.0, 2.0], False], ['outputs:a_float_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_float_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_float_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_frame_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_frame_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_half', 1.0, False], ['outputs:a_half_2', [1.0, 2.0], False], ['outputs:a_half_3', [1.0, 2.0, 3.0], False], ['outputs:a_half_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_half_array', [1.0, 2.0], False], ['outputs:a_half_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_half_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_half_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_matrixd_3', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], False], ['outputs:a_matrixd_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_matrixd_2_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_matrixd_3_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0]], False], ['outputs:a_matrixd_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_normald_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalf_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalh_3', [1.0, 2.0, 3.0], False], ['outputs:a_normald_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_objectId', 1, False], ['outputs:a_objectId_array', [1, 2], False], ['outputs:a_pointd_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointf_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointh_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_quatd_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quath_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatd_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quatf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quath_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_string', "Rey", False], ['outputs:a_texcoordd_2', [1.0, 2.0], False], ['outputs:a_texcoordd_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordf_2', [1.0, 2.0], False], ['outputs:a_texcoordf_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordh_2', [1.0, 2.0], False], ['outputs:a_texcoordh_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordd_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordf_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordh_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_timecode', 1.0, False], ['outputs:a_timecode_array', [1.0, 2.0], False], ['outputs:a_token', "Sith", False], ['outputs:a_token_array', ["Kylo", "Ren"], False], ['outputs:a_uchar', 1, False], ['outputs:a_uchar_array', [1, 2], False], ['outputs:a_uint', 1, False], ['outputs:a_uint_array', [1, 2], False], ['outputs:a_uint64', 1, False], ['outputs:a_uint64_array', [1, 2], False], ['outputs:a_vectord_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ['inputs:a_bool', True, False], ['inputs:a_bool_array', [True, True], False], ['inputs:a_colord_3', [1.25, 2.25, 3.25], False], ['inputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_double', 1.25, False], ['inputs:a_double_2', [1.25, 2.25], False], ['inputs:a_double_3', [1.25, 2.25, 3.25], False], ['inputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_double_array', [1.25, 2.25], False], ['inputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_execution', 3, False], ['inputs:a_float', 1.25, False], ['inputs:a_float_2', [1.25, 2.25], False], ['inputs:a_float_3', [1.25, 2.25, 3.25], False], ['inputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_float_array', [1.25, 2.25], False], ['inputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['inputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_half', 1.25, False], ['inputs:a_half_2', [1.25, 2.25], False], ['inputs:a_half_3', [1.25, 2.25, 3.25], False], ['inputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_half_array', [1.25, 2.25], False], ['inputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_int', 11, False], ['inputs:a_int_2', [11, 12], False], ['inputs:a_int_3', [11, 12, 13], False], ['inputs:a_int_4', [11, 12, 13, 14], False], ['inputs:a_int_array', [11, 12], False], ['inputs:a_int_2_array', [[11, 12], [13, 14]], False], ['inputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['inputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['inputs:a_int64', 34567, False], ['inputs:a_int64_array', [45678, 56789], False], ['inputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['inputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['inputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['inputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_normald_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['inputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_objectId', 3, False], ['inputs:a_objectId_array', [3, 4], False], ['inputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_string', "Palpatine", False], ['inputs:a_texcoordd_2', [1.25, 2.25], False], ['inputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordf_2', [1.25, 2.25], False], ['inputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordh_2', [1.25, 2.25], False], ['inputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_timecode', 1.25, False], ['inputs:a_timecode_array', [1.25, 2.25], False], ['inputs:a_token', "Rebels", False], ['inputs:a_token_array', ["Han", "Solo"], False], ['inputs:a_uchar', 3, False], ['inputs:a_uchar_array', [3, 4], False], ['inputs:a_uint', 3, False], ['inputs:a_uint_array', [3, 4], False], ['inputs:a_uint64', 3, False], ['inputs:a_uint64_array', [3, 4], False], ['inputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, True], False], ['outputs:a_colord_3', [1.25, 2.25, 3.25], False], ['outputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_double', 1.25, False], ['outputs:a_double_2', [1.25, 2.25], False], ['outputs:a_double_3', [1.25, 2.25, 3.25], False], ['outputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_double_array', [1.25, 2.25], False], ['outputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_execution', 3, False], ['outputs:a_float', 1.25, False], ['outputs:a_float_2', [1.25, 2.25], False], ['outputs:a_float_3', [1.25, 2.25, 3.25], False], ['outputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_float_array', [1.25, 2.25], False], ['outputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['outputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_half', 1.25, False], ['outputs:a_half_2', [1.25, 2.25], False], ['outputs:a_half_3', [1.25, 2.25, 3.25], False], ['outputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_half_array', [1.25, 2.25], False], ['outputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_int', 11, False], ['outputs:a_int_2', [11, 12], False], ['outputs:a_int_3', [11, 12, 13], False], ['outputs:a_int_4', [11, 12, 13, 14], False], ['outputs:a_int_array', [11, 12], False], ['outputs:a_int_2_array', [[11, 12], [13, 14]], False], ['outputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['outputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['outputs:a_int64', 34567, False], ['outputs:a_int64_array', [45678, 56789], False], ['outputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['outputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['outputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['outputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_normald_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['outputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_objectId', 3, False], ['outputs:a_objectId_array', [3, 4], False], ['outputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_string', "Palpatine", False], ['outputs:a_texcoordd_2', [1.25, 2.25], False], ['outputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordf_2', [1.25, 2.25], False], ['outputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordh_2', [1.25, 2.25], False], ['outputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_timecode', 1.25, False], ['outputs:a_timecode_array', [1.25, 2.25], False], ['outputs:a_token', "Rebels", False], ['outputs:a_token_array', ["Han", "Solo"], False], ['outputs:a_uchar', 3, False], ['outputs:a_uchar_array', [3, 4], False], ['outputs:a_uint', 3, False], ['outputs:a_uint_array', [3, 4], False], ['outputs:a_uint64', 3, False], ['outputs:a_uint64_array', [3, 4], False], ['outputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypesCarb", "omni.graph.test.TestAllDataTypesCarb", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypesCarb User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypesCarb","omni.graph.test.TestAllDataTypesCarb", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypesCarb User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_TestAllDataTypesCarb", "omni.graph.test.TestAllDataTypesCarb", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.TestAllDataTypesCarb User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnTestAllDataTypesCarbDatabase import OgnTestAllDataTypesCarbDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestAllDataTypesCarb", "omni.graph.test.TestAllDataTypesCarb") }) database = OgnTestAllDataTypesCarbDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a_bool")) attribute = test_node.get_attribute("inputs:a_bool") db_value = database.inputs.a_bool expected_value = False ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_bool_array")) attribute = test_node.get_attribute("inputs:a_bool_array") db_value = database.inputs.a_bool_array expected_value = [False, True] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3")) attribute = test_node.get_attribute("inputs:a_colord_3") db_value = database.inputs.a_colord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3_array")) attribute = test_node.get_attribute("inputs:a_colord_3_array") db_value = database.inputs.a_colord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4")) attribute = test_node.get_attribute("inputs:a_colord_4") db_value = database.inputs.a_colord_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4_array")) attribute = test_node.get_attribute("inputs:a_colord_4_array") db_value = database.inputs.a_colord_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3")) attribute = test_node.get_attribute("inputs:a_colorf_3") db_value = database.inputs.a_colorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3_array")) attribute = test_node.get_attribute("inputs:a_colorf_3_array") db_value = database.inputs.a_colorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4")) attribute = test_node.get_attribute("inputs:a_colorf_4") db_value = database.inputs.a_colorf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4_array")) attribute = test_node.get_attribute("inputs:a_colorf_4_array") db_value = database.inputs.a_colorf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3")) attribute = test_node.get_attribute("inputs:a_colorh_3") db_value = database.inputs.a_colorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3_array")) attribute = test_node.get_attribute("inputs:a_colorh_3_array") db_value = database.inputs.a_colorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4")) attribute = test_node.get_attribute("inputs:a_colorh_4") db_value = database.inputs.a_colorh_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4_array")) attribute = test_node.get_attribute("inputs:a_colorh_4_array") db_value = database.inputs.a_colorh_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double")) attribute = test_node.get_attribute("inputs:a_double") db_value = database.inputs.a_double expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2")) attribute = test_node.get_attribute("inputs:a_double_2") db_value = database.inputs.a_double_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2_array")) attribute = test_node.get_attribute("inputs:a_double_2_array") db_value = database.inputs.a_double_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3")) attribute = test_node.get_attribute("inputs:a_double_3") db_value = database.inputs.a_double_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3_array")) attribute = test_node.get_attribute("inputs:a_double_3_array") db_value = database.inputs.a_double_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4")) attribute = test_node.get_attribute("inputs:a_double_4") db_value = database.inputs.a_double_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4_array")) attribute = test_node.get_attribute("inputs:a_double_4_array") db_value = database.inputs.a_double_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array")) attribute = test_node.get_attribute("inputs:a_double_array") db_value = database.inputs.a_double_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_execution")) attribute = test_node.get_attribute("inputs:a_execution") db_value = database.inputs.a_execution expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float")) attribute = test_node.get_attribute("inputs:a_float") db_value = database.inputs.a_float expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2")) attribute = test_node.get_attribute("inputs:a_float_2") db_value = database.inputs.a_float_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2_array")) attribute = test_node.get_attribute("inputs:a_float_2_array") db_value = database.inputs.a_float_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3")) attribute = test_node.get_attribute("inputs:a_float_3") db_value = database.inputs.a_float_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3_array")) attribute = test_node.get_attribute("inputs:a_float_3_array") db_value = database.inputs.a_float_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4")) attribute = test_node.get_attribute("inputs:a_float_4") db_value = database.inputs.a_float_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4_array")) attribute = test_node.get_attribute("inputs:a_float_4_array") db_value = database.inputs.a_float_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array")) attribute = test_node.get_attribute("inputs:a_float_array") db_value = database.inputs.a_float_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4")) attribute = test_node.get_attribute("inputs:a_frame_4") db_value = database.inputs.a_frame_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4_array")) attribute = test_node.get_attribute("inputs:a_frame_4_array") db_value = database.inputs.a_frame_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half")) attribute = test_node.get_attribute("inputs:a_half") db_value = database.inputs.a_half expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2")) attribute = test_node.get_attribute("inputs:a_half_2") db_value = database.inputs.a_half_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2_array")) attribute = test_node.get_attribute("inputs:a_half_2_array") db_value = database.inputs.a_half_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3")) attribute = test_node.get_attribute("inputs:a_half_3") db_value = database.inputs.a_half_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3_array")) attribute = test_node.get_attribute("inputs:a_half_3_array") db_value = database.inputs.a_half_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4")) attribute = test_node.get_attribute("inputs:a_half_4") db_value = database.inputs.a_half_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4_array")) attribute = test_node.get_attribute("inputs:a_half_4_array") db_value = database.inputs.a_half_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array")) attribute = test_node.get_attribute("inputs:a_half_array") db_value = database.inputs.a_half_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int")) attribute = test_node.get_attribute("inputs:a_int") db_value = database.inputs.a_int expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64")) attribute = test_node.get_attribute("inputs:a_int64") db_value = database.inputs.a_int64 expected_value = 12345 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64_array")) attribute = test_node.get_attribute("inputs:a_int64_array") db_value = database.inputs.a_int64_array expected_value = [12345, 23456] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2")) attribute = test_node.get_attribute("inputs:a_int_2") db_value = database.inputs.a_int_2 expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2_array")) attribute = test_node.get_attribute("inputs:a_int_2_array") db_value = database.inputs.a_int_2_array expected_value = [[1, 2], [3, 4]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3")) attribute = test_node.get_attribute("inputs:a_int_3") db_value = database.inputs.a_int_3 expected_value = [1, 2, 3] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3_array")) attribute = test_node.get_attribute("inputs:a_int_3_array") db_value = database.inputs.a_int_3_array expected_value = [[1, 2, 3], [4, 5, 6]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4")) attribute = test_node.get_attribute("inputs:a_int_4") db_value = database.inputs.a_int_4 expected_value = [1, 2, 3, 4] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4_array")) attribute = test_node.get_attribute("inputs:a_int_4_array") db_value = database.inputs.a_int_4_array expected_value = [[1, 2, 3, 4], [5, 6, 7, 8]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_array")) attribute = test_node.get_attribute("inputs:a_int_array") db_value = database.inputs.a_int_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2")) attribute = test_node.get_attribute("inputs:a_matrixd_2") db_value = database.inputs.a_matrixd_2 expected_value = [[1.0, 2.0], [3.0, 4.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2_array")) attribute = test_node.get_attribute("inputs:a_matrixd_2_array") db_value = database.inputs.a_matrixd_2_array expected_value = [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3")) attribute = test_node.get_attribute("inputs:a_matrixd_3") db_value = database.inputs.a_matrixd_3 expected_value = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3_array")) attribute = test_node.get_attribute("inputs:a_matrixd_3_array") db_value = database.inputs.a_matrixd_3_array expected_value = [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4")) attribute = test_node.get_attribute("inputs:a_matrixd_4") db_value = database.inputs.a_matrixd_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4_array")) attribute = test_node.get_attribute("inputs:a_matrixd_4_array") db_value = database.inputs.a_matrixd_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3")) attribute = test_node.get_attribute("inputs:a_normald_3") db_value = database.inputs.a_normald_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3_array")) attribute = test_node.get_attribute("inputs:a_normald_3_array") db_value = database.inputs.a_normald_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3")) attribute = test_node.get_attribute("inputs:a_normalf_3") db_value = database.inputs.a_normalf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3_array")) attribute = test_node.get_attribute("inputs:a_normalf_3_array") db_value = database.inputs.a_normalf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3")) attribute = test_node.get_attribute("inputs:a_normalh_3") db_value = database.inputs.a_normalh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3_array")) attribute = test_node.get_attribute("inputs:a_normalh_3_array") db_value = database.inputs.a_normalh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId")) attribute = test_node.get_attribute("inputs:a_objectId") db_value = database.inputs.a_objectId expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId_array")) attribute = test_node.get_attribute("inputs:a_objectId_array") db_value = database.inputs.a_objectId_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3")) attribute = test_node.get_attribute("inputs:a_pointd_3") db_value = database.inputs.a_pointd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3_array")) attribute = test_node.get_attribute("inputs:a_pointd_3_array") db_value = database.inputs.a_pointd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3")) attribute = test_node.get_attribute("inputs:a_pointf_3") db_value = database.inputs.a_pointf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3_array")) attribute = test_node.get_attribute("inputs:a_pointf_3_array") db_value = database.inputs.a_pointf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3")) attribute = test_node.get_attribute("inputs:a_pointh_3") db_value = database.inputs.a_pointh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3_array")) attribute = test_node.get_attribute("inputs:a_pointh_3_array") db_value = database.inputs.a_pointh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4")) attribute = test_node.get_attribute("inputs:a_quatd_4") db_value = database.inputs.a_quatd_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4_array")) attribute = test_node.get_attribute("inputs:a_quatd_4_array") db_value = database.inputs.a_quatd_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4")) attribute = test_node.get_attribute("inputs:a_quatf_4") db_value = database.inputs.a_quatf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4_array")) attribute = test_node.get_attribute("inputs:a_quatf_4_array") db_value = database.inputs.a_quatf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4")) attribute = test_node.get_attribute("inputs:a_quath_4") db_value = database.inputs.a_quath_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4_array")) attribute = test_node.get_attribute("inputs:a_quath_4_array") db_value = database.inputs.a_quath_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_string")) attribute = test_node.get_attribute("inputs:a_string") db_value = database.inputs.a_string expected_value = "Rey" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2")) attribute = test_node.get_attribute("inputs:a_texcoordd_2") db_value = database.inputs.a_texcoordd_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_2_array") db_value = database.inputs.a_texcoordd_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3")) attribute = test_node.get_attribute("inputs:a_texcoordd_3") db_value = database.inputs.a_texcoordd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_3_array") db_value = database.inputs.a_texcoordd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2")) attribute = test_node.get_attribute("inputs:a_texcoordf_2") db_value = database.inputs.a_texcoordf_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_2_array") db_value = database.inputs.a_texcoordf_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3")) attribute = test_node.get_attribute("inputs:a_texcoordf_3") db_value = database.inputs.a_texcoordf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_3_array") db_value = database.inputs.a_texcoordf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2")) attribute = test_node.get_attribute("inputs:a_texcoordh_2") db_value = database.inputs.a_texcoordh_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_2_array") db_value = database.inputs.a_texcoordh_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3")) attribute = test_node.get_attribute("inputs:a_texcoordh_3") db_value = database.inputs.a_texcoordh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_3_array") db_value = database.inputs.a_texcoordh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode")) attribute = test_node.get_attribute("inputs:a_timecode") db_value = database.inputs.a_timecode expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array")) attribute = test_node.get_attribute("inputs:a_timecode_array") db_value = database.inputs.a_timecode_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token")) attribute = test_node.get_attribute("inputs:a_token") db_value = database.inputs.a_token expected_value = "Sith" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token_array")) attribute = test_node.get_attribute("inputs:a_token_array") db_value = database.inputs.a_token_array expected_value = ['Kylo', 'Ren'] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar")) attribute = test_node.get_attribute("inputs:a_uchar") db_value = database.inputs.a_uchar expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar_array")) attribute = test_node.get_attribute("inputs:a_uchar_array") db_value = database.inputs.a_uchar_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint")) attribute = test_node.get_attribute("inputs:a_uint") db_value = database.inputs.a_uint expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64")) attribute = test_node.get_attribute("inputs:a_uint64") db_value = database.inputs.a_uint64 expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64_array")) attribute = test_node.get_attribute("inputs:a_uint64_array") db_value = database.inputs.a_uint64_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint_array")) attribute = test_node.get_attribute("inputs:a_uint_array") db_value = database.inputs.a_uint_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3")) attribute = test_node.get_attribute("inputs:a_vectord_3") db_value = database.inputs.a_vectord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3_array")) attribute = test_node.get_attribute("inputs:a_vectord_3_array") db_value = database.inputs.a_vectord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3")) attribute = test_node.get_attribute("inputs:a_vectorf_3") db_value = database.inputs.a_vectorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3_array")) attribute = test_node.get_attribute("inputs:a_vectorf_3_array") db_value = database.inputs.a_vectorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3")) attribute = test_node.get_attribute("inputs:a_vectorh_3") db_value = database.inputs.a_vectorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3_array")) attribute = test_node.get_attribute("inputs:a_vectorh_3_array") db_value = database.inputs.a_vectorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:doNotCompute")) attribute = test_node.get_attribute("inputs:doNotCompute") db_value = database.inputs.doNotCompute expected_value = True ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:a_bool")) attribute = test_node.get_attribute("outputs:a_bool") db_value = database.outputs.a_bool self.assertTrue(test_node.get_attribute_exists("outputs:a_bool_array")) attribute = test_node.get_attribute("outputs:a_bool_array") db_value = database.outputs.a_bool_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3")) attribute = test_node.get_attribute("outputs:a_colord_3") db_value = database.outputs.a_colord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3_array")) attribute = test_node.get_attribute("outputs:a_colord_3_array") db_value = database.outputs.a_colord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4")) attribute = test_node.get_attribute("outputs:a_colord_4") db_value = database.outputs.a_colord_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4_array")) attribute = test_node.get_attribute("outputs:a_colord_4_array") db_value = database.outputs.a_colord_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3")) attribute = test_node.get_attribute("outputs:a_colorf_3") db_value = database.outputs.a_colorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3_array")) attribute = test_node.get_attribute("outputs:a_colorf_3_array") db_value = database.outputs.a_colorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4")) attribute = test_node.get_attribute("outputs:a_colorf_4") db_value = database.outputs.a_colorf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4_array")) attribute = test_node.get_attribute("outputs:a_colorf_4_array") db_value = database.outputs.a_colorf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3")) attribute = test_node.get_attribute("outputs:a_colorh_3") db_value = database.outputs.a_colorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3_array")) attribute = test_node.get_attribute("outputs:a_colorh_3_array") db_value = database.outputs.a_colorh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4")) attribute = test_node.get_attribute("outputs:a_colorh_4") db_value = database.outputs.a_colorh_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4_array")) attribute = test_node.get_attribute("outputs:a_colorh_4_array") db_value = database.outputs.a_colorh_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double")) attribute = test_node.get_attribute("outputs:a_double") db_value = database.outputs.a_double self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2")) attribute = test_node.get_attribute("outputs:a_double_2") db_value = database.outputs.a_double_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2_array")) attribute = test_node.get_attribute("outputs:a_double_2_array") db_value = database.outputs.a_double_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3")) attribute = test_node.get_attribute("outputs:a_double_3") db_value = database.outputs.a_double_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3_array")) attribute = test_node.get_attribute("outputs:a_double_3_array") db_value = database.outputs.a_double_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4")) attribute = test_node.get_attribute("outputs:a_double_4") db_value = database.outputs.a_double_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4_array")) attribute = test_node.get_attribute("outputs:a_double_4_array") db_value = database.outputs.a_double_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array")) attribute = test_node.get_attribute("outputs:a_double_array") db_value = database.outputs.a_double_array self.assertTrue(test_node.get_attribute_exists("outputs:a_execution")) attribute = test_node.get_attribute("outputs:a_execution") db_value = database.outputs.a_execution self.assertTrue(test_node.get_attribute_exists("outputs:a_float")) attribute = test_node.get_attribute("outputs:a_float") db_value = database.outputs.a_float self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2")) attribute = test_node.get_attribute("outputs:a_float_2") db_value = database.outputs.a_float_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2_array")) attribute = test_node.get_attribute("outputs:a_float_2_array") db_value = database.outputs.a_float_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3")) attribute = test_node.get_attribute("outputs:a_float_3") db_value = database.outputs.a_float_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3_array")) attribute = test_node.get_attribute("outputs:a_float_3_array") db_value = database.outputs.a_float_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4")) attribute = test_node.get_attribute("outputs:a_float_4") db_value = database.outputs.a_float_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4_array")) attribute = test_node.get_attribute("outputs:a_float_4_array") db_value = database.outputs.a_float_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array")) attribute = test_node.get_attribute("outputs:a_float_array") db_value = database.outputs.a_float_array self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4")) attribute = test_node.get_attribute("outputs:a_frame_4") db_value = database.outputs.a_frame_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4_array")) attribute = test_node.get_attribute("outputs:a_frame_4_array") db_value = database.outputs.a_frame_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half")) attribute = test_node.get_attribute("outputs:a_half") db_value = database.outputs.a_half self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2")) attribute = test_node.get_attribute("outputs:a_half_2") db_value = database.outputs.a_half_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2_array")) attribute = test_node.get_attribute("outputs:a_half_2_array") db_value = database.outputs.a_half_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3")) attribute = test_node.get_attribute("outputs:a_half_3") db_value = database.outputs.a_half_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3_array")) attribute = test_node.get_attribute("outputs:a_half_3_array") db_value = database.outputs.a_half_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4")) attribute = test_node.get_attribute("outputs:a_half_4") db_value = database.outputs.a_half_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4_array")) attribute = test_node.get_attribute("outputs:a_half_4_array") db_value = database.outputs.a_half_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array")) attribute = test_node.get_attribute("outputs:a_half_array") db_value = database.outputs.a_half_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int")) attribute = test_node.get_attribute("outputs:a_int") db_value = database.outputs.a_int self.assertTrue(test_node.get_attribute_exists("outputs:a_int64")) attribute = test_node.get_attribute("outputs:a_int64") db_value = database.outputs.a_int64 self.assertTrue(test_node.get_attribute_exists("outputs:a_int64_array")) attribute = test_node.get_attribute("outputs:a_int64_array") db_value = database.outputs.a_int64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2")) attribute = test_node.get_attribute("outputs:a_int_2") db_value = database.outputs.a_int_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2_array")) attribute = test_node.get_attribute("outputs:a_int_2_array") db_value = database.outputs.a_int_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3")) attribute = test_node.get_attribute("outputs:a_int_3") db_value = database.outputs.a_int_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3_array")) attribute = test_node.get_attribute("outputs:a_int_3_array") db_value = database.outputs.a_int_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4")) attribute = test_node.get_attribute("outputs:a_int_4") db_value = database.outputs.a_int_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4_array")) attribute = test_node.get_attribute("outputs:a_int_4_array") db_value = database.outputs.a_int_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_array")) attribute = test_node.get_attribute("outputs:a_int_array") db_value = database.outputs.a_int_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2")) attribute = test_node.get_attribute("outputs:a_matrixd_2") db_value = database.outputs.a_matrixd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2_array")) attribute = test_node.get_attribute("outputs:a_matrixd_2_array") db_value = database.outputs.a_matrixd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3")) attribute = test_node.get_attribute("outputs:a_matrixd_3") db_value = database.outputs.a_matrixd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3_array")) attribute = test_node.get_attribute("outputs:a_matrixd_3_array") db_value = database.outputs.a_matrixd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4")) attribute = test_node.get_attribute("outputs:a_matrixd_4") db_value = database.outputs.a_matrixd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4_array")) attribute = test_node.get_attribute("outputs:a_matrixd_4_array") db_value = database.outputs.a_matrixd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3")) attribute = test_node.get_attribute("outputs:a_normald_3") db_value = database.outputs.a_normald_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3_array")) attribute = test_node.get_attribute("outputs:a_normald_3_array") db_value = database.outputs.a_normald_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3")) attribute = test_node.get_attribute("outputs:a_normalf_3") db_value = database.outputs.a_normalf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3_array")) attribute = test_node.get_attribute("outputs:a_normalf_3_array") db_value = database.outputs.a_normalf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3")) attribute = test_node.get_attribute("outputs:a_normalh_3") db_value = database.outputs.a_normalh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3_array")) attribute = test_node.get_attribute("outputs:a_normalh_3_array") db_value = database.outputs.a_normalh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId")) attribute = test_node.get_attribute("outputs:a_objectId") db_value = database.outputs.a_objectId self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId_array")) attribute = test_node.get_attribute("outputs:a_objectId_array") db_value = database.outputs.a_objectId_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3")) attribute = test_node.get_attribute("outputs:a_pointd_3") db_value = database.outputs.a_pointd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3_array")) attribute = test_node.get_attribute("outputs:a_pointd_3_array") db_value = database.outputs.a_pointd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3")) attribute = test_node.get_attribute("outputs:a_pointf_3") db_value = database.outputs.a_pointf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3_array")) attribute = test_node.get_attribute("outputs:a_pointf_3_array") db_value = database.outputs.a_pointf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3")) attribute = test_node.get_attribute("outputs:a_pointh_3") db_value = database.outputs.a_pointh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3_array")) attribute = test_node.get_attribute("outputs:a_pointh_3_array") db_value = database.outputs.a_pointh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4")) attribute = test_node.get_attribute("outputs:a_quatd_4") db_value = database.outputs.a_quatd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4_array")) attribute = test_node.get_attribute("outputs:a_quatd_4_array") db_value = database.outputs.a_quatd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4")) attribute = test_node.get_attribute("outputs:a_quatf_4") db_value = database.outputs.a_quatf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4_array")) attribute = test_node.get_attribute("outputs:a_quatf_4_array") db_value = database.outputs.a_quatf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4")) attribute = test_node.get_attribute("outputs:a_quath_4") db_value = database.outputs.a_quath_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4_array")) attribute = test_node.get_attribute("outputs:a_quath_4_array") db_value = database.outputs.a_quath_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_string")) attribute = test_node.get_attribute("outputs:a_string") db_value = database.outputs.a_string self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2")) attribute = test_node.get_attribute("outputs:a_texcoordd_2") db_value = database.outputs.a_texcoordd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_2_array") db_value = database.outputs.a_texcoordd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3")) attribute = test_node.get_attribute("outputs:a_texcoordd_3") db_value = database.outputs.a_texcoordd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_3_array") db_value = database.outputs.a_texcoordd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2")) attribute = test_node.get_attribute("outputs:a_texcoordf_2") db_value = database.outputs.a_texcoordf_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_2_array") db_value = database.outputs.a_texcoordf_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3")) attribute = test_node.get_attribute("outputs:a_texcoordf_3") db_value = database.outputs.a_texcoordf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_3_array") db_value = database.outputs.a_texcoordf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2")) attribute = test_node.get_attribute("outputs:a_texcoordh_2") db_value = database.outputs.a_texcoordh_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_2_array") db_value = database.outputs.a_texcoordh_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3")) attribute = test_node.get_attribute("outputs:a_texcoordh_3") db_value = database.outputs.a_texcoordh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_3_array") db_value = database.outputs.a_texcoordh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode")) attribute = test_node.get_attribute("outputs:a_timecode") db_value = database.outputs.a_timecode self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array")) attribute = test_node.get_attribute("outputs:a_timecode_array") db_value = database.outputs.a_timecode_array self.assertTrue(test_node.get_attribute_exists("outputs:a_token")) attribute = test_node.get_attribute("outputs:a_token") db_value = database.outputs.a_token self.assertTrue(test_node.get_attribute_exists("outputs:a_token_array")) attribute = test_node.get_attribute("outputs:a_token_array") db_value = database.outputs.a_token_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar")) attribute = test_node.get_attribute("outputs:a_uchar") db_value = database.outputs.a_uchar self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar_array")) attribute = test_node.get_attribute("outputs:a_uchar_array") db_value = database.outputs.a_uchar_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint")) attribute = test_node.get_attribute("outputs:a_uint") db_value = database.outputs.a_uint self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64")) attribute = test_node.get_attribute("outputs:a_uint64") db_value = database.outputs.a_uint64 self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64_array")) attribute = test_node.get_attribute("outputs:a_uint64_array") db_value = database.outputs.a_uint64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint_array")) attribute = test_node.get_attribute("outputs:a_uint_array") db_value = database.outputs.a_uint_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3")) attribute = test_node.get_attribute("outputs:a_vectord_3") db_value = database.outputs.a_vectord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3_array")) attribute = test_node.get_attribute("outputs:a_vectord_3_array") db_value = database.outputs.a_vectord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3")) attribute = test_node.get_attribute("outputs:a_vectorf_3") db_value = database.outputs.a_vectorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3_array")) attribute = test_node.get_attribute("outputs:a_vectorf_3_array") db_value = database.outputs.a_vectorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3")) attribute = test_node.get_attribute("outputs:a_vectorh_3") db_value = database.outputs.a_vectorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3_array")) attribute = test_node.get_attribute("outputs:a_vectorh_3_array") db_value = database.outputs.a_vectorh_3_array
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleChildConsumerPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundleChildConsumerPyDatabase import OgnBundleChildConsumerPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleChildConsumerPy", "omni.graph.test.BundleChildConsumerPy") }) database = OgnBundleChildConsumerPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:bundle")) attribute = test_node.get_attribute("inputs:bundle") db_value = database.inputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs:numChildren")) attribute = test_node.get_attribute("outputs:numChildren") db_value = database.outputs.numChildren self.assertTrue(test_node.get_attribute_exists("outputs:numSurfaces")) attribute = test_node.get_attribute("outputs:numSurfaces") db_value = database.outputs.numSurfaces
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleConsumer.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundleConsumerDatabase import OgnBundleConsumerDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleConsumer", "omni.graph.test.BundleConsumer") }) database = OgnBundleConsumerDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:bundle")) attribute = test_node.get_attribute("inputs:bundle") db_value = database.inputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs_bundle")) attribute = test_node.get_attribute("outputs_bundle") db_value = database.outputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs:hasOutputBundleChanged")) attribute = test_node.get_attribute("outputs:hasOutputBundleChanged") db_value = database.outputs.hasOutputBundleChanged
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundlePropertiesPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundlePropertiesPyDatabase import OgnBundlePropertiesPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundlePropertiesPy", "omni.graph.test.BundlePropertiesPy") }) database = OgnBundlePropertiesPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("outputs:valid")) attribute = test_node.get_attribute("outputs:valid") db_value = database.outputs.valid
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestCppKeywords.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'outputs': [ ['outputs:verify', True, False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestCppKeywords", "omni.graph.test.TestCppKeywords", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestCppKeywords User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestCppKeywords","omni.graph.test.TestCppKeywords", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestCppKeywords User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnTestCppKeywordsDatabase import OgnTestCppKeywordsDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestCppKeywords", "omni.graph.test.TestCppKeywords") }) database = OgnTestCppKeywordsDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:atomic_cancel")) attribute = test_node.get_attribute("inputs:atomic_cancel") db_value = database.inputs.atomic_cancel expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:atomic_commit")) attribute = test_node.get_attribute("inputs:atomic_commit") db_value = database.inputs.atomic_commit expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:atomic_noexcept")) attribute = test_node.get_attribute("inputs:atomic_noexcept") db_value = database.inputs.atomic_noexcept expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:consteval")) attribute = test_node.get_attribute("inputs:consteval") db_value = database.inputs.consteval expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:constinit")) attribute = test_node.get_attribute("inputs:constinit") db_value = database.inputs.constinit expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:reflexpr")) attribute = test_node.get_attribute("inputs:reflexpr") db_value = database.inputs.reflexpr expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:requires")) attribute = test_node.get_attribute("inputs:requires") db_value = database.inputs.requires expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:verify")) attribute = test_node.get_attribute("outputs:verify") db_value = database.outputs.verify
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnComposeDouble3C.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:x', 1.0, False], ['inputs:y', 2.0, False], ['inputs:z', 3.0, False], ], 'outputs': [ ['outputs:double3', [1.0, 2.0, 3.0], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_ComposeDouble3C", "omni.graph.test.ComposeDouble3C", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.ComposeDouble3C User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_ComposeDouble3C","omni.graph.test.ComposeDouble3C", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.ComposeDouble3C User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_ComposeDouble3C", "omni.graph.test.ComposeDouble3C", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.ComposeDouble3C User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnComposeDouble3CDatabase import OgnComposeDouble3CDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_ComposeDouble3C", "omni.graph.test.ComposeDouble3C") }) database = OgnComposeDouble3CDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:x")) attribute = test_node.get_attribute("inputs:x") db_value = database.inputs.x expected_value = 0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:y")) attribute = test_node.get_attribute("inputs:y") db_value = database.inputs.y expected_value = 0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:z")) attribute = test_node.get_attribute("inputs:z") db_value = database.inputs.z expected_value = 0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:double3")) attribute = test_node.get_attribute("outputs:double3") db_value = database.outputs.double3
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnExecInputEnabledTest.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnExecInputEnabledTestDatabase import OgnExecInputEnabledTestDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_ExecInputEnabledTest", "omni.graph.test.ExecInputEnabledTest") }) database = OgnExecInputEnabledTestDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:execInA")) attribute = test_node.get_attribute("inputs:execInA") db_value = database.inputs.execInA self.assertTrue(test_node.get_attribute_exists("inputs:execInB")) attribute = test_node.get_attribute("inputs:execInB") db_value = database.inputs.execInB self.assertTrue(test_node.get_attribute_exists("outputs:execOutA")) attribute = test_node.get_attribute("outputs:execOutA") db_value = database.outputs.execOutA self.assertTrue(test_node.get_attribute_exists("outputs:execOutB")) attribute = test_node.get_attribute("outputs:execOutB") db_value = database.outputs.execOutB
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnSubtractDoubleC.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:a', 2.0, False], ['inputs:b', 3.0, False], ], 'outputs': [ ['outputs:out', -1.0, False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_SubtractDoubleC", "omni.graph.test.SubtractDoubleC", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.SubtractDoubleC User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_SubtractDoubleC","omni.graph.test.SubtractDoubleC", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.SubtractDoubleC User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_SubtractDoubleC", "omni.graph.test.SubtractDoubleC", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.SubtractDoubleC User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnSubtractDoubleCDatabase import OgnSubtractDoubleCDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_SubtractDoubleC", "omni.graph.test.SubtractDoubleC") }) database = OgnSubtractDoubleCDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a")) attribute = test_node.get_attribute("inputs:a") db_value = database.inputs.a expected_value = 0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:b")) attribute = test_node.get_attribute("inputs:b") db_value = database.inputs.b expected_value = 0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:out")) attribute = test_node.get_attribute("outputs:out") db_value = database.outputs.out
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnComputeErrorPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:dummyIn', 3, False], ], 'outputs': [ ['outputs:dummyOut', 3, False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_ComputeErrorPy", "omni.graph.test.ComputeErrorPy", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.ComputeErrorPy User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_ComputeErrorPy","omni.graph.test.ComputeErrorPy", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.ComputeErrorPy User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnComputeErrorPyDatabase import OgnComputeErrorPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_ComputeErrorPy", "omni.graph.test.ComputeErrorPy") }) database = OgnComputeErrorPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:deprecatedInInit")) attribute = test_node.get_attribute("inputs:deprecatedInInit") db_value = database.inputs.deprecatedInInit expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:deprecatedInOgn")) attribute = test_node.get_attribute("inputs:deprecatedInOgn") db_value = database.inputs.deprecatedInOgn expected_value = 0.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:dummyIn")) attribute = test_node.get_attribute("inputs:dummyIn") db_value = database.inputs.dummyIn expected_value = 0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:failCompute")) attribute = test_node.get_attribute("inputs:failCompute") db_value = database.inputs.failCompute expected_value = False ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:message")) attribute = test_node.get_attribute("inputs:message") db_value = database.inputs.message expected_value = "" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:severity")) attribute = test_node.get_attribute("inputs:severity") db_value = database.inputs.severity expected_value = "none" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:dummyOut")) attribute = test_node.get_attribute("outputs:dummyOut") db_value = database.outputs.dummyOut
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/__init__.py
"""====== GENERATED BY omni.graph.tools - DO NOT EDIT ======""" import omni.graph.tools._internal as ogi ogi.import_tests_in_directory(__file__, __name__)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestAllDataTypes.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:doNotCompute', True, False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, False], False], ['outputs:a_colord_3', [1.5, 2.5, 3.5], False], ['outputs:a_colord_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorh_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colord_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorh_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_double', 1.5, False], ['outputs:a_double_2', [1.5, 2.5], False], ['outputs:a_double_3', [1.5, 2.5, 3.5], False], ['outputs:a_double_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_double_array', [1.5, 2.5], False], ['outputs:a_double_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_double_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_double_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_execution', 2, False], ['outputs:a_float', 1.5, False], ['outputs:a_float_2', [1.5, 2.5], False], ['outputs:a_float_3', [1.5, 2.5, 3.5], False], ['outputs:a_float_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_float_array', [1.5, 2.5], False], ['outputs:a_float_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_float_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_float_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_frame_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_frame_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_half', 1.5, False], ['outputs:a_half_2', [1.5, 2.5], False], ['outputs:a_half_3', [1.5, 2.5, 3.5], False], ['outputs:a_half_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_half_array', [1.5, 2.5], False], ['outputs:a_half_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_half_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_half_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_matrixd_3', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], False], ['outputs:a_matrixd_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_matrixd_2_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_matrixd_3_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5]], False], ['outputs:a_matrixd_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_normald_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalf_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalh_3', [1.5, 2.5, 3.5], False], ['outputs:a_normald_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_objectId', 2, False], ['outputs:a_objectId_array', [2, 3], False], ['outputs:a_path', "/Output", False], ['outputs:a_pointd_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointf_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointh_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_quatd_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quath_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatd_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quatf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quath_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_string', "Emperor\n\"Half\" Snoke", False], ['outputs:a_texcoordd_2', [1.5, 2.5], False], ['outputs:a_texcoordd_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordf_2', [1.5, 2.5], False], ['outputs:a_texcoordf_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordh_2', [1.5, 2.5], False], ['outputs:a_texcoordh_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordd_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordf_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordh_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_timecode', 2.5, False], ['outputs:a_timecode_array', [2.5, 3.5], False], ['outputs:a_token', "Jedi\nMaster", False], ['outputs:a_token_array', ["Luke\n\"Whiner\"", "Skywalker"], False], ['outputs:a_uchar', 2, False], ['outputs:a_uchar_array', [2, 3], False], ['outputs:a_uint', 2, False], ['outputs:a_uint_array', [2, 3], False], ['outputs:a_uint64', 2, False], ['outputs:a_uint64_array', [2, 3], False], ['outputs:a_vectord_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ], 'state_get': [ ['state:a_bool', True, False], ['state:a_bool_array', [True, False], False], ['state:a_colord_3', [1.5, 2.5, 3.5], False], ['state:a_colord_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_colorf_3', [1.5, 2.5, 3.5], False], ['state:a_colorf_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_colorh_3', [1.5, 2.5, 3.5], False], ['state:a_colorh_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_colord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_colord_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_colorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_colorf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_colorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_colorh_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_double', 1.5, False], ['state:a_double_2', [1.5, 2.5], False], ['state:a_double_3', [1.5, 2.5, 3.5], False], ['state:a_double_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_double_array', [1.5, 2.5], False], ['state:a_double_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_double_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_double_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_execution', 2, False], ['state:a_float', 1.5, False], ['state:a_float_2', [1.5, 2.5], False], ['state:a_float_3', [1.5, 2.5, 3.5], False], ['state:a_float_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_float_array', [1.5, 2.5], False], ['state:a_float_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_float_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_float_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_frame_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['state:a_frame_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['state:a_half', 1.5, False], ['state:a_half_2', [1.5, 2.5], False], ['state:a_half_3', [1.5, 2.5, 3.5], False], ['state:a_half_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_half_array', [1.5, 2.5], False], ['state:a_half_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_half_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_half_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_int', 1, False], ['state:a_int_2', [1, 2], False], ['state:a_int_3', [1, 2, 3], False], ['state:a_int_4', [1, 2, 3, 4], False], ['state:a_int_array', [1, 2], False], ['state:a_int_2_array', [[1, 2], [3, 4]], False], ['state:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['state:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['state:a_int64', 12345, False], ['state:a_int64_array', [12345, 23456], False], ['state:a_matrixd_2', [1.5, 2.5, 3.5, 4.5], False], ['state:a_matrixd_3', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], False], ['state:a_matrixd_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['state:a_matrixd_2_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_matrixd_3_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5]], False], ['state:a_matrixd_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['state:a_normald_3', [1.5, 2.5, 3.5], False], ['state:a_normalf_3', [1.5, 2.5, 3.5], False], ['state:a_normalh_3', [1.5, 2.5, 3.5], False], ['state:a_normald_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_normalf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_normalh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_objectId', 2, False], ['state:a_objectId_array', [2, 3], False], ['state:a_path', "/State", False], ['state:a_pointd_3', [1.5, 2.5, 3.5], False], ['state:a_pointf_3', [1.5, 2.5, 3.5], False], ['state:a_pointh_3', [1.5, 2.5, 3.5], False], ['state:a_pointd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_pointf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_pointh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_quatd_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_quatf_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_quath_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_quatd_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_quatf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_quath_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_string', "Emperor\n\"Half\" Snoke", False], ['state:a_stringEmpty', "", False], ['state:a_texcoordd_2', [1.5, 2.5], False], ['state:a_texcoordd_3', [1.5, 2.5, 3.5], False], ['state:a_texcoordf_2', [1.5, 2.5], False], ['state:a_texcoordf_3', [1.5, 2.5, 3.5], False], ['state:a_texcoordh_2', [1.5, 2.5], False], ['state:a_texcoordh_3', [1.5, 2.5, 3.5], False], ['state:a_texcoordd_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_texcoordd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_texcoordf_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_texcoordf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_texcoordh_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_texcoordh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_timecode', 2.5, False], ['state:a_timecode_array', [2.5, 3.5], False], ['state:a_token', "Jedi\nMaster", False], ['state:a_token_array', ["Luke\n\"Whiner\"", "Skywalker"], False], ['state:a_uchar', 2, False], ['state:a_uchar_array', [2, 3], False], ['state:a_uint', 2, False], ['state:a_uint_array', [2, 3], False], ['state:a_uint64', 2, False], ['state:a_uint64_array', [2, 3], False], ['state:a_vectord_3', [1.5, 2.5, 3.5], False], ['state:a_vectorf_3', [1.5, 2.5, 3.5], False], ['state:a_vectorh_3', [1.5, 2.5, 3.5], False], ['state:a_vectord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_vectorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_vectorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ], 'outputs': [ ['outputs:a_bool', False, False], ['outputs:a_bool_array', [False, True], False], ['outputs:a_colord_3', [1.0, 2.0, 3.0], False], ['outputs:a_colord_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorh_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colord_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorh_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_double', 1.0, False], ['outputs:a_double_2', [1.0, 2.0], False], ['outputs:a_double_3', [1.0, 2.0, 3.0], False], ['outputs:a_double_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_double_array', [1.0, 2.0], False], ['outputs:a_double_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_double_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_double_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_execution', 1, False], ['outputs:a_float', 1.0, False], ['outputs:a_float_2', [1.0, 2.0], False], ['outputs:a_float_3', [1.0, 2.0, 3.0], False], ['outputs:a_float_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_float_array', [1.0, 2.0], False], ['outputs:a_float_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_float_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_float_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_frame_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_frame_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_half', 1.0, False], ['outputs:a_half_2', [1.0, 2.0], False], ['outputs:a_half_3', [1.0, 2.0, 3.0], False], ['outputs:a_half_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_half_array', [1.0, 2.0], False], ['outputs:a_half_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_half_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_half_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_matrixd_3', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], False], ['outputs:a_matrixd_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_matrixd_2_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_matrixd_3_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0]], False], ['outputs:a_matrixd_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_normald_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalf_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalh_3', [1.0, 2.0, 3.0], False], ['outputs:a_normald_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_objectId', 1, False], ['outputs:a_objectId_array', [1, 2], False], ['outputs:a_path', "/Input", False], ['outputs:a_pointd_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointf_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointh_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_quatd_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quath_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatd_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quatf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quath_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_string', "Rey\n\"Palpatine\" Skywalker", False], ['outputs:a_texcoordd_2', [1.0, 2.0], False], ['outputs:a_texcoordd_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordf_2', [1.0, 2.0], False], ['outputs:a_texcoordf_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordh_2', [1.0, 2.0], False], ['outputs:a_texcoordh_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordd_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordf_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordh_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_timecode', 1.0, False], ['outputs:a_timecode_array', [1.0, 2.0], False], ['outputs:a_token', "Sith\nLord", False], ['outputs:a_token_array', ["Kylo\n\"The Putz\"", "Ren"], False], ['outputs:a_uchar', 1, False], ['outputs:a_uchar_array', [1, 2], False], ['outputs:a_uint', 1, False], ['outputs:a_uint_array', [1, 2], False], ['outputs:a_uint64', 1, False], ['outputs:a_uint64_array', [1, 2], False], ['outputs:a_vectord_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ], 'state_get': [ ['state:a_bool_array', [False, True], False], ['state:a_colord_3', [1.0, 2.0, 3.0], False], ['state:a_colord_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_colorf_3', [1.0, 2.0, 3.0], False], ['state:a_colorf_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_colorh_3', [1.0, 2.0, 3.0], False], ['state:a_colorh_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_colord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_colord_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_colorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_colorf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_colorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_colorh_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_double', 1.0, False], ['state:a_double_2', [1.0, 2.0], False], ['state:a_double_3', [1.0, 2.0, 3.0], False], ['state:a_double_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_double_array', [1.0, 2.0], False], ['state:a_double_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_double_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_double_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_execution', 1, False], ['state:a_float', 1.0, False], ['state:a_float_2', [1.0, 2.0], False], ['state:a_float_3', [1.0, 2.0, 3.0], False], ['state:a_float_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_float_array', [1.0, 2.0], False], ['state:a_float_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_float_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_float_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_frame_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['state:a_frame_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['state:a_half', 1.0, False], ['state:a_half_2', [1.0, 2.0], False], ['state:a_half_3', [1.0, 2.0, 3.0], False], ['state:a_half_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_half_array', [1.0, 2.0], False], ['state:a_half_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_half_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_half_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_int', 1, False], ['state:a_int_2', [1, 2], False], ['state:a_int_3', [1, 2, 3], False], ['state:a_int_4', [1, 2, 3, 4], False], ['state:a_int_array', [1, 2], False], ['state:a_int_2_array', [[1, 2], [3, 4]], False], ['state:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['state:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['state:a_int64', 12345, False], ['state:a_int64_array', [12345, 23456], False], ['state:a_matrixd_2', [1.0, 2.0, 3.0, 4.0], False], ['state:a_matrixd_3', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], False], ['state:a_matrixd_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['state:a_matrixd_2_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_matrixd_3_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0]], False], ['state:a_matrixd_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['state:a_normald_3', [1.0, 2.0, 3.0], False], ['state:a_normalf_3', [1.0, 2.0, 3.0], False], ['state:a_normalh_3', [1.0, 2.0, 3.0], False], ['state:a_normald_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_normalf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_normalh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_objectId', 1, False], ['state:a_objectId_array', [1, 2], False], ['state:a_path', "/Input", False], ['state:a_pointd_3', [1.0, 2.0, 3.0], False], ['state:a_pointf_3', [1.0, 2.0, 3.0], False], ['state:a_pointh_3', [1.0, 2.0, 3.0], False], ['state:a_pointd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_pointf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_pointh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_quatd_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_quatf_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_quath_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_quatd_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_quatf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_quath_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_string', "Rey\n\"Palpatine\" Skywalker", False], ['state:a_stringEmpty', "Rey\n\"Palpatine\" Skywalker", False], ['state:a_texcoordd_2', [1.0, 2.0], False], ['state:a_texcoordd_3', [1.0, 2.0, 3.0], False], ['state:a_texcoordf_2', [1.0, 2.0], False], ['state:a_texcoordf_3', [1.0, 2.0, 3.0], False], ['state:a_texcoordh_2', [1.0, 2.0], False], ['state:a_texcoordh_3', [1.0, 2.0, 3.0], False], ['state:a_texcoordd_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_texcoordd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_texcoordf_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_texcoordf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_texcoordh_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_texcoordh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_timecode', 1.0, False], ['state:a_timecode_array', [1.0, 2.0], False], ['state:a_token', "Sith\nLord", False], ['state:a_token_array', ["Kylo\n\"The Putz\"", "Ren"], False], ['state:a_uchar', 1, False], ['state:a_uchar_array', [1, 2], False], ['state:a_uint', 1, False], ['state:a_uint_array', [1, 2], False], ['state:a_uint64', 1, False], ['state:a_uint64_array', [1, 2], False], ['state:a_vectord_3', [1.0, 2.0, 3.0], False], ['state:a_vectorf_3', [1.0, 2.0, 3.0], False], ['state:a_vectorh_3', [1.0, 2.0, 3.0], False], ['state:a_vectord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_vectorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_vectorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ['inputs:a_bool', True, False], ['inputs:a_bool_array', [True, True], False], ['inputs:a_colord_3', [1.25, 2.25, 3.25], False], ['inputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_double', 1.25, False], ['inputs:a_double_2', [1.25, 2.25], False], ['inputs:a_double_3', [1.25, 2.25, 3.25], False], ['inputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_double_array', [1.25, 2.25], False], ['inputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_execution', 3, False], ['inputs:a_float', 1.25, False], ['inputs:a_float_2', [1.25, 2.25], False], ['inputs:a_float_3', [1.25, 2.25, 3.25], False], ['inputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_float_array', [1.25, 2.25], False], ['inputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['inputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_half', 1.25, False], ['inputs:a_half_2', [1.25, 2.25], False], ['inputs:a_half_3', [1.25, 2.25, 3.25], False], ['inputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_half_array', [1.25, 2.25], False], ['inputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_int', 11, False], ['inputs:a_int_2', [11, 12], False], ['inputs:a_int_3', [11, 12, 13], False], ['inputs:a_int_4', [11, 12, 13, 14], False], ['inputs:a_int_array', [11, 12], False], ['inputs:a_int_2_array', [[11, 12], [13, 14]], False], ['inputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['inputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['inputs:a_int64', 34567, False], ['inputs:a_int64_array', [45678, 56789], False], ['inputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['inputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['inputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['inputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_normald_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['inputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_objectId', 3, False], ['inputs:a_objectId_array', [3, 4], False], ['inputs:a_path', "/Test", False], ['inputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_string', "Palpatine\n\"TubeMan\" Lives", False], ['inputs:a_texcoordd_2', [1.25, 2.25], False], ['inputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordf_2', [1.25, 2.25], False], ['inputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordh_2', [1.25, 2.25], False], ['inputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_timecode', 1.25, False], ['inputs:a_timecode_array', [1.25, 2.25], False], ['inputs:a_token', "Rebel\nScum", False], ['inputs:a_token_array', ["Han\n\"Indiana\"", "Solo"], False], ['inputs:a_uchar', 3, False], ['inputs:a_uchar_array', [3, 4], False], ['inputs:a_uint', 3, False], ['inputs:a_uint_array', [3, 4], False], ['inputs:a_uint64', 3, False], ['inputs:a_uint64_array', [3, 4], False], ['inputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, True], False], ['outputs:a_colord_3', [1.25, 2.25, 3.25], False], ['outputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_double', 1.25, False], ['outputs:a_double_2', [1.25, 2.25], False], ['outputs:a_double_3', [1.25, 2.25, 3.25], False], ['outputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_double_array', [1.25, 2.25], False], ['outputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_execution', 3, False], ['outputs:a_float', 1.25, False], ['outputs:a_float_2', [1.25, 2.25], False], ['outputs:a_float_3', [1.25, 2.25, 3.25], False], ['outputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_float_array', [1.25, 2.25], False], ['outputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['outputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_half', 1.25, False], ['outputs:a_half_2', [1.25, 2.25], False], ['outputs:a_half_3', [1.25, 2.25, 3.25], False], ['outputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_half_array', [1.25, 2.25], False], ['outputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_int', 11, False], ['outputs:a_int_2', [11, 12], False], ['outputs:a_int_3', [11, 12, 13], False], ['outputs:a_int_4', [11, 12, 13, 14], False], ['outputs:a_int_array', [11, 12], False], ['outputs:a_int_2_array', [[11, 12], [13, 14]], False], ['outputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['outputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['outputs:a_int64', 34567, False], ['outputs:a_int64_array', [45678, 56789], False], ['outputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['outputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['outputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['outputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_normald_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['outputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_objectId', 3, False], ['outputs:a_objectId_array', [3, 4], False], ['outputs:a_path', "/Test", False], ['outputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_string', "Palpatine\n\"TubeMan\" Lives", False], ['outputs:a_texcoordd_2', [1.25, 2.25], False], ['outputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordf_2', [1.25, 2.25], False], ['outputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordh_2', [1.25, 2.25], False], ['outputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_timecode', 1.25, False], ['outputs:a_timecode_array', [1.25, 2.25], False], ['outputs:a_token', "Rebel\nScum", False], ['outputs:a_token_array', ["Han\n\"Indiana\"", "Solo"], False], ['outputs:a_uchar', 3, False], ['outputs:a_uchar_array', [3, 4], False], ['outputs:a_uint', 3, False], ['outputs:a_uint_array', [3, 4], False], ['outputs:a_uint64', 3, False], ['outputs:a_uint64_array', [3, 4], False], ['outputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypes", "omni.graph.test.TestAllDataTypes", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypes User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypes","omni.graph.test.TestAllDataTypes", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypes User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnTestAllDataTypesDatabase import OgnTestAllDataTypesDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestAllDataTypes", "omni.graph.test.TestAllDataTypes") }) database = OgnTestAllDataTypesDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a_bool")) attribute = test_node.get_attribute("inputs:a_bool") db_value = database.inputs.a_bool expected_value = False ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_bool_array")) attribute = test_node.get_attribute("inputs:a_bool_array") db_value = database.inputs.a_bool_array expected_value = [False, True] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3")) attribute = test_node.get_attribute("inputs:a_colord_3") db_value = database.inputs.a_colord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3_array")) attribute = test_node.get_attribute("inputs:a_colord_3_array") db_value = database.inputs.a_colord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4")) attribute = test_node.get_attribute("inputs:a_colord_4") db_value = database.inputs.a_colord_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4_array")) attribute = test_node.get_attribute("inputs:a_colord_4_array") db_value = database.inputs.a_colord_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3")) attribute = test_node.get_attribute("inputs:a_colorf_3") db_value = database.inputs.a_colorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3_array")) attribute = test_node.get_attribute("inputs:a_colorf_3_array") db_value = database.inputs.a_colorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4")) attribute = test_node.get_attribute("inputs:a_colorf_4") db_value = database.inputs.a_colorf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4_array")) attribute = test_node.get_attribute("inputs:a_colorf_4_array") db_value = database.inputs.a_colorf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3")) attribute = test_node.get_attribute("inputs:a_colorh_3") db_value = database.inputs.a_colorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3_array")) attribute = test_node.get_attribute("inputs:a_colorh_3_array") db_value = database.inputs.a_colorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4")) attribute = test_node.get_attribute("inputs:a_colorh_4") db_value = database.inputs.a_colorh_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4_array")) attribute = test_node.get_attribute("inputs:a_colorh_4_array") db_value = database.inputs.a_colorh_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double")) attribute = test_node.get_attribute("inputs:a_double") db_value = database.inputs.a_double expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2")) attribute = test_node.get_attribute("inputs:a_double_2") db_value = database.inputs.a_double_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2_array")) attribute = test_node.get_attribute("inputs:a_double_2_array") db_value = database.inputs.a_double_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3")) attribute = test_node.get_attribute("inputs:a_double_3") db_value = database.inputs.a_double_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3_array")) attribute = test_node.get_attribute("inputs:a_double_3_array") db_value = database.inputs.a_double_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4")) attribute = test_node.get_attribute("inputs:a_double_4") db_value = database.inputs.a_double_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4_array")) attribute = test_node.get_attribute("inputs:a_double_4_array") db_value = database.inputs.a_double_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array")) attribute = test_node.get_attribute("inputs:a_double_array") db_value = database.inputs.a_double_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_execution")) attribute = test_node.get_attribute("inputs:a_execution") db_value = database.inputs.a_execution expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float")) attribute = test_node.get_attribute("inputs:a_float") db_value = database.inputs.a_float expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2")) attribute = test_node.get_attribute("inputs:a_float_2") db_value = database.inputs.a_float_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2_array")) attribute = test_node.get_attribute("inputs:a_float_2_array") db_value = database.inputs.a_float_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3")) attribute = test_node.get_attribute("inputs:a_float_3") db_value = database.inputs.a_float_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3_array")) attribute = test_node.get_attribute("inputs:a_float_3_array") db_value = database.inputs.a_float_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4")) attribute = test_node.get_attribute("inputs:a_float_4") db_value = database.inputs.a_float_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4_array")) attribute = test_node.get_attribute("inputs:a_float_4_array") db_value = database.inputs.a_float_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array")) attribute = test_node.get_attribute("inputs:a_float_array") db_value = database.inputs.a_float_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4")) attribute = test_node.get_attribute("inputs:a_frame_4") db_value = database.inputs.a_frame_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4_array")) attribute = test_node.get_attribute("inputs:a_frame_4_array") db_value = database.inputs.a_frame_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half")) attribute = test_node.get_attribute("inputs:a_half") db_value = database.inputs.a_half expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2")) attribute = test_node.get_attribute("inputs:a_half_2") db_value = database.inputs.a_half_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2_array")) attribute = test_node.get_attribute("inputs:a_half_2_array") db_value = database.inputs.a_half_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3")) attribute = test_node.get_attribute("inputs:a_half_3") db_value = database.inputs.a_half_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3_array")) attribute = test_node.get_attribute("inputs:a_half_3_array") db_value = database.inputs.a_half_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4")) attribute = test_node.get_attribute("inputs:a_half_4") db_value = database.inputs.a_half_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4_array")) attribute = test_node.get_attribute("inputs:a_half_4_array") db_value = database.inputs.a_half_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array")) attribute = test_node.get_attribute("inputs:a_half_array") db_value = database.inputs.a_half_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int")) attribute = test_node.get_attribute("inputs:a_int") db_value = database.inputs.a_int expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64")) attribute = test_node.get_attribute("inputs:a_int64") db_value = database.inputs.a_int64 expected_value = 12345 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64_array")) attribute = test_node.get_attribute("inputs:a_int64_array") db_value = database.inputs.a_int64_array expected_value = [12345, 23456] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2")) attribute = test_node.get_attribute("inputs:a_int_2") db_value = database.inputs.a_int_2 expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2_array")) attribute = test_node.get_attribute("inputs:a_int_2_array") db_value = database.inputs.a_int_2_array expected_value = [[1, 2], [3, 4]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3")) attribute = test_node.get_attribute("inputs:a_int_3") db_value = database.inputs.a_int_3 expected_value = [1, 2, 3] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3_array")) attribute = test_node.get_attribute("inputs:a_int_3_array") db_value = database.inputs.a_int_3_array expected_value = [[1, 2, 3], [4, 5, 6]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4")) attribute = test_node.get_attribute("inputs:a_int_4") db_value = database.inputs.a_int_4 expected_value = [1, 2, 3, 4] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4_array")) attribute = test_node.get_attribute("inputs:a_int_4_array") db_value = database.inputs.a_int_4_array expected_value = [[1, 2, 3, 4], [5, 6, 7, 8]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_array")) attribute = test_node.get_attribute("inputs:a_int_array") db_value = database.inputs.a_int_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2")) attribute = test_node.get_attribute("inputs:a_matrixd_2") db_value = database.inputs.a_matrixd_2 expected_value = [[1.0, 2.0], [3.0, 4.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2_array")) attribute = test_node.get_attribute("inputs:a_matrixd_2_array") db_value = database.inputs.a_matrixd_2_array expected_value = [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3")) attribute = test_node.get_attribute("inputs:a_matrixd_3") db_value = database.inputs.a_matrixd_3 expected_value = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3_array")) attribute = test_node.get_attribute("inputs:a_matrixd_3_array") db_value = database.inputs.a_matrixd_3_array expected_value = [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4")) attribute = test_node.get_attribute("inputs:a_matrixd_4") db_value = database.inputs.a_matrixd_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4_array")) attribute = test_node.get_attribute("inputs:a_matrixd_4_array") db_value = database.inputs.a_matrixd_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3")) attribute = test_node.get_attribute("inputs:a_normald_3") db_value = database.inputs.a_normald_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3_array")) attribute = test_node.get_attribute("inputs:a_normald_3_array") db_value = database.inputs.a_normald_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3")) attribute = test_node.get_attribute("inputs:a_normalf_3") db_value = database.inputs.a_normalf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3_array")) attribute = test_node.get_attribute("inputs:a_normalf_3_array") db_value = database.inputs.a_normalf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3")) attribute = test_node.get_attribute("inputs:a_normalh_3") db_value = database.inputs.a_normalh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3_array")) attribute = test_node.get_attribute("inputs:a_normalh_3_array") db_value = database.inputs.a_normalh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId")) attribute = test_node.get_attribute("inputs:a_objectId") db_value = database.inputs.a_objectId expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId_array")) attribute = test_node.get_attribute("inputs:a_objectId_array") db_value = database.inputs.a_objectId_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_path")) attribute = test_node.get_attribute("inputs:a_path") db_value = database.inputs.a_path expected_value = "/Input" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3")) attribute = test_node.get_attribute("inputs:a_pointd_3") db_value = database.inputs.a_pointd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3_array")) attribute = test_node.get_attribute("inputs:a_pointd_3_array") db_value = database.inputs.a_pointd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3")) attribute = test_node.get_attribute("inputs:a_pointf_3") db_value = database.inputs.a_pointf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3_array")) attribute = test_node.get_attribute("inputs:a_pointf_3_array") db_value = database.inputs.a_pointf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3")) attribute = test_node.get_attribute("inputs:a_pointh_3") db_value = database.inputs.a_pointh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3_array")) attribute = test_node.get_attribute("inputs:a_pointh_3_array") db_value = database.inputs.a_pointh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4")) attribute = test_node.get_attribute("inputs:a_quatd_4") db_value = database.inputs.a_quatd_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4_array")) attribute = test_node.get_attribute("inputs:a_quatd_4_array") db_value = database.inputs.a_quatd_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4")) attribute = test_node.get_attribute("inputs:a_quatf_4") db_value = database.inputs.a_quatf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4_array")) attribute = test_node.get_attribute("inputs:a_quatf_4_array") db_value = database.inputs.a_quatf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4")) attribute = test_node.get_attribute("inputs:a_quath_4") db_value = database.inputs.a_quath_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4_array")) attribute = test_node.get_attribute("inputs:a_quath_4_array") db_value = database.inputs.a_quath_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_string")) attribute = test_node.get_attribute("inputs:a_string") db_value = database.inputs.a_string expected_value = "Rey\n\"Palpatine\" Skywalker" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_target")) attribute = test_node.get_attribute("inputs:a_target") db_value = database.inputs.a_target self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2")) attribute = test_node.get_attribute("inputs:a_texcoordd_2") db_value = database.inputs.a_texcoordd_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_2_array") db_value = database.inputs.a_texcoordd_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3")) attribute = test_node.get_attribute("inputs:a_texcoordd_3") db_value = database.inputs.a_texcoordd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_3_array") db_value = database.inputs.a_texcoordd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2")) attribute = test_node.get_attribute("inputs:a_texcoordf_2") db_value = database.inputs.a_texcoordf_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_2_array") db_value = database.inputs.a_texcoordf_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3")) attribute = test_node.get_attribute("inputs:a_texcoordf_3") db_value = database.inputs.a_texcoordf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_3_array") db_value = database.inputs.a_texcoordf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2")) attribute = test_node.get_attribute("inputs:a_texcoordh_2") db_value = database.inputs.a_texcoordh_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_2_array") db_value = database.inputs.a_texcoordh_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3")) attribute = test_node.get_attribute("inputs:a_texcoordh_3") db_value = database.inputs.a_texcoordh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_3_array") db_value = database.inputs.a_texcoordh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode")) attribute = test_node.get_attribute("inputs:a_timecode") db_value = database.inputs.a_timecode expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array")) attribute = test_node.get_attribute("inputs:a_timecode_array") db_value = database.inputs.a_timecode_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token")) attribute = test_node.get_attribute("inputs:a_token") db_value = database.inputs.a_token expected_value = "Sith\nLord" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token_array")) attribute = test_node.get_attribute("inputs:a_token_array") db_value = database.inputs.a_token_array expected_value = ['Kylo\n"The Putz"', 'Ren'] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar")) attribute = test_node.get_attribute("inputs:a_uchar") db_value = database.inputs.a_uchar expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar_array")) attribute = test_node.get_attribute("inputs:a_uchar_array") db_value = database.inputs.a_uchar_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint")) attribute = test_node.get_attribute("inputs:a_uint") db_value = database.inputs.a_uint expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64")) attribute = test_node.get_attribute("inputs:a_uint64") db_value = database.inputs.a_uint64 expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64_array")) attribute = test_node.get_attribute("inputs:a_uint64_array") db_value = database.inputs.a_uint64_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint_array")) attribute = test_node.get_attribute("inputs:a_uint_array") db_value = database.inputs.a_uint_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3")) attribute = test_node.get_attribute("inputs:a_vectord_3") db_value = database.inputs.a_vectord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3_array")) attribute = test_node.get_attribute("inputs:a_vectord_3_array") db_value = database.inputs.a_vectord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3")) attribute = test_node.get_attribute("inputs:a_vectorf_3") db_value = database.inputs.a_vectorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3_array")) attribute = test_node.get_attribute("inputs:a_vectorf_3_array") db_value = database.inputs.a_vectorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3")) attribute = test_node.get_attribute("inputs:a_vectorh_3") db_value = database.inputs.a_vectorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3_array")) attribute = test_node.get_attribute("inputs:a_vectorh_3_array") db_value = database.inputs.a_vectorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:doNotCompute")) attribute = test_node.get_attribute("inputs:doNotCompute") db_value = database.inputs.doNotCompute expected_value = True ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:a_bool")) attribute = test_node.get_attribute("outputs:a_bool") db_value = database.outputs.a_bool self.assertTrue(test_node.get_attribute_exists("outputs:a_bool_array")) attribute = test_node.get_attribute("outputs:a_bool_array") db_value = database.outputs.a_bool_array self.assertTrue(test_node.get_attribute_exists("outputs_a_bundle")) attribute = test_node.get_attribute("outputs_a_bundle") db_value = database.outputs.a_bundle self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3")) attribute = test_node.get_attribute("outputs:a_colord_3") db_value = database.outputs.a_colord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3_array")) attribute = test_node.get_attribute("outputs:a_colord_3_array") db_value = database.outputs.a_colord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4")) attribute = test_node.get_attribute("outputs:a_colord_4") db_value = database.outputs.a_colord_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4_array")) attribute = test_node.get_attribute("outputs:a_colord_4_array") db_value = database.outputs.a_colord_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3")) attribute = test_node.get_attribute("outputs:a_colorf_3") db_value = database.outputs.a_colorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3_array")) attribute = test_node.get_attribute("outputs:a_colorf_3_array") db_value = database.outputs.a_colorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4")) attribute = test_node.get_attribute("outputs:a_colorf_4") db_value = database.outputs.a_colorf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4_array")) attribute = test_node.get_attribute("outputs:a_colorf_4_array") db_value = database.outputs.a_colorf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3")) attribute = test_node.get_attribute("outputs:a_colorh_3") db_value = database.outputs.a_colorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3_array")) attribute = test_node.get_attribute("outputs:a_colorh_3_array") db_value = database.outputs.a_colorh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4")) attribute = test_node.get_attribute("outputs:a_colorh_4") db_value = database.outputs.a_colorh_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4_array")) attribute = test_node.get_attribute("outputs:a_colorh_4_array") db_value = database.outputs.a_colorh_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double")) attribute = test_node.get_attribute("outputs:a_double") db_value = database.outputs.a_double self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2")) attribute = test_node.get_attribute("outputs:a_double_2") db_value = database.outputs.a_double_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2_array")) attribute = test_node.get_attribute("outputs:a_double_2_array") db_value = database.outputs.a_double_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3")) attribute = test_node.get_attribute("outputs:a_double_3") db_value = database.outputs.a_double_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3_array")) attribute = test_node.get_attribute("outputs:a_double_3_array") db_value = database.outputs.a_double_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4")) attribute = test_node.get_attribute("outputs:a_double_4") db_value = database.outputs.a_double_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4_array")) attribute = test_node.get_attribute("outputs:a_double_4_array") db_value = database.outputs.a_double_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array")) attribute = test_node.get_attribute("outputs:a_double_array") db_value = database.outputs.a_double_array self.assertTrue(test_node.get_attribute_exists("outputs:a_execution")) attribute = test_node.get_attribute("outputs:a_execution") db_value = database.outputs.a_execution self.assertTrue(test_node.get_attribute_exists("outputs:a_float")) attribute = test_node.get_attribute("outputs:a_float") db_value = database.outputs.a_float self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2")) attribute = test_node.get_attribute("outputs:a_float_2") db_value = database.outputs.a_float_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2_array")) attribute = test_node.get_attribute("outputs:a_float_2_array") db_value = database.outputs.a_float_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3")) attribute = test_node.get_attribute("outputs:a_float_3") db_value = database.outputs.a_float_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3_array")) attribute = test_node.get_attribute("outputs:a_float_3_array") db_value = database.outputs.a_float_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4")) attribute = test_node.get_attribute("outputs:a_float_4") db_value = database.outputs.a_float_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4_array")) attribute = test_node.get_attribute("outputs:a_float_4_array") db_value = database.outputs.a_float_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array")) attribute = test_node.get_attribute("outputs:a_float_array") db_value = database.outputs.a_float_array self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4")) attribute = test_node.get_attribute("outputs:a_frame_4") db_value = database.outputs.a_frame_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4_array")) attribute = test_node.get_attribute("outputs:a_frame_4_array") db_value = database.outputs.a_frame_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half")) attribute = test_node.get_attribute("outputs:a_half") db_value = database.outputs.a_half self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2")) attribute = test_node.get_attribute("outputs:a_half_2") db_value = database.outputs.a_half_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2_array")) attribute = test_node.get_attribute("outputs:a_half_2_array") db_value = database.outputs.a_half_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3")) attribute = test_node.get_attribute("outputs:a_half_3") db_value = database.outputs.a_half_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3_array")) attribute = test_node.get_attribute("outputs:a_half_3_array") db_value = database.outputs.a_half_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4")) attribute = test_node.get_attribute("outputs:a_half_4") db_value = database.outputs.a_half_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4_array")) attribute = test_node.get_attribute("outputs:a_half_4_array") db_value = database.outputs.a_half_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array")) attribute = test_node.get_attribute("outputs:a_half_array") db_value = database.outputs.a_half_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int")) attribute = test_node.get_attribute("outputs:a_int") db_value = database.outputs.a_int self.assertTrue(test_node.get_attribute_exists("outputs:a_int64")) attribute = test_node.get_attribute("outputs:a_int64") db_value = database.outputs.a_int64 self.assertTrue(test_node.get_attribute_exists("outputs:a_int64_array")) attribute = test_node.get_attribute("outputs:a_int64_array") db_value = database.outputs.a_int64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2")) attribute = test_node.get_attribute("outputs:a_int_2") db_value = database.outputs.a_int_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2_array")) attribute = test_node.get_attribute("outputs:a_int_2_array") db_value = database.outputs.a_int_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3")) attribute = test_node.get_attribute("outputs:a_int_3") db_value = database.outputs.a_int_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3_array")) attribute = test_node.get_attribute("outputs:a_int_3_array") db_value = database.outputs.a_int_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4")) attribute = test_node.get_attribute("outputs:a_int_4") db_value = database.outputs.a_int_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4_array")) attribute = test_node.get_attribute("outputs:a_int_4_array") db_value = database.outputs.a_int_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_array")) attribute = test_node.get_attribute("outputs:a_int_array") db_value = database.outputs.a_int_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2")) attribute = test_node.get_attribute("outputs:a_matrixd_2") db_value = database.outputs.a_matrixd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2_array")) attribute = test_node.get_attribute("outputs:a_matrixd_2_array") db_value = database.outputs.a_matrixd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3")) attribute = test_node.get_attribute("outputs:a_matrixd_3") db_value = database.outputs.a_matrixd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3_array")) attribute = test_node.get_attribute("outputs:a_matrixd_3_array") db_value = database.outputs.a_matrixd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4")) attribute = test_node.get_attribute("outputs:a_matrixd_4") db_value = database.outputs.a_matrixd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4_array")) attribute = test_node.get_attribute("outputs:a_matrixd_4_array") db_value = database.outputs.a_matrixd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3")) attribute = test_node.get_attribute("outputs:a_normald_3") db_value = database.outputs.a_normald_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3_array")) attribute = test_node.get_attribute("outputs:a_normald_3_array") db_value = database.outputs.a_normald_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3")) attribute = test_node.get_attribute("outputs:a_normalf_3") db_value = database.outputs.a_normalf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3_array")) attribute = test_node.get_attribute("outputs:a_normalf_3_array") db_value = database.outputs.a_normalf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3")) attribute = test_node.get_attribute("outputs:a_normalh_3") db_value = database.outputs.a_normalh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3_array")) attribute = test_node.get_attribute("outputs:a_normalh_3_array") db_value = database.outputs.a_normalh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId")) attribute = test_node.get_attribute("outputs:a_objectId") db_value = database.outputs.a_objectId self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId_array")) attribute = test_node.get_attribute("outputs:a_objectId_array") db_value = database.outputs.a_objectId_array self.assertTrue(test_node.get_attribute_exists("outputs:a_path")) attribute = test_node.get_attribute("outputs:a_path") db_value = database.outputs.a_path self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3")) attribute = test_node.get_attribute("outputs:a_pointd_3") db_value = database.outputs.a_pointd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3_array")) attribute = test_node.get_attribute("outputs:a_pointd_3_array") db_value = database.outputs.a_pointd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3")) attribute = test_node.get_attribute("outputs:a_pointf_3") db_value = database.outputs.a_pointf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3_array")) attribute = test_node.get_attribute("outputs:a_pointf_3_array") db_value = database.outputs.a_pointf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3")) attribute = test_node.get_attribute("outputs:a_pointh_3") db_value = database.outputs.a_pointh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3_array")) attribute = test_node.get_attribute("outputs:a_pointh_3_array") db_value = database.outputs.a_pointh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4")) attribute = test_node.get_attribute("outputs:a_quatd_4") db_value = database.outputs.a_quatd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4_array")) attribute = test_node.get_attribute("outputs:a_quatd_4_array") db_value = database.outputs.a_quatd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4")) attribute = test_node.get_attribute("outputs:a_quatf_4") db_value = database.outputs.a_quatf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4_array")) attribute = test_node.get_attribute("outputs:a_quatf_4_array") db_value = database.outputs.a_quatf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4")) attribute = test_node.get_attribute("outputs:a_quath_4") db_value = database.outputs.a_quath_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4_array")) attribute = test_node.get_attribute("outputs:a_quath_4_array") db_value = database.outputs.a_quath_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_string")) attribute = test_node.get_attribute("outputs:a_string") db_value = database.outputs.a_string self.assertTrue(test_node.get_attribute_exists("outputs:a_target")) attribute = test_node.get_attribute("outputs:a_target") db_value = database.outputs.a_target self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2")) attribute = test_node.get_attribute("outputs:a_texcoordd_2") db_value = database.outputs.a_texcoordd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_2_array") db_value = database.outputs.a_texcoordd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3")) attribute = test_node.get_attribute("outputs:a_texcoordd_3") db_value = database.outputs.a_texcoordd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_3_array") db_value = database.outputs.a_texcoordd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2")) attribute = test_node.get_attribute("outputs:a_texcoordf_2") db_value = database.outputs.a_texcoordf_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_2_array") db_value = database.outputs.a_texcoordf_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3")) attribute = test_node.get_attribute("outputs:a_texcoordf_3") db_value = database.outputs.a_texcoordf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_3_array") db_value = database.outputs.a_texcoordf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2")) attribute = test_node.get_attribute("outputs:a_texcoordh_2") db_value = database.outputs.a_texcoordh_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_2_array") db_value = database.outputs.a_texcoordh_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3")) attribute = test_node.get_attribute("outputs:a_texcoordh_3") db_value = database.outputs.a_texcoordh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_3_array") db_value = database.outputs.a_texcoordh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode")) attribute = test_node.get_attribute("outputs:a_timecode") db_value = database.outputs.a_timecode self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array")) attribute = test_node.get_attribute("outputs:a_timecode_array") db_value = database.outputs.a_timecode_array self.assertTrue(test_node.get_attribute_exists("outputs:a_token")) attribute = test_node.get_attribute("outputs:a_token") db_value = database.outputs.a_token self.assertTrue(test_node.get_attribute_exists("outputs:a_token_array")) attribute = test_node.get_attribute("outputs:a_token_array") db_value = database.outputs.a_token_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar")) attribute = test_node.get_attribute("outputs:a_uchar") db_value = database.outputs.a_uchar self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar_array")) attribute = test_node.get_attribute("outputs:a_uchar_array") db_value = database.outputs.a_uchar_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint")) attribute = test_node.get_attribute("outputs:a_uint") db_value = database.outputs.a_uint self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64")) attribute = test_node.get_attribute("outputs:a_uint64") db_value = database.outputs.a_uint64 self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64_array")) attribute = test_node.get_attribute("outputs:a_uint64_array") db_value = database.outputs.a_uint64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint_array")) attribute = test_node.get_attribute("outputs:a_uint_array") db_value = database.outputs.a_uint_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3")) attribute = test_node.get_attribute("outputs:a_vectord_3") db_value = database.outputs.a_vectord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3_array")) attribute = test_node.get_attribute("outputs:a_vectord_3_array") db_value = database.outputs.a_vectord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3")) attribute = test_node.get_attribute("outputs:a_vectorf_3") db_value = database.outputs.a_vectorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3_array")) attribute = test_node.get_attribute("outputs:a_vectorf_3_array") db_value = database.outputs.a_vectorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3")) attribute = test_node.get_attribute("outputs:a_vectorh_3") db_value = database.outputs.a_vectorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3_array")) attribute = test_node.get_attribute("outputs:a_vectorh_3_array") db_value = database.outputs.a_vectorh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_bool")) attribute = test_node.get_attribute("state:a_bool") db_value = database.state.a_bool self.assertTrue(test_node.get_attribute_exists("state:a_bool_array")) attribute = test_node.get_attribute("state:a_bool_array") db_value = database.state.a_bool_array self.assertTrue(test_node.get_attribute_exists("state_a_bundle")) attribute = test_node.get_attribute("state_a_bundle") db_value = database.state.a_bundle self.assertTrue(test_node.get_attribute_exists("state:a_colord_3")) attribute = test_node.get_attribute("state:a_colord_3") db_value = database.state.a_colord_3 self.assertTrue(test_node.get_attribute_exists("state:a_colord_3_array")) attribute = test_node.get_attribute("state:a_colord_3_array") db_value = database.state.a_colord_3_array self.assertTrue(test_node.get_attribute_exists("state:a_colord_4")) attribute = test_node.get_attribute("state:a_colord_4") db_value = database.state.a_colord_4 self.assertTrue(test_node.get_attribute_exists("state:a_colord_4_array")) attribute = test_node.get_attribute("state:a_colord_4_array") db_value = database.state.a_colord_4_array self.assertTrue(test_node.get_attribute_exists("state:a_colorf_3")) attribute = test_node.get_attribute("state:a_colorf_3") db_value = database.state.a_colorf_3 self.assertTrue(test_node.get_attribute_exists("state:a_colorf_3_array")) attribute = test_node.get_attribute("state:a_colorf_3_array") db_value = database.state.a_colorf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_colorf_4")) attribute = test_node.get_attribute("state:a_colorf_4") db_value = database.state.a_colorf_4 self.assertTrue(test_node.get_attribute_exists("state:a_colorf_4_array")) attribute = test_node.get_attribute("state:a_colorf_4_array") db_value = database.state.a_colorf_4_array self.assertTrue(test_node.get_attribute_exists("state:a_colorh_3")) attribute = test_node.get_attribute("state:a_colorh_3") db_value = database.state.a_colorh_3 self.assertTrue(test_node.get_attribute_exists("state:a_colorh_3_array")) attribute = test_node.get_attribute("state:a_colorh_3_array") db_value = database.state.a_colorh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_colorh_4")) attribute = test_node.get_attribute("state:a_colorh_4") db_value = database.state.a_colorh_4 self.assertTrue(test_node.get_attribute_exists("state:a_colorh_4_array")) attribute = test_node.get_attribute("state:a_colorh_4_array") db_value = database.state.a_colorh_4_array self.assertTrue(test_node.get_attribute_exists("state:a_double")) attribute = test_node.get_attribute("state:a_double") db_value = database.state.a_double self.assertTrue(test_node.get_attribute_exists("state:a_double_2")) attribute = test_node.get_attribute("state:a_double_2") db_value = database.state.a_double_2 self.assertTrue(test_node.get_attribute_exists("state:a_double_2_array")) attribute = test_node.get_attribute("state:a_double_2_array") db_value = database.state.a_double_2_array self.assertTrue(test_node.get_attribute_exists("state:a_double_3")) attribute = test_node.get_attribute("state:a_double_3") db_value = database.state.a_double_3 self.assertTrue(test_node.get_attribute_exists("state:a_double_3_array")) attribute = test_node.get_attribute("state:a_double_3_array") db_value = database.state.a_double_3_array self.assertTrue(test_node.get_attribute_exists("state:a_double_4")) attribute = test_node.get_attribute("state:a_double_4") db_value = database.state.a_double_4 self.assertTrue(test_node.get_attribute_exists("state:a_double_4_array")) attribute = test_node.get_attribute("state:a_double_4_array") db_value = database.state.a_double_4_array self.assertTrue(test_node.get_attribute_exists("state:a_double_array")) attribute = test_node.get_attribute("state:a_double_array") db_value = database.state.a_double_array self.assertTrue(test_node.get_attribute_exists("state:a_execution")) attribute = test_node.get_attribute("state:a_execution") db_value = database.state.a_execution self.assertTrue(test_node.get_attribute_exists("state:a_firstEvaluation")) attribute = test_node.get_attribute("state:a_firstEvaluation") db_value = database.state.a_firstEvaluation self.assertTrue(test_node.get_attribute_exists("state:a_float")) attribute = test_node.get_attribute("state:a_float") db_value = database.state.a_float self.assertTrue(test_node.get_attribute_exists("state:a_float_2")) attribute = test_node.get_attribute("state:a_float_2") db_value = database.state.a_float_2 self.assertTrue(test_node.get_attribute_exists("state:a_float_2_array")) attribute = test_node.get_attribute("state:a_float_2_array") db_value = database.state.a_float_2_array self.assertTrue(test_node.get_attribute_exists("state:a_float_3")) attribute = test_node.get_attribute("state:a_float_3") db_value = database.state.a_float_3 self.assertTrue(test_node.get_attribute_exists("state:a_float_3_array")) attribute = test_node.get_attribute("state:a_float_3_array") db_value = database.state.a_float_3_array self.assertTrue(test_node.get_attribute_exists("state:a_float_4")) attribute = test_node.get_attribute("state:a_float_4") db_value = database.state.a_float_4 self.assertTrue(test_node.get_attribute_exists("state:a_float_4_array")) attribute = test_node.get_attribute("state:a_float_4_array") db_value = database.state.a_float_4_array self.assertTrue(test_node.get_attribute_exists("state:a_float_array")) attribute = test_node.get_attribute("state:a_float_array") db_value = database.state.a_float_array self.assertTrue(test_node.get_attribute_exists("state:a_frame_4")) attribute = test_node.get_attribute("state:a_frame_4") db_value = database.state.a_frame_4 self.assertTrue(test_node.get_attribute_exists("state:a_frame_4_array")) attribute = test_node.get_attribute("state:a_frame_4_array") db_value = database.state.a_frame_4_array self.assertTrue(test_node.get_attribute_exists("state:a_half")) attribute = test_node.get_attribute("state:a_half") db_value = database.state.a_half self.assertTrue(test_node.get_attribute_exists("state:a_half_2")) attribute = test_node.get_attribute("state:a_half_2") db_value = database.state.a_half_2 self.assertTrue(test_node.get_attribute_exists("state:a_half_2_array")) attribute = test_node.get_attribute("state:a_half_2_array") db_value = database.state.a_half_2_array self.assertTrue(test_node.get_attribute_exists("state:a_half_3")) attribute = test_node.get_attribute("state:a_half_3") db_value = database.state.a_half_3 self.assertTrue(test_node.get_attribute_exists("state:a_half_3_array")) attribute = test_node.get_attribute("state:a_half_3_array") db_value = database.state.a_half_3_array self.assertTrue(test_node.get_attribute_exists("state:a_half_4")) attribute = test_node.get_attribute("state:a_half_4") db_value = database.state.a_half_4 self.assertTrue(test_node.get_attribute_exists("state:a_half_4_array")) attribute = test_node.get_attribute("state:a_half_4_array") db_value = database.state.a_half_4_array self.assertTrue(test_node.get_attribute_exists("state:a_half_array")) attribute = test_node.get_attribute("state:a_half_array") db_value = database.state.a_half_array self.assertTrue(test_node.get_attribute_exists("state:a_int")) attribute = test_node.get_attribute("state:a_int") db_value = database.state.a_int self.assertTrue(test_node.get_attribute_exists("state:a_int64")) attribute = test_node.get_attribute("state:a_int64") db_value = database.state.a_int64 self.assertTrue(test_node.get_attribute_exists("state:a_int64_array")) attribute = test_node.get_attribute("state:a_int64_array") db_value = database.state.a_int64_array self.assertTrue(test_node.get_attribute_exists("state:a_int_2")) attribute = test_node.get_attribute("state:a_int_2") db_value = database.state.a_int_2 self.assertTrue(test_node.get_attribute_exists("state:a_int_2_array")) attribute = test_node.get_attribute("state:a_int_2_array") db_value = database.state.a_int_2_array self.assertTrue(test_node.get_attribute_exists("state:a_int_3")) attribute = test_node.get_attribute("state:a_int_3") db_value = database.state.a_int_3 self.assertTrue(test_node.get_attribute_exists("state:a_int_3_array")) attribute = test_node.get_attribute("state:a_int_3_array") db_value = database.state.a_int_3_array self.assertTrue(test_node.get_attribute_exists("state:a_int_4")) attribute = test_node.get_attribute("state:a_int_4") db_value = database.state.a_int_4 self.assertTrue(test_node.get_attribute_exists("state:a_int_4_array")) attribute = test_node.get_attribute("state:a_int_4_array") db_value = database.state.a_int_4_array self.assertTrue(test_node.get_attribute_exists("state:a_int_array")) attribute = test_node.get_attribute("state:a_int_array") db_value = database.state.a_int_array self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_2")) attribute = test_node.get_attribute("state:a_matrixd_2") db_value = database.state.a_matrixd_2 self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_2_array")) attribute = test_node.get_attribute("state:a_matrixd_2_array") db_value = database.state.a_matrixd_2_array self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_3")) attribute = test_node.get_attribute("state:a_matrixd_3") db_value = database.state.a_matrixd_3 self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_3_array")) attribute = test_node.get_attribute("state:a_matrixd_3_array") db_value = database.state.a_matrixd_3_array self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_4")) attribute = test_node.get_attribute("state:a_matrixd_4") db_value = database.state.a_matrixd_4 self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_4_array")) attribute = test_node.get_attribute("state:a_matrixd_4_array") db_value = database.state.a_matrixd_4_array self.assertTrue(test_node.get_attribute_exists("state:a_normald_3")) attribute = test_node.get_attribute("state:a_normald_3") db_value = database.state.a_normald_3 self.assertTrue(test_node.get_attribute_exists("state:a_normald_3_array")) attribute = test_node.get_attribute("state:a_normald_3_array") db_value = database.state.a_normald_3_array self.assertTrue(test_node.get_attribute_exists("state:a_normalf_3")) attribute = test_node.get_attribute("state:a_normalf_3") db_value = database.state.a_normalf_3 self.assertTrue(test_node.get_attribute_exists("state:a_normalf_3_array")) attribute = test_node.get_attribute("state:a_normalf_3_array") db_value = database.state.a_normalf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_normalh_3")) attribute = test_node.get_attribute("state:a_normalh_3") db_value = database.state.a_normalh_3 self.assertTrue(test_node.get_attribute_exists("state:a_normalh_3_array")) attribute = test_node.get_attribute("state:a_normalh_3_array") db_value = database.state.a_normalh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_objectId")) attribute = test_node.get_attribute("state:a_objectId") db_value = database.state.a_objectId self.assertTrue(test_node.get_attribute_exists("state:a_objectId_array")) attribute = test_node.get_attribute("state:a_objectId_array") db_value = database.state.a_objectId_array self.assertTrue(test_node.get_attribute_exists("state:a_path")) attribute = test_node.get_attribute("state:a_path") db_value = database.state.a_path self.assertTrue(test_node.get_attribute_exists("state:a_pointd_3")) attribute = test_node.get_attribute("state:a_pointd_3") db_value = database.state.a_pointd_3 self.assertTrue(test_node.get_attribute_exists("state:a_pointd_3_array")) attribute = test_node.get_attribute("state:a_pointd_3_array") db_value = database.state.a_pointd_3_array self.assertTrue(test_node.get_attribute_exists("state:a_pointf_3")) attribute = test_node.get_attribute("state:a_pointf_3") db_value = database.state.a_pointf_3 self.assertTrue(test_node.get_attribute_exists("state:a_pointf_3_array")) attribute = test_node.get_attribute("state:a_pointf_3_array") db_value = database.state.a_pointf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_pointh_3")) attribute = test_node.get_attribute("state:a_pointh_3") db_value = database.state.a_pointh_3 self.assertTrue(test_node.get_attribute_exists("state:a_pointh_3_array")) attribute = test_node.get_attribute("state:a_pointh_3_array") db_value = database.state.a_pointh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_quatd_4")) attribute = test_node.get_attribute("state:a_quatd_4") db_value = database.state.a_quatd_4 self.assertTrue(test_node.get_attribute_exists("state:a_quatd_4_array")) attribute = test_node.get_attribute("state:a_quatd_4_array") db_value = database.state.a_quatd_4_array self.assertTrue(test_node.get_attribute_exists("state:a_quatf_4")) attribute = test_node.get_attribute("state:a_quatf_4") db_value = database.state.a_quatf_4 self.assertTrue(test_node.get_attribute_exists("state:a_quatf_4_array")) attribute = test_node.get_attribute("state:a_quatf_4_array") db_value = database.state.a_quatf_4_array self.assertTrue(test_node.get_attribute_exists("state:a_quath_4")) attribute = test_node.get_attribute("state:a_quath_4") db_value = database.state.a_quath_4 self.assertTrue(test_node.get_attribute_exists("state:a_quath_4_array")) attribute = test_node.get_attribute("state:a_quath_4_array") db_value = database.state.a_quath_4_array self.assertTrue(test_node.get_attribute_exists("state:a_string")) attribute = test_node.get_attribute("state:a_string") db_value = database.state.a_string self.assertTrue(test_node.get_attribute_exists("state:a_stringEmpty")) attribute = test_node.get_attribute("state:a_stringEmpty") db_value = database.state.a_stringEmpty self.assertTrue(test_node.get_attribute_exists("state:a_target")) attribute = test_node.get_attribute("state:a_target") db_value = database.state.a_target self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_2")) attribute = test_node.get_attribute("state:a_texcoordd_2") db_value = database.state.a_texcoordd_2 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_2_array")) attribute = test_node.get_attribute("state:a_texcoordd_2_array") db_value = database.state.a_texcoordd_2_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_3")) attribute = test_node.get_attribute("state:a_texcoordd_3") db_value = database.state.a_texcoordd_3 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_3_array")) attribute = test_node.get_attribute("state:a_texcoordd_3_array") db_value = database.state.a_texcoordd_3_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_2")) attribute = test_node.get_attribute("state:a_texcoordf_2") db_value = database.state.a_texcoordf_2 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_2_array")) attribute = test_node.get_attribute("state:a_texcoordf_2_array") db_value = database.state.a_texcoordf_2_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_3")) attribute = test_node.get_attribute("state:a_texcoordf_3") db_value = database.state.a_texcoordf_3 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_3_array")) attribute = test_node.get_attribute("state:a_texcoordf_3_array") db_value = database.state.a_texcoordf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_2")) attribute = test_node.get_attribute("state:a_texcoordh_2") db_value = database.state.a_texcoordh_2 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_2_array")) attribute = test_node.get_attribute("state:a_texcoordh_2_array") db_value = database.state.a_texcoordh_2_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_3")) attribute = test_node.get_attribute("state:a_texcoordh_3") db_value = database.state.a_texcoordh_3 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_3_array")) attribute = test_node.get_attribute("state:a_texcoordh_3_array") db_value = database.state.a_texcoordh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_timecode")) attribute = test_node.get_attribute("state:a_timecode") db_value = database.state.a_timecode self.assertTrue(test_node.get_attribute_exists("state:a_timecode_array")) attribute = test_node.get_attribute("state:a_timecode_array") db_value = database.state.a_timecode_array self.assertTrue(test_node.get_attribute_exists("state:a_token")) attribute = test_node.get_attribute("state:a_token") db_value = database.state.a_token self.assertTrue(test_node.get_attribute_exists("state:a_token_array")) attribute = test_node.get_attribute("state:a_token_array") db_value = database.state.a_token_array self.assertTrue(test_node.get_attribute_exists("state:a_uchar")) attribute = test_node.get_attribute("state:a_uchar") db_value = database.state.a_uchar self.assertTrue(test_node.get_attribute_exists("state:a_uchar_array")) attribute = test_node.get_attribute("state:a_uchar_array") db_value = database.state.a_uchar_array self.assertTrue(test_node.get_attribute_exists("state:a_uint")) attribute = test_node.get_attribute("state:a_uint") db_value = database.state.a_uint self.assertTrue(test_node.get_attribute_exists("state:a_uint64")) attribute = test_node.get_attribute("state:a_uint64") db_value = database.state.a_uint64 self.assertTrue(test_node.get_attribute_exists("state:a_uint64_array")) attribute = test_node.get_attribute("state:a_uint64_array") db_value = database.state.a_uint64_array self.assertTrue(test_node.get_attribute_exists("state:a_uint_array")) attribute = test_node.get_attribute("state:a_uint_array") db_value = database.state.a_uint_array self.assertTrue(test_node.get_attribute_exists("state:a_vectord_3")) attribute = test_node.get_attribute("state:a_vectord_3") db_value = database.state.a_vectord_3 self.assertTrue(test_node.get_attribute_exists("state:a_vectord_3_array")) attribute = test_node.get_attribute("state:a_vectord_3_array") db_value = database.state.a_vectord_3_array self.assertTrue(test_node.get_attribute_exists("state:a_vectorf_3")) attribute = test_node.get_attribute("state:a_vectorf_3") db_value = database.state.a_vectorf_3 self.assertTrue(test_node.get_attribute_exists("state:a_vectorf_3_array")) attribute = test_node.get_attribute("state:a_vectorf_3_array") db_value = database.state.a_vectorf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_vectorh_3")) attribute = test_node.get_attribute("state:a_vectorh_3") db_value = database.state.a_vectorh_3 self.assertTrue(test_node.get_attribute_exists("state:a_vectorh_3_array")) attribute = test_node.get_attribute("state:a_vectorh_3_array") db_value = database.state.a_vectorh_3_array
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestAllDataTypesPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:doNotCompute', True, False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, False], False], ['outputs:a_colord_3', [1.5, 2.5, 3.5], False], ['outputs:a_colord_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorh_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colord_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorh_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_double', 1.5, False], ['outputs:a_double_2', [1.5, 2.5], False], ['outputs:a_double_3', [1.5, 2.5, 3.5], False], ['outputs:a_double_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_double_array', [1.5, 2.5], False], ['outputs:a_double_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_double_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_double_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_execution', 2, False], ['outputs:a_float', 1.5, False], ['outputs:a_float_2', [1.5, 2.5], False], ['outputs:a_float_3', [1.5, 2.5, 3.5], False], ['outputs:a_float_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_float_array', [1.5, 2.5], False], ['outputs:a_float_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_float_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_float_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_frame_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_frame_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_half', 1.5, False], ['outputs:a_half_2', [1.5, 2.5], False], ['outputs:a_half_3', [1.5, 2.5, 3.5], False], ['outputs:a_half_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_half_array', [1.5, 2.5], False], ['outputs:a_half_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_half_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_half_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_matrixd_3', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], False], ['outputs:a_matrixd_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_matrixd_2_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_matrixd_3_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5]], False], ['outputs:a_matrixd_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_normald_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalf_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalh_3', [1.5, 2.5, 3.5], False], ['outputs:a_normald_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_objectId', 2, False], ['outputs:a_objectId_array', [2, 3], False], ['outputs:a_path', "/Output", False], ['outputs:a_pointd_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointf_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointh_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_quatd_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quath_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatd_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quatf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quath_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_string', "Snoke", False], ['outputs:a_texcoordd_2', [1.5, 2.5], False], ['outputs:a_texcoordd_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordf_2', [1.5, 2.5], False], ['outputs:a_texcoordf_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordh_2', [1.5, 2.5], False], ['outputs:a_texcoordh_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordd_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordf_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordh_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_timecode', 2.5, False], ['outputs:a_timecode_array', [2.5, 3.5], False], ['outputs:a_token', "Jedi", False], ['outputs:a_token_array', ["Luke", "Skywalker"], False], ['outputs:a_uchar', 2, False], ['outputs:a_uchar_array', [2, 3], False], ['outputs:a_uint', 2, False], ['outputs:a_uint_array', [2, 3], False], ['outputs:a_uint64', 2, False], ['outputs:a_uint64_array', [2, 3], False], ['outputs:a_vectord_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ], 'state_get': [ ['state:a_bool_array', [True, False], False], ['state:a_colord_3', [1.5, 2.5, 3.5], False], ['state:a_colord_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_colorf_3', [1.5, 2.5, 3.5], False], ['state:a_colorf_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_colorh_3', [1.5, 2.5, 3.5], False], ['state:a_colorh_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_colord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_colord_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_colorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_colorf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_colorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_colorh_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_double', 1.5, False], ['state:a_double_2', [1.5, 2.5], False], ['state:a_double_3', [1.5, 2.5, 3.5], False], ['state:a_double_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_double_array', [1.5, 2.5], False], ['state:a_double_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_double_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_double_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_execution', 2, False], ['state:a_float', 1.5, False], ['state:a_float_2', [1.5, 2.5], False], ['state:a_float_3', [1.5, 2.5, 3.5], False], ['state:a_float_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_float_array', [1.5, 2.5], False], ['state:a_float_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_float_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_float_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_frame_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['state:a_frame_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['state:a_half', 1.5, False], ['state:a_half_2', [1.5, 2.5], False], ['state:a_half_3', [1.5, 2.5, 3.5], False], ['state:a_half_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_half_array', [1.5, 2.5], False], ['state:a_half_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_half_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_half_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_int', 1, False], ['state:a_int_2', [1, 2], False], ['state:a_int_3', [1, 2, 3], False], ['state:a_int_4', [1, 2, 3, 4], False], ['state:a_int_array', [1, 2], False], ['state:a_int_2_array', [[1, 2], [3, 4]], False], ['state:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['state:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['state:a_int64', 12345, False], ['state:a_int64_array', [12345, 23456], False], ['state:a_matrixd_2', [1.5, 2.5, 3.5, 4.5], False], ['state:a_matrixd_3', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], False], ['state:a_matrixd_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['state:a_matrixd_2_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_matrixd_3_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5]], False], ['state:a_matrixd_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['state:a_normald_3', [1.5, 2.5, 3.5], False], ['state:a_normalf_3', [1.5, 2.5, 3.5], False], ['state:a_normalh_3', [1.5, 2.5, 3.5], False], ['state:a_normald_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_normalf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_normalh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_objectId', 2, False], ['state:a_objectId_array', [2, 3], False], ['state:a_path', "/State", False], ['state:a_pointd_3', [1.5, 2.5, 3.5], False], ['state:a_pointf_3', [1.5, 2.5, 3.5], False], ['state:a_pointh_3', [1.5, 2.5, 3.5], False], ['state:a_pointd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_pointf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_pointh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_quatd_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_quatf_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_quath_4', [1.5, 2.5, 3.5, 4.5], False], ['state:a_quatd_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_quatf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_quath_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['state:a_string', "Snoke", False], ['state:a_stringEmpty', "", False], ['state:a_texcoordd_2', [1.5, 2.5], False], ['state:a_texcoordd_3', [1.5, 2.5, 3.5], False], ['state:a_texcoordf_2', [1.5, 2.5], False], ['state:a_texcoordf_3', [1.5, 2.5, 3.5], False], ['state:a_texcoordh_2', [1.5, 2.5], False], ['state:a_texcoordh_3', [1.5, 2.5, 3.5], False], ['state:a_texcoordd_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_texcoordd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_texcoordf_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_texcoordf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_texcoordh_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['state:a_texcoordh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_timecode', 2.5, False], ['state:a_timecode_array', [2.5, 3.5], False], ['state:a_token', "Jedi", False], ['state:a_token_array', ["Luke", "Skywalker"], False], ['state:a_uchar', 2, False], ['state:a_uchar_array', [2, 3], False], ['state:a_uint', 2, False], ['state:a_uint_array', [2, 3], False], ['state:a_uint64', 2, False], ['state:a_uint64_array', [2, 3], False], ['state:a_vectord_3', [1.5, 2.5, 3.5], False], ['state:a_vectorf_3', [1.5, 2.5, 3.5], False], ['state:a_vectorh_3', [1.5, 2.5, 3.5], False], ['state:a_vectord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_vectorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['state:a_vectorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ], 'outputs': [ ['outputs:a_bool', False, False], ['outputs:a_bool_array', [False, True], False], ['outputs:a_colord_3', [1.0, 2.0, 3.0], False], ['outputs:a_colord_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorh_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colord_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorh_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_double', 1.0, False], ['outputs:a_double_2', [1.0, 2.0], False], ['outputs:a_double_3', [1.0, 2.0, 3.0], False], ['outputs:a_double_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_double_array', [1.0, 2.0], False], ['outputs:a_double_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_double_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_double_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_execution', 1, False], ['outputs:a_float', 1.0, False], ['outputs:a_float_2', [1.0, 2.0], False], ['outputs:a_float_3', [1.0, 2.0, 3.0], False], ['outputs:a_float_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_float_array', [1.0, 2.0], False], ['outputs:a_float_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_float_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_float_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_frame_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_frame_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_half', 1.0, False], ['outputs:a_half_2', [1.0, 2.0], False], ['outputs:a_half_3', [1.0, 2.0, 3.0], False], ['outputs:a_half_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_half_array', [1.0, 2.0], False], ['outputs:a_half_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_half_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_half_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_matrixd_3', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], False], ['outputs:a_matrixd_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_matrixd_2_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_matrixd_3_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0]], False], ['outputs:a_matrixd_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_normald_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalf_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalh_3', [1.0, 2.0, 3.0], False], ['outputs:a_normald_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_objectId', 1, False], ['outputs:a_objectId_array', [1, 2], False], ['outputs:a_path', "/Input", False], ['outputs:a_pointd_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointf_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointh_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_quatd_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quath_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatd_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quatf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quath_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_string', "Rey", False], ['outputs:a_texcoordd_2', [1.0, 2.0], False], ['outputs:a_texcoordd_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordf_2', [1.0, 2.0], False], ['outputs:a_texcoordf_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordh_2', [1.0, 2.0], False], ['outputs:a_texcoordh_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordd_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordf_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordh_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_timecode', 1.0, False], ['outputs:a_timecode_array', [1.0, 2.0], False], ['outputs:a_token', "Sith", False], ['outputs:a_token_array', ["Kylo", "Ren"], False], ['outputs:a_uchar', 1, False], ['outputs:a_uchar_array', [1, 2], False], ['outputs:a_uint', 1, False], ['outputs:a_uint_array', [1, 2], False], ['outputs:a_uint64', 1, False], ['outputs:a_uint64_array', [1, 2], False], ['outputs:a_vectord_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ], 'state_get': [ ['state:a_bool_array', [False, True], False], ['state:a_colord_3', [1.0, 2.0, 3.0], False], ['state:a_colord_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_colorf_3', [1.0, 2.0, 3.0], False], ['state:a_colorf_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_colorh_3', [1.0, 2.0, 3.0], False], ['state:a_colorh_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_colord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_colord_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_colorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_colorf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_colorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_colorh_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_double', 1.0, False], ['state:a_double_2', [1.0, 2.0], False], ['state:a_double_3', [1.0, 2.0, 3.0], False], ['state:a_double_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_double_array', [1.0, 2.0], False], ['state:a_double_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_double_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_double_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_execution', 1, False], ['state:a_float', 1.0, False], ['state:a_float_2', [1.0, 2.0], False], ['state:a_float_3', [1.0, 2.0, 3.0], False], ['state:a_float_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_float_array', [1.0, 2.0], False], ['state:a_float_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_float_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_float_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_frame_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['state:a_frame_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['state:a_half', 1.0, False], ['state:a_half_2', [1.0, 2.0], False], ['state:a_half_3', [1.0, 2.0, 3.0], False], ['state:a_half_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_half_array', [1.0, 2.0], False], ['state:a_half_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_half_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_half_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_int', 1, False], ['state:a_int_2', [1, 2], False], ['state:a_int_3', [1, 2, 3], False], ['state:a_int_4', [1, 2, 3, 4], False], ['state:a_int_array', [1, 2], False], ['state:a_int_2_array', [[1, 2], [3, 4]], False], ['state:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['state:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['state:a_int64', 12345, False], ['state:a_int64_array', [12345, 23456], False], ['state:a_matrixd_2', [1.0, 2.0, 3.0, 4.0], False], ['state:a_matrixd_3', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], False], ['state:a_matrixd_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['state:a_matrixd_2_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_matrixd_3_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0]], False], ['state:a_matrixd_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['state:a_normald_3', [1.0, 2.0, 3.0], False], ['state:a_normalf_3', [1.0, 2.0, 3.0], False], ['state:a_normalh_3', [1.0, 2.0, 3.0], False], ['state:a_normald_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_normalf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_normalh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_objectId', 1, False], ['state:a_objectId_array', [1, 2], False], ['state:a_path', "/Input", False], ['state:a_pointd_3', [1.0, 2.0, 3.0], False], ['state:a_pointf_3', [1.0, 2.0, 3.0], False], ['state:a_pointh_3', [1.0, 2.0, 3.0], False], ['state:a_pointd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_pointf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_pointh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_quatd_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_quatf_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_quath_4', [1.0, 2.0, 3.0, 4.0], False], ['state:a_quatd_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_quatf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_quath_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['state:a_string', "Rey", False], ['state:a_stringEmpty', "Rey", False], ['state:a_texcoordd_2', [1.0, 2.0], False], ['state:a_texcoordd_3', [1.0, 2.0, 3.0], False], ['state:a_texcoordf_2', [1.0, 2.0], False], ['state:a_texcoordf_3', [1.0, 2.0, 3.0], False], ['state:a_texcoordh_2', [1.0, 2.0], False], ['state:a_texcoordh_3', [1.0, 2.0, 3.0], False], ['state:a_texcoordd_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_texcoordd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_texcoordf_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_texcoordf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_texcoordh_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['state:a_texcoordh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_timecode', 1.0, False], ['state:a_timecode_array', [1.0, 2.0], False], ['state:a_token', "Sith", False], ['state:a_token_array', ["Kylo", "Ren"], False], ['state:a_uchar', 1, False], ['state:a_uchar_array', [1, 2], False], ['state:a_uint', 1, False], ['state:a_uint_array', [1, 2], False], ['state:a_uint64', 1, False], ['state:a_uint64_array', [1, 2], False], ['state:a_vectord_3', [1.0, 2.0, 3.0], False], ['state:a_vectorf_3', [1.0, 2.0, 3.0], False], ['state:a_vectorh_3', [1.0, 2.0, 3.0], False], ['state:a_vectord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_vectorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['state:a_vectorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ['inputs:a_bool', True, False], ['inputs:a_bool_array', [True, True], False], ['inputs:a_colord_3', [1.25, 2.25, 3.25], False], ['inputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_double', 1.25, False], ['inputs:a_double_2', [1.25, 2.25], False], ['inputs:a_double_3', [1.25, 2.25, 3.25], False], ['inputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_double_array', [1.25, 2.25], False], ['inputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_execution', 3, False], ['inputs:a_float', 1.25, False], ['inputs:a_float_2', [1.25, 2.25], False], ['inputs:a_float_3', [1.25, 2.25, 3.25], False], ['inputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_float_array', [1.25, 2.25], False], ['inputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['inputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_half', 1.25, False], ['inputs:a_half_2', [1.25, 2.25], False], ['inputs:a_half_3', [1.25, 2.25, 3.25], False], ['inputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_half_array', [1.25, 2.25], False], ['inputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_int', 11, False], ['inputs:a_int_2', [11, 12], False], ['inputs:a_int_3', [11, 12, 13], False], ['inputs:a_int_4', [11, 12, 13, 14], False], ['inputs:a_int_array', [11, 12], False], ['inputs:a_int_2_array', [[11, 12], [13, 14]], False], ['inputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['inputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['inputs:a_int64', 34567, False], ['inputs:a_int64_array', [45678, 56789], False], ['inputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['inputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['inputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['inputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_normald_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['inputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_objectId', 3, False], ['inputs:a_objectId_array', [3, 4], False], ['inputs:a_path', "/Test", False], ['inputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_string', "Palpatine", False], ['inputs:a_texcoordd_2', [1.25, 2.25], False], ['inputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordf_2', [1.25, 2.25], False], ['inputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordh_2', [1.25, 2.25], False], ['inputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_timecode', 1.25, False], ['inputs:a_timecode_array', [1.25, 2.25], False], ['inputs:a_token', "Rebels", False], ['inputs:a_token_array', ["Han", "Solo"], False], ['inputs:a_uchar', 3, False], ['inputs:a_uchar_array', [3, 4], False], ['inputs:a_uint', 3, False], ['inputs:a_uint_array', [3, 4], False], ['inputs:a_uint64', 3, False], ['inputs:a_uint64_array', [3, 4], False], ['inputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, True], False], ['outputs:a_colord_3', [1.25, 2.25, 3.25], False], ['outputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_double', 1.25, False], ['outputs:a_double_2', [1.25, 2.25], False], ['outputs:a_double_3', [1.25, 2.25, 3.25], False], ['outputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_double_array', [1.25, 2.25], False], ['outputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_execution', 3, False], ['outputs:a_float', 1.25, False], ['outputs:a_float_2', [1.25, 2.25], False], ['outputs:a_float_3', [1.25, 2.25, 3.25], False], ['outputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_float_array', [1.25, 2.25], False], ['outputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['outputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_half', 1.25, False], ['outputs:a_half_2', [1.25, 2.25], False], ['outputs:a_half_3', [1.25, 2.25, 3.25], False], ['outputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_half_array', [1.25, 2.25], False], ['outputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_int', 11, False], ['outputs:a_int_2', [11, 12], False], ['outputs:a_int_3', [11, 12, 13], False], ['outputs:a_int_4', [11, 12, 13, 14], False], ['outputs:a_int_array', [11, 12], False], ['outputs:a_int_2_array', [[11, 12], [13, 14]], False], ['outputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['outputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['outputs:a_int64', 34567, False], ['outputs:a_int64_array', [45678, 56789], False], ['outputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['outputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['outputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['outputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_normald_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['outputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_objectId', 3, False], ['outputs:a_objectId_array', [3, 4], False], ['outputs:a_path', "/Test", False], ['outputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_string', "Palpatine", False], ['outputs:a_texcoordd_2', [1.25, 2.25], False], ['outputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordf_2', [1.25, 2.25], False], ['outputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordh_2', [1.25, 2.25], False], ['outputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_timecode', 1.25, False], ['outputs:a_timecode_array', [1.25, 2.25], False], ['outputs:a_token', "Rebels", False], ['outputs:a_token_array', ["Han", "Solo"], False], ['outputs:a_uchar', 3, False], ['outputs:a_uchar_array', [3, 4], False], ['outputs:a_uint', 3, False], ['outputs:a_uint_array', [3, 4], False], ['outputs:a_uint64', 3, False], ['outputs:a_uint64_array', [3, 4], False], ['outputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypesPy", "omni.graph.test.TestAllDataTypesPy", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypesPy User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypesPy","omni.graph.test.TestAllDataTypesPy", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypesPy User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnTestAllDataTypesPyDatabase import OgnTestAllDataTypesPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestAllDataTypesPy", "omni.graph.test.TestAllDataTypesPy") }) database = OgnTestAllDataTypesPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a_bool")) attribute = test_node.get_attribute("inputs:a_bool") db_value = database.inputs.a_bool expected_value = False ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_bool_array")) attribute = test_node.get_attribute("inputs:a_bool_array") db_value = database.inputs.a_bool_array expected_value = [False, True] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3")) attribute = test_node.get_attribute("inputs:a_colord_3") db_value = database.inputs.a_colord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3_array")) attribute = test_node.get_attribute("inputs:a_colord_3_array") db_value = database.inputs.a_colord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4")) attribute = test_node.get_attribute("inputs:a_colord_4") db_value = database.inputs.a_colord_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4_array")) attribute = test_node.get_attribute("inputs:a_colord_4_array") db_value = database.inputs.a_colord_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3")) attribute = test_node.get_attribute("inputs:a_colorf_3") db_value = database.inputs.a_colorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3_array")) attribute = test_node.get_attribute("inputs:a_colorf_3_array") db_value = database.inputs.a_colorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4")) attribute = test_node.get_attribute("inputs:a_colorf_4") db_value = database.inputs.a_colorf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4_array")) attribute = test_node.get_attribute("inputs:a_colorf_4_array") db_value = database.inputs.a_colorf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3")) attribute = test_node.get_attribute("inputs:a_colorh_3") db_value = database.inputs.a_colorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3_array")) attribute = test_node.get_attribute("inputs:a_colorh_3_array") db_value = database.inputs.a_colorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4")) attribute = test_node.get_attribute("inputs:a_colorh_4") db_value = database.inputs.a_colorh_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4_array")) attribute = test_node.get_attribute("inputs:a_colorh_4_array") db_value = database.inputs.a_colorh_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double")) attribute = test_node.get_attribute("inputs:a_double") db_value = database.inputs.a_double expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2")) attribute = test_node.get_attribute("inputs:a_double_2") db_value = database.inputs.a_double_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2_array")) attribute = test_node.get_attribute("inputs:a_double_2_array") db_value = database.inputs.a_double_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3")) attribute = test_node.get_attribute("inputs:a_double_3") db_value = database.inputs.a_double_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3_array")) attribute = test_node.get_attribute("inputs:a_double_3_array") db_value = database.inputs.a_double_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4")) attribute = test_node.get_attribute("inputs:a_double_4") db_value = database.inputs.a_double_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4_array")) attribute = test_node.get_attribute("inputs:a_double_4_array") db_value = database.inputs.a_double_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array")) attribute = test_node.get_attribute("inputs:a_double_array") db_value = database.inputs.a_double_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_execution")) attribute = test_node.get_attribute("inputs:a_execution") db_value = database.inputs.a_execution expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float")) attribute = test_node.get_attribute("inputs:a_float") db_value = database.inputs.a_float expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2")) attribute = test_node.get_attribute("inputs:a_float_2") db_value = database.inputs.a_float_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2_array")) attribute = test_node.get_attribute("inputs:a_float_2_array") db_value = database.inputs.a_float_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3")) attribute = test_node.get_attribute("inputs:a_float_3") db_value = database.inputs.a_float_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3_array")) attribute = test_node.get_attribute("inputs:a_float_3_array") db_value = database.inputs.a_float_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4")) attribute = test_node.get_attribute("inputs:a_float_4") db_value = database.inputs.a_float_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4_array")) attribute = test_node.get_attribute("inputs:a_float_4_array") db_value = database.inputs.a_float_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array")) attribute = test_node.get_attribute("inputs:a_float_array") db_value = database.inputs.a_float_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4")) attribute = test_node.get_attribute("inputs:a_frame_4") db_value = database.inputs.a_frame_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4_array")) attribute = test_node.get_attribute("inputs:a_frame_4_array") db_value = database.inputs.a_frame_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half")) attribute = test_node.get_attribute("inputs:a_half") db_value = database.inputs.a_half expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2")) attribute = test_node.get_attribute("inputs:a_half_2") db_value = database.inputs.a_half_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2_array")) attribute = test_node.get_attribute("inputs:a_half_2_array") db_value = database.inputs.a_half_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3")) attribute = test_node.get_attribute("inputs:a_half_3") db_value = database.inputs.a_half_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3_array")) attribute = test_node.get_attribute("inputs:a_half_3_array") db_value = database.inputs.a_half_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4")) attribute = test_node.get_attribute("inputs:a_half_4") db_value = database.inputs.a_half_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4_array")) attribute = test_node.get_attribute("inputs:a_half_4_array") db_value = database.inputs.a_half_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array")) attribute = test_node.get_attribute("inputs:a_half_array") db_value = database.inputs.a_half_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int")) attribute = test_node.get_attribute("inputs:a_int") db_value = database.inputs.a_int expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64")) attribute = test_node.get_attribute("inputs:a_int64") db_value = database.inputs.a_int64 expected_value = 12345 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64_array")) attribute = test_node.get_attribute("inputs:a_int64_array") db_value = database.inputs.a_int64_array expected_value = [12345, 23456] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2")) attribute = test_node.get_attribute("inputs:a_int_2") db_value = database.inputs.a_int_2 expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2_array")) attribute = test_node.get_attribute("inputs:a_int_2_array") db_value = database.inputs.a_int_2_array expected_value = [[1, 2], [3, 4]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3")) attribute = test_node.get_attribute("inputs:a_int_3") db_value = database.inputs.a_int_3 expected_value = [1, 2, 3] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3_array")) attribute = test_node.get_attribute("inputs:a_int_3_array") db_value = database.inputs.a_int_3_array expected_value = [[1, 2, 3], [4, 5, 6]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4")) attribute = test_node.get_attribute("inputs:a_int_4") db_value = database.inputs.a_int_4 expected_value = [1, 2, 3, 4] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4_array")) attribute = test_node.get_attribute("inputs:a_int_4_array") db_value = database.inputs.a_int_4_array expected_value = [[1, 2, 3, 4], [5, 6, 7, 8]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_array")) attribute = test_node.get_attribute("inputs:a_int_array") db_value = database.inputs.a_int_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2")) attribute = test_node.get_attribute("inputs:a_matrixd_2") db_value = database.inputs.a_matrixd_2 expected_value = [[1.0, 2.0], [3.0, 4.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2_array")) attribute = test_node.get_attribute("inputs:a_matrixd_2_array") db_value = database.inputs.a_matrixd_2_array expected_value = [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3")) attribute = test_node.get_attribute("inputs:a_matrixd_3") db_value = database.inputs.a_matrixd_3 expected_value = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3_array")) attribute = test_node.get_attribute("inputs:a_matrixd_3_array") db_value = database.inputs.a_matrixd_3_array expected_value = [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4")) attribute = test_node.get_attribute("inputs:a_matrixd_4") db_value = database.inputs.a_matrixd_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4_array")) attribute = test_node.get_attribute("inputs:a_matrixd_4_array") db_value = database.inputs.a_matrixd_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3")) attribute = test_node.get_attribute("inputs:a_normald_3") db_value = database.inputs.a_normald_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3_array")) attribute = test_node.get_attribute("inputs:a_normald_3_array") db_value = database.inputs.a_normald_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3")) attribute = test_node.get_attribute("inputs:a_normalf_3") db_value = database.inputs.a_normalf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3_array")) attribute = test_node.get_attribute("inputs:a_normalf_3_array") db_value = database.inputs.a_normalf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3")) attribute = test_node.get_attribute("inputs:a_normalh_3") db_value = database.inputs.a_normalh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3_array")) attribute = test_node.get_attribute("inputs:a_normalh_3_array") db_value = database.inputs.a_normalh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId")) attribute = test_node.get_attribute("inputs:a_objectId") db_value = database.inputs.a_objectId expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId_array")) attribute = test_node.get_attribute("inputs:a_objectId_array") db_value = database.inputs.a_objectId_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_path")) attribute = test_node.get_attribute("inputs:a_path") db_value = database.inputs.a_path expected_value = "/Input" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3")) attribute = test_node.get_attribute("inputs:a_pointd_3") db_value = database.inputs.a_pointd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3_array")) attribute = test_node.get_attribute("inputs:a_pointd_3_array") db_value = database.inputs.a_pointd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3")) attribute = test_node.get_attribute("inputs:a_pointf_3") db_value = database.inputs.a_pointf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3_array")) attribute = test_node.get_attribute("inputs:a_pointf_3_array") db_value = database.inputs.a_pointf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3")) attribute = test_node.get_attribute("inputs:a_pointh_3") db_value = database.inputs.a_pointh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3_array")) attribute = test_node.get_attribute("inputs:a_pointh_3_array") db_value = database.inputs.a_pointh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4")) attribute = test_node.get_attribute("inputs:a_quatd_4") db_value = database.inputs.a_quatd_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4_array")) attribute = test_node.get_attribute("inputs:a_quatd_4_array") db_value = database.inputs.a_quatd_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4")) attribute = test_node.get_attribute("inputs:a_quatf_4") db_value = database.inputs.a_quatf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4_array")) attribute = test_node.get_attribute("inputs:a_quatf_4_array") db_value = database.inputs.a_quatf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4")) attribute = test_node.get_attribute("inputs:a_quath_4") db_value = database.inputs.a_quath_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4_array")) attribute = test_node.get_attribute("inputs:a_quath_4_array") db_value = database.inputs.a_quath_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_string")) attribute = test_node.get_attribute("inputs:a_string") db_value = database.inputs.a_string expected_value = "Rey" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_target")) attribute = test_node.get_attribute("inputs:a_target") db_value = database.inputs.a_target self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2")) attribute = test_node.get_attribute("inputs:a_texcoordd_2") db_value = database.inputs.a_texcoordd_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_2_array") db_value = database.inputs.a_texcoordd_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3")) attribute = test_node.get_attribute("inputs:a_texcoordd_3") db_value = database.inputs.a_texcoordd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_3_array") db_value = database.inputs.a_texcoordd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2")) attribute = test_node.get_attribute("inputs:a_texcoordf_2") db_value = database.inputs.a_texcoordf_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_2_array") db_value = database.inputs.a_texcoordf_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3")) attribute = test_node.get_attribute("inputs:a_texcoordf_3") db_value = database.inputs.a_texcoordf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_3_array") db_value = database.inputs.a_texcoordf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2")) attribute = test_node.get_attribute("inputs:a_texcoordh_2") db_value = database.inputs.a_texcoordh_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_2_array") db_value = database.inputs.a_texcoordh_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3")) attribute = test_node.get_attribute("inputs:a_texcoordh_3") db_value = database.inputs.a_texcoordh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_3_array") db_value = database.inputs.a_texcoordh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode")) attribute = test_node.get_attribute("inputs:a_timecode") db_value = database.inputs.a_timecode expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array")) attribute = test_node.get_attribute("inputs:a_timecode_array") db_value = database.inputs.a_timecode_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token")) attribute = test_node.get_attribute("inputs:a_token") db_value = database.inputs.a_token expected_value = "Sith" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token_array")) attribute = test_node.get_attribute("inputs:a_token_array") db_value = database.inputs.a_token_array expected_value = ['Kylo', 'Ren'] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar")) attribute = test_node.get_attribute("inputs:a_uchar") db_value = database.inputs.a_uchar expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar_array")) attribute = test_node.get_attribute("inputs:a_uchar_array") db_value = database.inputs.a_uchar_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint")) attribute = test_node.get_attribute("inputs:a_uint") db_value = database.inputs.a_uint expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64")) attribute = test_node.get_attribute("inputs:a_uint64") db_value = database.inputs.a_uint64 expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64_array")) attribute = test_node.get_attribute("inputs:a_uint64_array") db_value = database.inputs.a_uint64_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint_array")) attribute = test_node.get_attribute("inputs:a_uint_array") db_value = database.inputs.a_uint_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3")) attribute = test_node.get_attribute("inputs:a_vectord_3") db_value = database.inputs.a_vectord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3_array")) attribute = test_node.get_attribute("inputs:a_vectord_3_array") db_value = database.inputs.a_vectord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3")) attribute = test_node.get_attribute("inputs:a_vectorf_3") db_value = database.inputs.a_vectorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3_array")) attribute = test_node.get_attribute("inputs:a_vectorf_3_array") db_value = database.inputs.a_vectorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3")) attribute = test_node.get_attribute("inputs:a_vectorh_3") db_value = database.inputs.a_vectorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3_array")) attribute = test_node.get_attribute("inputs:a_vectorh_3_array") db_value = database.inputs.a_vectorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:doNotCompute")) attribute = test_node.get_attribute("inputs:doNotCompute") db_value = database.inputs.doNotCompute expected_value = True ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:a_bool")) attribute = test_node.get_attribute("outputs:a_bool") db_value = database.outputs.a_bool self.assertTrue(test_node.get_attribute_exists("outputs:a_bool_array")) attribute = test_node.get_attribute("outputs:a_bool_array") db_value = database.outputs.a_bool_array self.assertTrue(test_node.get_attribute_exists("outputs_a_bundle")) attribute = test_node.get_attribute("outputs_a_bundle") db_value = database.outputs.a_bundle self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3")) attribute = test_node.get_attribute("outputs:a_colord_3") db_value = database.outputs.a_colord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3_array")) attribute = test_node.get_attribute("outputs:a_colord_3_array") db_value = database.outputs.a_colord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4")) attribute = test_node.get_attribute("outputs:a_colord_4") db_value = database.outputs.a_colord_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4_array")) attribute = test_node.get_attribute("outputs:a_colord_4_array") db_value = database.outputs.a_colord_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3")) attribute = test_node.get_attribute("outputs:a_colorf_3") db_value = database.outputs.a_colorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3_array")) attribute = test_node.get_attribute("outputs:a_colorf_3_array") db_value = database.outputs.a_colorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4")) attribute = test_node.get_attribute("outputs:a_colorf_4") db_value = database.outputs.a_colorf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4_array")) attribute = test_node.get_attribute("outputs:a_colorf_4_array") db_value = database.outputs.a_colorf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3")) attribute = test_node.get_attribute("outputs:a_colorh_3") db_value = database.outputs.a_colorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3_array")) attribute = test_node.get_attribute("outputs:a_colorh_3_array") db_value = database.outputs.a_colorh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4")) attribute = test_node.get_attribute("outputs:a_colorh_4") db_value = database.outputs.a_colorh_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4_array")) attribute = test_node.get_attribute("outputs:a_colorh_4_array") db_value = database.outputs.a_colorh_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double")) attribute = test_node.get_attribute("outputs:a_double") db_value = database.outputs.a_double self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2")) attribute = test_node.get_attribute("outputs:a_double_2") db_value = database.outputs.a_double_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2_array")) attribute = test_node.get_attribute("outputs:a_double_2_array") db_value = database.outputs.a_double_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3")) attribute = test_node.get_attribute("outputs:a_double_3") db_value = database.outputs.a_double_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3_array")) attribute = test_node.get_attribute("outputs:a_double_3_array") db_value = database.outputs.a_double_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4")) attribute = test_node.get_attribute("outputs:a_double_4") db_value = database.outputs.a_double_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4_array")) attribute = test_node.get_attribute("outputs:a_double_4_array") db_value = database.outputs.a_double_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array")) attribute = test_node.get_attribute("outputs:a_double_array") db_value = database.outputs.a_double_array self.assertTrue(test_node.get_attribute_exists("outputs:a_execution")) attribute = test_node.get_attribute("outputs:a_execution") db_value = database.outputs.a_execution self.assertTrue(test_node.get_attribute_exists("outputs:a_float")) attribute = test_node.get_attribute("outputs:a_float") db_value = database.outputs.a_float self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2")) attribute = test_node.get_attribute("outputs:a_float_2") db_value = database.outputs.a_float_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2_array")) attribute = test_node.get_attribute("outputs:a_float_2_array") db_value = database.outputs.a_float_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3")) attribute = test_node.get_attribute("outputs:a_float_3") db_value = database.outputs.a_float_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3_array")) attribute = test_node.get_attribute("outputs:a_float_3_array") db_value = database.outputs.a_float_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4")) attribute = test_node.get_attribute("outputs:a_float_4") db_value = database.outputs.a_float_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4_array")) attribute = test_node.get_attribute("outputs:a_float_4_array") db_value = database.outputs.a_float_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array")) attribute = test_node.get_attribute("outputs:a_float_array") db_value = database.outputs.a_float_array self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4")) attribute = test_node.get_attribute("outputs:a_frame_4") db_value = database.outputs.a_frame_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4_array")) attribute = test_node.get_attribute("outputs:a_frame_4_array") db_value = database.outputs.a_frame_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half")) attribute = test_node.get_attribute("outputs:a_half") db_value = database.outputs.a_half self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2")) attribute = test_node.get_attribute("outputs:a_half_2") db_value = database.outputs.a_half_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2_array")) attribute = test_node.get_attribute("outputs:a_half_2_array") db_value = database.outputs.a_half_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3")) attribute = test_node.get_attribute("outputs:a_half_3") db_value = database.outputs.a_half_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3_array")) attribute = test_node.get_attribute("outputs:a_half_3_array") db_value = database.outputs.a_half_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4")) attribute = test_node.get_attribute("outputs:a_half_4") db_value = database.outputs.a_half_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4_array")) attribute = test_node.get_attribute("outputs:a_half_4_array") db_value = database.outputs.a_half_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array")) attribute = test_node.get_attribute("outputs:a_half_array") db_value = database.outputs.a_half_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int")) attribute = test_node.get_attribute("outputs:a_int") db_value = database.outputs.a_int self.assertTrue(test_node.get_attribute_exists("outputs:a_int64")) attribute = test_node.get_attribute("outputs:a_int64") db_value = database.outputs.a_int64 self.assertTrue(test_node.get_attribute_exists("outputs:a_int64_array")) attribute = test_node.get_attribute("outputs:a_int64_array") db_value = database.outputs.a_int64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2")) attribute = test_node.get_attribute("outputs:a_int_2") db_value = database.outputs.a_int_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2_array")) attribute = test_node.get_attribute("outputs:a_int_2_array") db_value = database.outputs.a_int_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3")) attribute = test_node.get_attribute("outputs:a_int_3") db_value = database.outputs.a_int_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3_array")) attribute = test_node.get_attribute("outputs:a_int_3_array") db_value = database.outputs.a_int_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4")) attribute = test_node.get_attribute("outputs:a_int_4") db_value = database.outputs.a_int_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4_array")) attribute = test_node.get_attribute("outputs:a_int_4_array") db_value = database.outputs.a_int_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_array")) attribute = test_node.get_attribute("outputs:a_int_array") db_value = database.outputs.a_int_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2")) attribute = test_node.get_attribute("outputs:a_matrixd_2") db_value = database.outputs.a_matrixd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2_array")) attribute = test_node.get_attribute("outputs:a_matrixd_2_array") db_value = database.outputs.a_matrixd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3")) attribute = test_node.get_attribute("outputs:a_matrixd_3") db_value = database.outputs.a_matrixd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3_array")) attribute = test_node.get_attribute("outputs:a_matrixd_3_array") db_value = database.outputs.a_matrixd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4")) attribute = test_node.get_attribute("outputs:a_matrixd_4") db_value = database.outputs.a_matrixd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4_array")) attribute = test_node.get_attribute("outputs:a_matrixd_4_array") db_value = database.outputs.a_matrixd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3")) attribute = test_node.get_attribute("outputs:a_normald_3") db_value = database.outputs.a_normald_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3_array")) attribute = test_node.get_attribute("outputs:a_normald_3_array") db_value = database.outputs.a_normald_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3")) attribute = test_node.get_attribute("outputs:a_normalf_3") db_value = database.outputs.a_normalf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3_array")) attribute = test_node.get_attribute("outputs:a_normalf_3_array") db_value = database.outputs.a_normalf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3")) attribute = test_node.get_attribute("outputs:a_normalh_3") db_value = database.outputs.a_normalh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3_array")) attribute = test_node.get_attribute("outputs:a_normalh_3_array") db_value = database.outputs.a_normalh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId")) attribute = test_node.get_attribute("outputs:a_objectId") db_value = database.outputs.a_objectId self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId_array")) attribute = test_node.get_attribute("outputs:a_objectId_array") db_value = database.outputs.a_objectId_array self.assertTrue(test_node.get_attribute_exists("outputs:a_path")) attribute = test_node.get_attribute("outputs:a_path") db_value = database.outputs.a_path self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3")) attribute = test_node.get_attribute("outputs:a_pointd_3") db_value = database.outputs.a_pointd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3_array")) attribute = test_node.get_attribute("outputs:a_pointd_3_array") db_value = database.outputs.a_pointd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3")) attribute = test_node.get_attribute("outputs:a_pointf_3") db_value = database.outputs.a_pointf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3_array")) attribute = test_node.get_attribute("outputs:a_pointf_3_array") db_value = database.outputs.a_pointf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3")) attribute = test_node.get_attribute("outputs:a_pointh_3") db_value = database.outputs.a_pointh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3_array")) attribute = test_node.get_attribute("outputs:a_pointh_3_array") db_value = database.outputs.a_pointh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4")) attribute = test_node.get_attribute("outputs:a_quatd_4") db_value = database.outputs.a_quatd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4_array")) attribute = test_node.get_attribute("outputs:a_quatd_4_array") db_value = database.outputs.a_quatd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4")) attribute = test_node.get_attribute("outputs:a_quatf_4") db_value = database.outputs.a_quatf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4_array")) attribute = test_node.get_attribute("outputs:a_quatf_4_array") db_value = database.outputs.a_quatf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4")) attribute = test_node.get_attribute("outputs:a_quath_4") db_value = database.outputs.a_quath_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4_array")) attribute = test_node.get_attribute("outputs:a_quath_4_array") db_value = database.outputs.a_quath_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_string")) attribute = test_node.get_attribute("outputs:a_string") db_value = database.outputs.a_string self.assertTrue(test_node.get_attribute_exists("outputs:a_target")) attribute = test_node.get_attribute("outputs:a_target") db_value = database.outputs.a_target self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2")) attribute = test_node.get_attribute("outputs:a_texcoordd_2") db_value = database.outputs.a_texcoordd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_2_array") db_value = database.outputs.a_texcoordd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3")) attribute = test_node.get_attribute("outputs:a_texcoordd_3") db_value = database.outputs.a_texcoordd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_3_array") db_value = database.outputs.a_texcoordd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2")) attribute = test_node.get_attribute("outputs:a_texcoordf_2") db_value = database.outputs.a_texcoordf_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_2_array") db_value = database.outputs.a_texcoordf_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3")) attribute = test_node.get_attribute("outputs:a_texcoordf_3") db_value = database.outputs.a_texcoordf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_3_array") db_value = database.outputs.a_texcoordf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2")) attribute = test_node.get_attribute("outputs:a_texcoordh_2") db_value = database.outputs.a_texcoordh_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_2_array") db_value = database.outputs.a_texcoordh_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3")) attribute = test_node.get_attribute("outputs:a_texcoordh_3") db_value = database.outputs.a_texcoordh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_3_array") db_value = database.outputs.a_texcoordh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode")) attribute = test_node.get_attribute("outputs:a_timecode") db_value = database.outputs.a_timecode self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array")) attribute = test_node.get_attribute("outputs:a_timecode_array") db_value = database.outputs.a_timecode_array self.assertTrue(test_node.get_attribute_exists("outputs:a_token")) attribute = test_node.get_attribute("outputs:a_token") db_value = database.outputs.a_token self.assertTrue(test_node.get_attribute_exists("outputs:a_token_array")) attribute = test_node.get_attribute("outputs:a_token_array") db_value = database.outputs.a_token_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar")) attribute = test_node.get_attribute("outputs:a_uchar") db_value = database.outputs.a_uchar self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar_array")) attribute = test_node.get_attribute("outputs:a_uchar_array") db_value = database.outputs.a_uchar_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint")) attribute = test_node.get_attribute("outputs:a_uint") db_value = database.outputs.a_uint self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64")) attribute = test_node.get_attribute("outputs:a_uint64") db_value = database.outputs.a_uint64 self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64_array")) attribute = test_node.get_attribute("outputs:a_uint64_array") db_value = database.outputs.a_uint64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint_array")) attribute = test_node.get_attribute("outputs:a_uint_array") db_value = database.outputs.a_uint_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3")) attribute = test_node.get_attribute("outputs:a_vectord_3") db_value = database.outputs.a_vectord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3_array")) attribute = test_node.get_attribute("outputs:a_vectord_3_array") db_value = database.outputs.a_vectord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3")) attribute = test_node.get_attribute("outputs:a_vectorf_3") db_value = database.outputs.a_vectorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3_array")) attribute = test_node.get_attribute("outputs:a_vectorf_3_array") db_value = database.outputs.a_vectorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3")) attribute = test_node.get_attribute("outputs:a_vectorh_3") db_value = database.outputs.a_vectorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3_array")) attribute = test_node.get_attribute("outputs:a_vectorh_3_array") db_value = database.outputs.a_vectorh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_bool")) attribute = test_node.get_attribute("state:a_bool") db_value = database.state.a_bool self.assertTrue(test_node.get_attribute_exists("state:a_bool_array")) attribute = test_node.get_attribute("state:a_bool_array") db_value = database.state.a_bool_array self.assertTrue(test_node.get_attribute_exists("state_a_bundle")) attribute = test_node.get_attribute("state_a_bundle") db_value = database.state.a_bundle self.assertTrue(test_node.get_attribute_exists("state:a_colord_3")) attribute = test_node.get_attribute("state:a_colord_3") db_value = database.state.a_colord_3 self.assertTrue(test_node.get_attribute_exists("state:a_colord_3_array")) attribute = test_node.get_attribute("state:a_colord_3_array") db_value = database.state.a_colord_3_array self.assertTrue(test_node.get_attribute_exists("state:a_colord_4")) attribute = test_node.get_attribute("state:a_colord_4") db_value = database.state.a_colord_4 self.assertTrue(test_node.get_attribute_exists("state:a_colord_4_array")) attribute = test_node.get_attribute("state:a_colord_4_array") db_value = database.state.a_colord_4_array self.assertTrue(test_node.get_attribute_exists("state:a_colorf_3")) attribute = test_node.get_attribute("state:a_colorf_3") db_value = database.state.a_colorf_3 self.assertTrue(test_node.get_attribute_exists("state:a_colorf_3_array")) attribute = test_node.get_attribute("state:a_colorf_3_array") db_value = database.state.a_colorf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_colorf_4")) attribute = test_node.get_attribute("state:a_colorf_4") db_value = database.state.a_colorf_4 self.assertTrue(test_node.get_attribute_exists("state:a_colorf_4_array")) attribute = test_node.get_attribute("state:a_colorf_4_array") db_value = database.state.a_colorf_4_array self.assertTrue(test_node.get_attribute_exists("state:a_colorh_3")) attribute = test_node.get_attribute("state:a_colorh_3") db_value = database.state.a_colorh_3 self.assertTrue(test_node.get_attribute_exists("state:a_colorh_3_array")) attribute = test_node.get_attribute("state:a_colorh_3_array") db_value = database.state.a_colorh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_colorh_4")) attribute = test_node.get_attribute("state:a_colorh_4") db_value = database.state.a_colorh_4 self.assertTrue(test_node.get_attribute_exists("state:a_colorh_4_array")) attribute = test_node.get_attribute("state:a_colorh_4_array") db_value = database.state.a_colorh_4_array self.assertTrue(test_node.get_attribute_exists("state:a_double")) attribute = test_node.get_attribute("state:a_double") db_value = database.state.a_double self.assertTrue(test_node.get_attribute_exists("state:a_double_2")) attribute = test_node.get_attribute("state:a_double_2") db_value = database.state.a_double_2 self.assertTrue(test_node.get_attribute_exists("state:a_double_2_array")) attribute = test_node.get_attribute("state:a_double_2_array") db_value = database.state.a_double_2_array self.assertTrue(test_node.get_attribute_exists("state:a_double_3")) attribute = test_node.get_attribute("state:a_double_3") db_value = database.state.a_double_3 self.assertTrue(test_node.get_attribute_exists("state:a_double_3_array")) attribute = test_node.get_attribute("state:a_double_3_array") db_value = database.state.a_double_3_array self.assertTrue(test_node.get_attribute_exists("state:a_double_4")) attribute = test_node.get_attribute("state:a_double_4") db_value = database.state.a_double_4 self.assertTrue(test_node.get_attribute_exists("state:a_double_4_array")) attribute = test_node.get_attribute("state:a_double_4_array") db_value = database.state.a_double_4_array self.assertTrue(test_node.get_attribute_exists("state:a_double_array")) attribute = test_node.get_attribute("state:a_double_array") db_value = database.state.a_double_array self.assertTrue(test_node.get_attribute_exists("state:a_execution")) attribute = test_node.get_attribute("state:a_execution") db_value = database.state.a_execution self.assertTrue(test_node.get_attribute_exists("state:a_firstEvaluation")) attribute = test_node.get_attribute("state:a_firstEvaluation") db_value = database.state.a_firstEvaluation self.assertTrue(test_node.get_attribute_exists("state:a_float")) attribute = test_node.get_attribute("state:a_float") db_value = database.state.a_float self.assertTrue(test_node.get_attribute_exists("state:a_float_2")) attribute = test_node.get_attribute("state:a_float_2") db_value = database.state.a_float_2 self.assertTrue(test_node.get_attribute_exists("state:a_float_2_array")) attribute = test_node.get_attribute("state:a_float_2_array") db_value = database.state.a_float_2_array self.assertTrue(test_node.get_attribute_exists("state:a_float_3")) attribute = test_node.get_attribute("state:a_float_3") db_value = database.state.a_float_3 self.assertTrue(test_node.get_attribute_exists("state:a_float_3_array")) attribute = test_node.get_attribute("state:a_float_3_array") db_value = database.state.a_float_3_array self.assertTrue(test_node.get_attribute_exists("state:a_float_4")) attribute = test_node.get_attribute("state:a_float_4") db_value = database.state.a_float_4 self.assertTrue(test_node.get_attribute_exists("state:a_float_4_array")) attribute = test_node.get_attribute("state:a_float_4_array") db_value = database.state.a_float_4_array self.assertTrue(test_node.get_attribute_exists("state:a_float_array")) attribute = test_node.get_attribute("state:a_float_array") db_value = database.state.a_float_array self.assertTrue(test_node.get_attribute_exists("state:a_frame_4")) attribute = test_node.get_attribute("state:a_frame_4") db_value = database.state.a_frame_4 self.assertTrue(test_node.get_attribute_exists("state:a_frame_4_array")) attribute = test_node.get_attribute("state:a_frame_4_array") db_value = database.state.a_frame_4_array self.assertTrue(test_node.get_attribute_exists("state:a_half")) attribute = test_node.get_attribute("state:a_half") db_value = database.state.a_half self.assertTrue(test_node.get_attribute_exists("state:a_half_2")) attribute = test_node.get_attribute("state:a_half_2") db_value = database.state.a_half_2 self.assertTrue(test_node.get_attribute_exists("state:a_half_2_array")) attribute = test_node.get_attribute("state:a_half_2_array") db_value = database.state.a_half_2_array self.assertTrue(test_node.get_attribute_exists("state:a_half_3")) attribute = test_node.get_attribute("state:a_half_3") db_value = database.state.a_half_3 self.assertTrue(test_node.get_attribute_exists("state:a_half_3_array")) attribute = test_node.get_attribute("state:a_half_3_array") db_value = database.state.a_half_3_array self.assertTrue(test_node.get_attribute_exists("state:a_half_4")) attribute = test_node.get_attribute("state:a_half_4") db_value = database.state.a_half_4 self.assertTrue(test_node.get_attribute_exists("state:a_half_4_array")) attribute = test_node.get_attribute("state:a_half_4_array") db_value = database.state.a_half_4_array self.assertTrue(test_node.get_attribute_exists("state:a_half_array")) attribute = test_node.get_attribute("state:a_half_array") db_value = database.state.a_half_array self.assertTrue(test_node.get_attribute_exists("state:a_int")) attribute = test_node.get_attribute("state:a_int") db_value = database.state.a_int self.assertTrue(test_node.get_attribute_exists("state:a_int64")) attribute = test_node.get_attribute("state:a_int64") db_value = database.state.a_int64 self.assertTrue(test_node.get_attribute_exists("state:a_int64_array")) attribute = test_node.get_attribute("state:a_int64_array") db_value = database.state.a_int64_array self.assertTrue(test_node.get_attribute_exists("state:a_int_2")) attribute = test_node.get_attribute("state:a_int_2") db_value = database.state.a_int_2 self.assertTrue(test_node.get_attribute_exists("state:a_int_2_array")) attribute = test_node.get_attribute("state:a_int_2_array") db_value = database.state.a_int_2_array self.assertTrue(test_node.get_attribute_exists("state:a_int_3")) attribute = test_node.get_attribute("state:a_int_3") db_value = database.state.a_int_3 self.assertTrue(test_node.get_attribute_exists("state:a_int_3_array")) attribute = test_node.get_attribute("state:a_int_3_array") db_value = database.state.a_int_3_array self.assertTrue(test_node.get_attribute_exists("state:a_int_4")) attribute = test_node.get_attribute("state:a_int_4") db_value = database.state.a_int_4 self.assertTrue(test_node.get_attribute_exists("state:a_int_4_array")) attribute = test_node.get_attribute("state:a_int_4_array") db_value = database.state.a_int_4_array self.assertTrue(test_node.get_attribute_exists("state:a_int_array")) attribute = test_node.get_attribute("state:a_int_array") db_value = database.state.a_int_array self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_2")) attribute = test_node.get_attribute("state:a_matrixd_2") db_value = database.state.a_matrixd_2 self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_2_array")) attribute = test_node.get_attribute("state:a_matrixd_2_array") db_value = database.state.a_matrixd_2_array self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_3")) attribute = test_node.get_attribute("state:a_matrixd_3") db_value = database.state.a_matrixd_3 self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_3_array")) attribute = test_node.get_attribute("state:a_matrixd_3_array") db_value = database.state.a_matrixd_3_array self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_4")) attribute = test_node.get_attribute("state:a_matrixd_4") db_value = database.state.a_matrixd_4 self.assertTrue(test_node.get_attribute_exists("state:a_matrixd_4_array")) attribute = test_node.get_attribute("state:a_matrixd_4_array") db_value = database.state.a_matrixd_4_array self.assertTrue(test_node.get_attribute_exists("state:a_normald_3")) attribute = test_node.get_attribute("state:a_normald_3") db_value = database.state.a_normald_3 self.assertTrue(test_node.get_attribute_exists("state:a_normald_3_array")) attribute = test_node.get_attribute("state:a_normald_3_array") db_value = database.state.a_normald_3_array self.assertTrue(test_node.get_attribute_exists("state:a_normalf_3")) attribute = test_node.get_attribute("state:a_normalf_3") db_value = database.state.a_normalf_3 self.assertTrue(test_node.get_attribute_exists("state:a_normalf_3_array")) attribute = test_node.get_attribute("state:a_normalf_3_array") db_value = database.state.a_normalf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_normalh_3")) attribute = test_node.get_attribute("state:a_normalh_3") db_value = database.state.a_normalh_3 self.assertTrue(test_node.get_attribute_exists("state:a_normalh_3_array")) attribute = test_node.get_attribute("state:a_normalh_3_array") db_value = database.state.a_normalh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_objectId")) attribute = test_node.get_attribute("state:a_objectId") db_value = database.state.a_objectId self.assertTrue(test_node.get_attribute_exists("state:a_objectId_array")) attribute = test_node.get_attribute("state:a_objectId_array") db_value = database.state.a_objectId_array self.assertTrue(test_node.get_attribute_exists("state:a_path")) attribute = test_node.get_attribute("state:a_path") db_value = database.state.a_path self.assertTrue(test_node.get_attribute_exists("state:a_pointd_3")) attribute = test_node.get_attribute("state:a_pointd_3") db_value = database.state.a_pointd_3 self.assertTrue(test_node.get_attribute_exists("state:a_pointd_3_array")) attribute = test_node.get_attribute("state:a_pointd_3_array") db_value = database.state.a_pointd_3_array self.assertTrue(test_node.get_attribute_exists("state:a_pointf_3")) attribute = test_node.get_attribute("state:a_pointf_3") db_value = database.state.a_pointf_3 self.assertTrue(test_node.get_attribute_exists("state:a_pointf_3_array")) attribute = test_node.get_attribute("state:a_pointf_3_array") db_value = database.state.a_pointf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_pointh_3")) attribute = test_node.get_attribute("state:a_pointh_3") db_value = database.state.a_pointh_3 self.assertTrue(test_node.get_attribute_exists("state:a_pointh_3_array")) attribute = test_node.get_attribute("state:a_pointh_3_array") db_value = database.state.a_pointh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_quatd_4")) attribute = test_node.get_attribute("state:a_quatd_4") db_value = database.state.a_quatd_4 self.assertTrue(test_node.get_attribute_exists("state:a_quatd_4_array")) attribute = test_node.get_attribute("state:a_quatd_4_array") db_value = database.state.a_quatd_4_array self.assertTrue(test_node.get_attribute_exists("state:a_quatf_4")) attribute = test_node.get_attribute("state:a_quatf_4") db_value = database.state.a_quatf_4 self.assertTrue(test_node.get_attribute_exists("state:a_quatf_4_array")) attribute = test_node.get_attribute("state:a_quatf_4_array") db_value = database.state.a_quatf_4_array self.assertTrue(test_node.get_attribute_exists("state:a_quath_4")) attribute = test_node.get_attribute("state:a_quath_4") db_value = database.state.a_quath_4 self.assertTrue(test_node.get_attribute_exists("state:a_quath_4_array")) attribute = test_node.get_attribute("state:a_quath_4_array") db_value = database.state.a_quath_4_array self.assertTrue(test_node.get_attribute_exists("state:a_string")) attribute = test_node.get_attribute("state:a_string") db_value = database.state.a_string self.assertTrue(test_node.get_attribute_exists("state:a_stringEmpty")) attribute = test_node.get_attribute("state:a_stringEmpty") db_value = database.state.a_stringEmpty self.assertTrue(test_node.get_attribute_exists("state:a_target")) attribute = test_node.get_attribute("state:a_target") db_value = database.state.a_target self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_2")) attribute = test_node.get_attribute("state:a_texcoordd_2") db_value = database.state.a_texcoordd_2 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_2_array")) attribute = test_node.get_attribute("state:a_texcoordd_2_array") db_value = database.state.a_texcoordd_2_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_3")) attribute = test_node.get_attribute("state:a_texcoordd_3") db_value = database.state.a_texcoordd_3 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordd_3_array")) attribute = test_node.get_attribute("state:a_texcoordd_3_array") db_value = database.state.a_texcoordd_3_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_2")) attribute = test_node.get_attribute("state:a_texcoordf_2") db_value = database.state.a_texcoordf_2 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_2_array")) attribute = test_node.get_attribute("state:a_texcoordf_2_array") db_value = database.state.a_texcoordf_2_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_3")) attribute = test_node.get_attribute("state:a_texcoordf_3") db_value = database.state.a_texcoordf_3 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordf_3_array")) attribute = test_node.get_attribute("state:a_texcoordf_3_array") db_value = database.state.a_texcoordf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_2")) attribute = test_node.get_attribute("state:a_texcoordh_2") db_value = database.state.a_texcoordh_2 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_2_array")) attribute = test_node.get_attribute("state:a_texcoordh_2_array") db_value = database.state.a_texcoordh_2_array self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_3")) attribute = test_node.get_attribute("state:a_texcoordh_3") db_value = database.state.a_texcoordh_3 self.assertTrue(test_node.get_attribute_exists("state:a_texcoordh_3_array")) attribute = test_node.get_attribute("state:a_texcoordh_3_array") db_value = database.state.a_texcoordh_3_array self.assertTrue(test_node.get_attribute_exists("state:a_timecode")) attribute = test_node.get_attribute("state:a_timecode") db_value = database.state.a_timecode self.assertTrue(test_node.get_attribute_exists("state:a_timecode_array")) attribute = test_node.get_attribute("state:a_timecode_array") db_value = database.state.a_timecode_array self.assertTrue(test_node.get_attribute_exists("state:a_token")) attribute = test_node.get_attribute("state:a_token") db_value = database.state.a_token self.assertTrue(test_node.get_attribute_exists("state:a_token_array")) attribute = test_node.get_attribute("state:a_token_array") db_value = database.state.a_token_array self.assertTrue(test_node.get_attribute_exists("state:a_uchar")) attribute = test_node.get_attribute("state:a_uchar") db_value = database.state.a_uchar self.assertTrue(test_node.get_attribute_exists("state:a_uchar_array")) attribute = test_node.get_attribute("state:a_uchar_array") db_value = database.state.a_uchar_array self.assertTrue(test_node.get_attribute_exists("state:a_uint")) attribute = test_node.get_attribute("state:a_uint") db_value = database.state.a_uint self.assertTrue(test_node.get_attribute_exists("state:a_uint64")) attribute = test_node.get_attribute("state:a_uint64") db_value = database.state.a_uint64 self.assertTrue(test_node.get_attribute_exists("state:a_uint64_array")) attribute = test_node.get_attribute("state:a_uint64_array") db_value = database.state.a_uint64_array self.assertTrue(test_node.get_attribute_exists("state:a_uint_array")) attribute = test_node.get_attribute("state:a_uint_array") db_value = database.state.a_uint_array self.assertTrue(test_node.get_attribute_exists("state:a_vectord_3")) attribute = test_node.get_attribute("state:a_vectord_3") db_value = database.state.a_vectord_3 self.assertTrue(test_node.get_attribute_exists("state:a_vectord_3_array")) attribute = test_node.get_attribute("state:a_vectord_3_array") db_value = database.state.a_vectord_3_array self.assertTrue(test_node.get_attribute_exists("state:a_vectorf_3")) attribute = test_node.get_attribute("state:a_vectorf_3") db_value = database.state.a_vectorf_3 self.assertTrue(test_node.get_attribute_exists("state:a_vectorf_3_array")) attribute = test_node.get_attribute("state:a_vectorf_3_array") db_value = database.state.a_vectorf_3_array self.assertTrue(test_node.get_attribute_exists("state:a_vectorh_3")) attribute = test_node.get_attribute("state:a_vectorh_3") db_value = database.state.a_vectorh_3 self.assertTrue(test_node.get_attribute_exists("state:a_vectorh_3_array")) attribute = test_node.get_attribute("state:a_vectorh_3_array") db_value = database.state.a_vectorh_3_array
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnNodeDatabasePy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnNodeDatabasePyDatabase import OgnNodeDatabasePyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_NodeDatabasePy", "omni.graph.test.NodeDatabasePy") }) database = OgnNodeDatabasePyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("outputs:id")) attribute = test_node.get_attribute("outputs:id") db_value = database.outputs.id
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestCategoryDefinitions.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'outputs': [ ['outputs:category', "internal:categoryTest", False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestCategoryDefinitions", "omni.graph.test.TestCategoryDefinitions", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestCategoryDefinitions User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestCategoryDefinitions","omni.graph.test.TestCategoryDefinitions", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestCategoryDefinitions User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnTestCategoryDefinitionsDatabase import OgnTestCategoryDefinitionsDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestCategoryDefinitions", "omni.graph.test.TestCategoryDefinitions") }) database = OgnTestCategoryDefinitionsDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("outputs:category")) attribute = test_node.get_attribute("outputs:category") db_value = database.outputs.category
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleProducerPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundleProducerPyDatabase import OgnBundleProducerPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleProducerPy", "omni.graph.test.BundleProducerPy") }) database = OgnBundleProducerPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("outputs_bundle")) attribute = test_node.get_attribute("outputs_bundle") db_value = database.outputs.bundle
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestNanInf.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:a_colord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colord4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colord4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colord4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colord4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorh4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorh4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorh4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorh4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_double_inf', float("-Inf"), False], ['inputs:a_double_ninf', float("Inf"), False], ['inputs:a_double2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_double2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_double3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_double3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_double4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_double4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_double_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_double_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_double2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_double2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_double3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_double3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_double4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_double4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_float_inf', float("-Inf"), False], ['inputs:a_float_ninf', float("Inf"), False], ['inputs:a_float2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_float2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_float3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_float3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_float4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_float4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_float_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_float_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_float2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_float2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_float3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_float3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_float4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_float4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_frame4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_frame4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_frame4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_frame4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_half_inf', float("-Inf"), False], ['inputs:a_half_ninf', float("Inf"), False], ['inputs:a_half2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_half2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_half3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_half3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_half4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_half4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_half_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_half_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_half2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_half2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_half3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_half3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_half4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_half4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_matrixd2_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_matrixd2_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_matrixd3_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_matrixd3_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_matrixd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_matrixd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_matrixd2_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_matrixd2_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_matrixd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_matrixd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_matrixd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_matrixd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_normald3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_normald3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_normald3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_normald3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_normalf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_normalf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_normalf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_normalf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_normalh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_normalh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_normalh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_normalh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_pointd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_pointd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_pointd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_pointd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_pointf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_pointf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_pointf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_pointf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_pointh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_pointh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_pointh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_pointh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_quatd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_quatd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_quatd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_quatd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_quatf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_quatf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_quatf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_quatf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_quath4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_quath4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_quath4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_quath4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_texcoordd2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordd2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_texcoordd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_texcoordd2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordd2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_texcoordd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_texcoordf2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordf2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_texcoordf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_texcoordf2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordf2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_texcoordf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_texcoordh2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordh2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_texcoordh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_texcoordh2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordh2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_texcoordh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_timecode_inf', float("-Inf"), False], ['inputs:a_timecode_ninf', float("Inf"), False], ['inputs:a_timecode_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_timecode_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_vectord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_vectord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_vectord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_vectord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_vectorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_vectorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_vectorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_vectorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_vectorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_vectorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_vectorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_vectorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ], 'outputs': [ ['outputs:a_colord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colord4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colord4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colord4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colord4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorh4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorh4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorh4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorh4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_double_inf', float("-Inf"), False], ['outputs:a_double_ninf', float("Inf"), False], ['outputs:a_double2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_double2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_double3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_double3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_double4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_double4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_double_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_double_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_double2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_double2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_double3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_double3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_double4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_double4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_float_inf', float("-Inf"), False], ['outputs:a_float_ninf', float("Inf"), False], ['outputs:a_float2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_float2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_float3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_float3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_float4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_float4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_float_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_float_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_float2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_float2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_float3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_float3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_float4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_float4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_frame4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_frame4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_frame4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_frame4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_half_inf', float("-Inf"), False], ['outputs:a_half_ninf', float("Inf"), False], ['outputs:a_half2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_half2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_half3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_half3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_half4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_half4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_half_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_half_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_half2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_half2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_half3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_half3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_half4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_half4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_matrixd2_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_matrixd2_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_matrixd3_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_matrixd3_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_matrixd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_matrixd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_matrixd2_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_matrixd2_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_matrixd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_matrixd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_matrixd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_matrixd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_normald3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_normald3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_normald3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_normald3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_normalf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_normalf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_normalf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_normalf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_normalh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_normalh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_normalh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_normalh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_pointd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_pointd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_pointd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_pointd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_pointf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_pointf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_pointf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_pointf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_pointh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_pointh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_pointh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_pointh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_quatd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_quatd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_quatd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_quatd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_quatf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_quatf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_quatf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_quatf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_quath4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_quath4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_quath4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_quath4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_texcoordd2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordd2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_texcoordd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_texcoordd2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordd2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_texcoordd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_texcoordf2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordf2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_texcoordf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_texcoordf2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordf2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_texcoordf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_texcoordh2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordh2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_texcoordh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_texcoordh2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordh2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_texcoordh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_timecode_inf', float("-Inf"), False], ['outputs:a_timecode_ninf', float("Inf"), False], ['outputs:a_timecode_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_timecode_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_vectord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_vectord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_vectord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_vectord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_vectorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_vectorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_vectorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_vectorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_vectorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_vectorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_vectorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_vectorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestNanInf", "omni.graph.test.TestNanInf", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestNanInf User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestNanInf","omni.graph.test.TestNanInf", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestNanInf User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_TestNanInf", "omni.graph.test.TestNanInf", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.TestNanInf User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnTestNanInfDatabase import OgnTestNanInfDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestNanInf", "omni.graph.test.TestNanInf") }) database = OgnTestNanInfDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_inf")) attribute = test_node.get_attribute("inputs:a_colord3_array_inf") db_value = database.inputs.a_colord3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_nan")) attribute = test_node.get_attribute("inputs:a_colord3_array_nan") db_value = database.inputs.a_colord3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_ninf")) attribute = test_node.get_attribute("inputs:a_colord3_array_ninf") db_value = database.inputs.a_colord3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_snan")) attribute = test_node.get_attribute("inputs:a_colord3_array_snan") db_value = database.inputs.a_colord3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_inf")) attribute = test_node.get_attribute("inputs:a_colord3_inf") db_value = database.inputs.a_colord3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_nan")) attribute = test_node.get_attribute("inputs:a_colord3_nan") db_value = database.inputs.a_colord3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_ninf")) attribute = test_node.get_attribute("inputs:a_colord3_ninf") db_value = database.inputs.a_colord3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_snan")) attribute = test_node.get_attribute("inputs:a_colord3_snan") db_value = database.inputs.a_colord3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_inf")) attribute = test_node.get_attribute("inputs:a_colord4_array_inf") db_value = database.inputs.a_colord4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_nan")) attribute = test_node.get_attribute("inputs:a_colord4_array_nan") db_value = database.inputs.a_colord4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_ninf")) attribute = test_node.get_attribute("inputs:a_colord4_array_ninf") db_value = database.inputs.a_colord4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_snan")) attribute = test_node.get_attribute("inputs:a_colord4_array_snan") db_value = database.inputs.a_colord4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_inf")) attribute = test_node.get_attribute("inputs:a_colord4_inf") db_value = database.inputs.a_colord4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_nan")) attribute = test_node.get_attribute("inputs:a_colord4_nan") db_value = database.inputs.a_colord4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_ninf")) attribute = test_node.get_attribute("inputs:a_colord4_ninf") db_value = database.inputs.a_colord4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_snan")) attribute = test_node.get_attribute("inputs:a_colord4_snan") db_value = database.inputs.a_colord4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_inf")) attribute = test_node.get_attribute("inputs:a_colorf3_array_inf") db_value = database.inputs.a_colorf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_nan")) attribute = test_node.get_attribute("inputs:a_colorf3_array_nan") db_value = database.inputs.a_colorf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorf3_array_ninf") db_value = database.inputs.a_colorf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_snan")) attribute = test_node.get_attribute("inputs:a_colorf3_array_snan") db_value = database.inputs.a_colorf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_inf")) attribute = test_node.get_attribute("inputs:a_colorf3_inf") db_value = database.inputs.a_colorf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_nan")) attribute = test_node.get_attribute("inputs:a_colorf3_nan") db_value = database.inputs.a_colorf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_ninf")) attribute = test_node.get_attribute("inputs:a_colorf3_ninf") db_value = database.inputs.a_colorf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_snan")) attribute = test_node.get_attribute("inputs:a_colorf3_snan") db_value = database.inputs.a_colorf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_inf")) attribute = test_node.get_attribute("inputs:a_colorf4_array_inf") db_value = database.inputs.a_colorf4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_nan")) attribute = test_node.get_attribute("inputs:a_colorf4_array_nan") db_value = database.inputs.a_colorf4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorf4_array_ninf") db_value = database.inputs.a_colorf4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_snan")) attribute = test_node.get_attribute("inputs:a_colorf4_array_snan") db_value = database.inputs.a_colorf4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_inf")) attribute = test_node.get_attribute("inputs:a_colorf4_inf") db_value = database.inputs.a_colorf4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_nan")) attribute = test_node.get_attribute("inputs:a_colorf4_nan") db_value = database.inputs.a_colorf4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_ninf")) attribute = test_node.get_attribute("inputs:a_colorf4_ninf") db_value = database.inputs.a_colorf4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_snan")) attribute = test_node.get_attribute("inputs:a_colorf4_snan") db_value = database.inputs.a_colorf4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_inf")) attribute = test_node.get_attribute("inputs:a_colorh3_array_inf") db_value = database.inputs.a_colorh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_nan")) attribute = test_node.get_attribute("inputs:a_colorh3_array_nan") db_value = database.inputs.a_colorh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorh3_array_ninf") db_value = database.inputs.a_colorh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_snan")) attribute = test_node.get_attribute("inputs:a_colorh3_array_snan") db_value = database.inputs.a_colorh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_inf")) attribute = test_node.get_attribute("inputs:a_colorh3_inf") db_value = database.inputs.a_colorh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_nan")) attribute = test_node.get_attribute("inputs:a_colorh3_nan") db_value = database.inputs.a_colorh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_ninf")) attribute = test_node.get_attribute("inputs:a_colorh3_ninf") db_value = database.inputs.a_colorh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_snan")) attribute = test_node.get_attribute("inputs:a_colorh3_snan") db_value = database.inputs.a_colorh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_inf")) attribute = test_node.get_attribute("inputs:a_colorh4_array_inf") db_value = database.inputs.a_colorh4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_nan")) attribute = test_node.get_attribute("inputs:a_colorh4_array_nan") db_value = database.inputs.a_colorh4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorh4_array_ninf") db_value = database.inputs.a_colorh4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_snan")) attribute = test_node.get_attribute("inputs:a_colorh4_array_snan") db_value = database.inputs.a_colorh4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_inf")) attribute = test_node.get_attribute("inputs:a_colorh4_inf") db_value = database.inputs.a_colorh4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_nan")) attribute = test_node.get_attribute("inputs:a_colorh4_nan") db_value = database.inputs.a_colorh4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_ninf")) attribute = test_node.get_attribute("inputs:a_colorh4_ninf") db_value = database.inputs.a_colorh4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_snan")) attribute = test_node.get_attribute("inputs:a_colorh4_snan") db_value = database.inputs.a_colorh4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_inf")) attribute = test_node.get_attribute("inputs:a_double2_array_inf") db_value = database.inputs.a_double2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_nan")) attribute = test_node.get_attribute("inputs:a_double2_array_nan") db_value = database.inputs.a_double2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_ninf")) attribute = test_node.get_attribute("inputs:a_double2_array_ninf") db_value = database.inputs.a_double2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_snan")) attribute = test_node.get_attribute("inputs:a_double2_array_snan") db_value = database.inputs.a_double2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_inf")) attribute = test_node.get_attribute("inputs:a_double2_inf") db_value = database.inputs.a_double2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_nan")) attribute = test_node.get_attribute("inputs:a_double2_nan") db_value = database.inputs.a_double2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_ninf")) attribute = test_node.get_attribute("inputs:a_double2_ninf") db_value = database.inputs.a_double2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_snan")) attribute = test_node.get_attribute("inputs:a_double2_snan") db_value = database.inputs.a_double2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_inf")) attribute = test_node.get_attribute("inputs:a_double3_array_inf") db_value = database.inputs.a_double3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_nan")) attribute = test_node.get_attribute("inputs:a_double3_array_nan") db_value = database.inputs.a_double3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_ninf")) attribute = test_node.get_attribute("inputs:a_double3_array_ninf") db_value = database.inputs.a_double3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_snan")) attribute = test_node.get_attribute("inputs:a_double3_array_snan") db_value = database.inputs.a_double3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_inf")) attribute = test_node.get_attribute("inputs:a_double3_inf") db_value = database.inputs.a_double3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_nan")) attribute = test_node.get_attribute("inputs:a_double3_nan") db_value = database.inputs.a_double3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_ninf")) attribute = test_node.get_attribute("inputs:a_double3_ninf") db_value = database.inputs.a_double3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_snan")) attribute = test_node.get_attribute("inputs:a_double3_snan") db_value = database.inputs.a_double3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_inf")) attribute = test_node.get_attribute("inputs:a_double4_array_inf") db_value = database.inputs.a_double4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_nan")) attribute = test_node.get_attribute("inputs:a_double4_array_nan") db_value = database.inputs.a_double4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_ninf")) attribute = test_node.get_attribute("inputs:a_double4_array_ninf") db_value = database.inputs.a_double4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_snan")) attribute = test_node.get_attribute("inputs:a_double4_array_snan") db_value = database.inputs.a_double4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_inf")) attribute = test_node.get_attribute("inputs:a_double4_inf") db_value = database.inputs.a_double4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_nan")) attribute = test_node.get_attribute("inputs:a_double4_nan") db_value = database.inputs.a_double4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_ninf")) attribute = test_node.get_attribute("inputs:a_double4_ninf") db_value = database.inputs.a_double4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_snan")) attribute = test_node.get_attribute("inputs:a_double4_snan") db_value = database.inputs.a_double4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_inf")) attribute = test_node.get_attribute("inputs:a_double_array_inf") db_value = database.inputs.a_double_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_nan")) attribute = test_node.get_attribute("inputs:a_double_array_nan") db_value = database.inputs.a_double_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_ninf")) attribute = test_node.get_attribute("inputs:a_double_array_ninf") db_value = database.inputs.a_double_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_snan")) attribute = test_node.get_attribute("inputs:a_double_array_snan") db_value = database.inputs.a_double_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_inf")) attribute = test_node.get_attribute("inputs:a_double_inf") db_value = database.inputs.a_double_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_nan")) attribute = test_node.get_attribute("inputs:a_double_nan") db_value = database.inputs.a_double_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_ninf")) attribute = test_node.get_attribute("inputs:a_double_ninf") db_value = database.inputs.a_double_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_snan")) attribute = test_node.get_attribute("inputs:a_double_snan") db_value = database.inputs.a_double_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_inf")) attribute = test_node.get_attribute("inputs:a_float2_array_inf") db_value = database.inputs.a_float2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_nan")) attribute = test_node.get_attribute("inputs:a_float2_array_nan") db_value = database.inputs.a_float2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_ninf")) attribute = test_node.get_attribute("inputs:a_float2_array_ninf") db_value = database.inputs.a_float2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_snan")) attribute = test_node.get_attribute("inputs:a_float2_array_snan") db_value = database.inputs.a_float2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_inf")) attribute = test_node.get_attribute("inputs:a_float2_inf") db_value = database.inputs.a_float2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_nan")) attribute = test_node.get_attribute("inputs:a_float2_nan") db_value = database.inputs.a_float2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_ninf")) attribute = test_node.get_attribute("inputs:a_float2_ninf") db_value = database.inputs.a_float2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_snan")) attribute = test_node.get_attribute("inputs:a_float2_snan") db_value = database.inputs.a_float2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_inf")) attribute = test_node.get_attribute("inputs:a_float3_array_inf") db_value = database.inputs.a_float3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_nan")) attribute = test_node.get_attribute("inputs:a_float3_array_nan") db_value = database.inputs.a_float3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_ninf")) attribute = test_node.get_attribute("inputs:a_float3_array_ninf") db_value = database.inputs.a_float3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_snan")) attribute = test_node.get_attribute("inputs:a_float3_array_snan") db_value = database.inputs.a_float3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_inf")) attribute = test_node.get_attribute("inputs:a_float3_inf") db_value = database.inputs.a_float3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_nan")) attribute = test_node.get_attribute("inputs:a_float3_nan") db_value = database.inputs.a_float3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_ninf")) attribute = test_node.get_attribute("inputs:a_float3_ninf") db_value = database.inputs.a_float3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_snan")) attribute = test_node.get_attribute("inputs:a_float3_snan") db_value = database.inputs.a_float3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_inf")) attribute = test_node.get_attribute("inputs:a_float4_array_inf") db_value = database.inputs.a_float4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_nan")) attribute = test_node.get_attribute("inputs:a_float4_array_nan") db_value = database.inputs.a_float4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_ninf")) attribute = test_node.get_attribute("inputs:a_float4_array_ninf") db_value = database.inputs.a_float4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_snan")) attribute = test_node.get_attribute("inputs:a_float4_array_snan") db_value = database.inputs.a_float4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_inf")) attribute = test_node.get_attribute("inputs:a_float4_inf") db_value = database.inputs.a_float4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_nan")) attribute = test_node.get_attribute("inputs:a_float4_nan") db_value = database.inputs.a_float4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_ninf")) attribute = test_node.get_attribute("inputs:a_float4_ninf") db_value = database.inputs.a_float4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_snan")) attribute = test_node.get_attribute("inputs:a_float4_snan") db_value = database.inputs.a_float4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_inf")) attribute = test_node.get_attribute("inputs:a_float_array_inf") db_value = database.inputs.a_float_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_nan")) attribute = test_node.get_attribute("inputs:a_float_array_nan") db_value = database.inputs.a_float_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_ninf")) attribute = test_node.get_attribute("inputs:a_float_array_ninf") db_value = database.inputs.a_float_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_snan")) attribute = test_node.get_attribute("inputs:a_float_array_snan") db_value = database.inputs.a_float_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_inf")) attribute = test_node.get_attribute("inputs:a_float_inf") db_value = database.inputs.a_float_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_nan")) attribute = test_node.get_attribute("inputs:a_float_nan") db_value = database.inputs.a_float_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_ninf")) attribute = test_node.get_attribute("inputs:a_float_ninf") db_value = database.inputs.a_float_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_snan")) attribute = test_node.get_attribute("inputs:a_float_snan") db_value = database.inputs.a_float_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_inf")) attribute = test_node.get_attribute("inputs:a_frame4_array_inf") db_value = database.inputs.a_frame4_array_inf expected_value = [[[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_nan")) attribute = test_node.get_attribute("inputs:a_frame4_array_nan") db_value = database.inputs.a_frame4_array_nan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_ninf")) attribute = test_node.get_attribute("inputs:a_frame4_array_ninf") db_value = database.inputs.a_frame4_array_ninf expected_value = [[[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_snan")) attribute = test_node.get_attribute("inputs:a_frame4_array_snan") db_value = database.inputs.a_frame4_array_snan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_inf")) attribute = test_node.get_attribute("inputs:a_frame4_inf") db_value = database.inputs.a_frame4_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_nan")) attribute = test_node.get_attribute("inputs:a_frame4_nan") db_value = database.inputs.a_frame4_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_ninf")) attribute = test_node.get_attribute("inputs:a_frame4_ninf") db_value = database.inputs.a_frame4_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_snan")) attribute = test_node.get_attribute("inputs:a_frame4_snan") db_value = database.inputs.a_frame4_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_inf")) attribute = test_node.get_attribute("inputs:a_half2_array_inf") db_value = database.inputs.a_half2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_nan")) attribute = test_node.get_attribute("inputs:a_half2_array_nan") db_value = database.inputs.a_half2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_ninf")) attribute = test_node.get_attribute("inputs:a_half2_array_ninf") db_value = database.inputs.a_half2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_snan")) attribute = test_node.get_attribute("inputs:a_half2_array_snan") db_value = database.inputs.a_half2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_inf")) attribute = test_node.get_attribute("inputs:a_half2_inf") db_value = database.inputs.a_half2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_nan")) attribute = test_node.get_attribute("inputs:a_half2_nan") db_value = database.inputs.a_half2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_ninf")) attribute = test_node.get_attribute("inputs:a_half2_ninf") db_value = database.inputs.a_half2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_snan")) attribute = test_node.get_attribute("inputs:a_half2_snan") db_value = database.inputs.a_half2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_inf")) attribute = test_node.get_attribute("inputs:a_half3_array_inf") db_value = database.inputs.a_half3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_nan")) attribute = test_node.get_attribute("inputs:a_half3_array_nan") db_value = database.inputs.a_half3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_ninf")) attribute = test_node.get_attribute("inputs:a_half3_array_ninf") db_value = database.inputs.a_half3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_snan")) attribute = test_node.get_attribute("inputs:a_half3_array_snan") db_value = database.inputs.a_half3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_inf")) attribute = test_node.get_attribute("inputs:a_half3_inf") db_value = database.inputs.a_half3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_nan")) attribute = test_node.get_attribute("inputs:a_half3_nan") db_value = database.inputs.a_half3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_ninf")) attribute = test_node.get_attribute("inputs:a_half3_ninf") db_value = database.inputs.a_half3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_snan")) attribute = test_node.get_attribute("inputs:a_half3_snan") db_value = database.inputs.a_half3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_inf")) attribute = test_node.get_attribute("inputs:a_half4_array_inf") db_value = database.inputs.a_half4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_nan")) attribute = test_node.get_attribute("inputs:a_half4_array_nan") db_value = database.inputs.a_half4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_ninf")) attribute = test_node.get_attribute("inputs:a_half4_array_ninf") db_value = database.inputs.a_half4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_snan")) attribute = test_node.get_attribute("inputs:a_half4_array_snan") db_value = database.inputs.a_half4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_inf")) attribute = test_node.get_attribute("inputs:a_half4_inf") db_value = database.inputs.a_half4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_nan")) attribute = test_node.get_attribute("inputs:a_half4_nan") db_value = database.inputs.a_half4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_ninf")) attribute = test_node.get_attribute("inputs:a_half4_ninf") db_value = database.inputs.a_half4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_snan")) attribute = test_node.get_attribute("inputs:a_half4_snan") db_value = database.inputs.a_half4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_inf")) attribute = test_node.get_attribute("inputs:a_half_array_inf") db_value = database.inputs.a_half_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_nan")) attribute = test_node.get_attribute("inputs:a_half_array_nan") db_value = database.inputs.a_half_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_ninf")) attribute = test_node.get_attribute("inputs:a_half_array_ninf") db_value = database.inputs.a_half_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_snan")) attribute = test_node.get_attribute("inputs:a_half_array_snan") db_value = database.inputs.a_half_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_inf")) attribute = test_node.get_attribute("inputs:a_half_inf") db_value = database.inputs.a_half_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_nan")) attribute = test_node.get_attribute("inputs:a_half_nan") db_value = database.inputs.a_half_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_ninf")) attribute = test_node.get_attribute("inputs:a_half_ninf") db_value = database.inputs.a_half_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_snan")) attribute = test_node.get_attribute("inputs:a_half_snan") db_value = database.inputs.a_half_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_inf")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_inf") db_value = database.inputs.a_matrixd2_array_inf expected_value = [[[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_nan")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_nan") db_value = database.inputs.a_matrixd2_array_nan expected_value = [[[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]], [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_ninf") db_value = database.inputs.a_matrixd2_array_ninf expected_value = [[[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_snan")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_snan") db_value = database.inputs.a_matrixd2_array_snan expected_value = [[[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]], [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_inf")) attribute = test_node.get_attribute("inputs:a_matrixd2_inf") db_value = database.inputs.a_matrixd2_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_nan")) attribute = test_node.get_attribute("inputs:a_matrixd2_nan") db_value = database.inputs.a_matrixd2_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd2_ninf") db_value = database.inputs.a_matrixd2_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_snan")) attribute = test_node.get_attribute("inputs:a_matrixd2_snan") db_value = database.inputs.a_matrixd2_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_inf")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_inf") db_value = database.inputs.a_matrixd3_array_inf expected_value = [[[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_nan")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_nan") db_value = database.inputs.a_matrixd3_array_nan expected_value = [[[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_ninf") db_value = database.inputs.a_matrixd3_array_ninf expected_value = [[[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_snan")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_snan") db_value = database.inputs.a_matrixd3_array_snan expected_value = [[[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_inf")) attribute = test_node.get_attribute("inputs:a_matrixd3_inf") db_value = database.inputs.a_matrixd3_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_nan")) attribute = test_node.get_attribute("inputs:a_matrixd3_nan") db_value = database.inputs.a_matrixd3_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd3_ninf") db_value = database.inputs.a_matrixd3_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_snan")) attribute = test_node.get_attribute("inputs:a_matrixd3_snan") db_value = database.inputs.a_matrixd3_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_inf")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_inf") db_value = database.inputs.a_matrixd4_array_inf expected_value = [[[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_nan")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_nan") db_value = database.inputs.a_matrixd4_array_nan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_ninf") db_value = database.inputs.a_matrixd4_array_ninf expected_value = [[[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_snan")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_snan") db_value = database.inputs.a_matrixd4_array_snan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_inf")) attribute = test_node.get_attribute("inputs:a_matrixd4_inf") db_value = database.inputs.a_matrixd4_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_nan")) attribute = test_node.get_attribute("inputs:a_matrixd4_nan") db_value = database.inputs.a_matrixd4_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd4_ninf") db_value = database.inputs.a_matrixd4_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_snan")) attribute = test_node.get_attribute("inputs:a_matrixd4_snan") db_value = database.inputs.a_matrixd4_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_inf")) attribute = test_node.get_attribute("inputs:a_normald3_array_inf") db_value = database.inputs.a_normald3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_nan")) attribute = test_node.get_attribute("inputs:a_normald3_array_nan") db_value = database.inputs.a_normald3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_ninf")) attribute = test_node.get_attribute("inputs:a_normald3_array_ninf") db_value = database.inputs.a_normald3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_snan")) attribute = test_node.get_attribute("inputs:a_normald3_array_snan") db_value = database.inputs.a_normald3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_inf")) attribute = test_node.get_attribute("inputs:a_normald3_inf") db_value = database.inputs.a_normald3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_nan")) attribute = test_node.get_attribute("inputs:a_normald3_nan") db_value = database.inputs.a_normald3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_ninf")) attribute = test_node.get_attribute("inputs:a_normald3_ninf") db_value = database.inputs.a_normald3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_snan")) attribute = test_node.get_attribute("inputs:a_normald3_snan") db_value = database.inputs.a_normald3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_inf")) attribute = test_node.get_attribute("inputs:a_normalf3_array_inf") db_value = database.inputs.a_normalf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_nan")) attribute = test_node.get_attribute("inputs:a_normalf3_array_nan") db_value = database.inputs.a_normalf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_normalf3_array_ninf") db_value = database.inputs.a_normalf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_snan")) attribute = test_node.get_attribute("inputs:a_normalf3_array_snan") db_value = database.inputs.a_normalf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_inf")) attribute = test_node.get_attribute("inputs:a_normalf3_inf") db_value = database.inputs.a_normalf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_nan")) attribute = test_node.get_attribute("inputs:a_normalf3_nan") db_value = database.inputs.a_normalf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_ninf")) attribute = test_node.get_attribute("inputs:a_normalf3_ninf") db_value = database.inputs.a_normalf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_snan")) attribute = test_node.get_attribute("inputs:a_normalf3_snan") db_value = database.inputs.a_normalf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_inf")) attribute = test_node.get_attribute("inputs:a_normalh3_array_inf") db_value = database.inputs.a_normalh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_nan")) attribute = test_node.get_attribute("inputs:a_normalh3_array_nan") db_value = database.inputs.a_normalh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_normalh3_array_ninf") db_value = database.inputs.a_normalh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_snan")) attribute = test_node.get_attribute("inputs:a_normalh3_array_snan") db_value = database.inputs.a_normalh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_inf")) attribute = test_node.get_attribute("inputs:a_normalh3_inf") db_value = database.inputs.a_normalh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_nan")) attribute = test_node.get_attribute("inputs:a_normalh3_nan") db_value = database.inputs.a_normalh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_ninf")) attribute = test_node.get_attribute("inputs:a_normalh3_ninf") db_value = database.inputs.a_normalh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_snan")) attribute = test_node.get_attribute("inputs:a_normalh3_snan") db_value = database.inputs.a_normalh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_inf")) attribute = test_node.get_attribute("inputs:a_pointd3_array_inf") db_value = database.inputs.a_pointd3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_nan")) attribute = test_node.get_attribute("inputs:a_pointd3_array_nan") db_value = database.inputs.a_pointd3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_ninf")) attribute = test_node.get_attribute("inputs:a_pointd3_array_ninf") db_value = database.inputs.a_pointd3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_snan")) attribute = test_node.get_attribute("inputs:a_pointd3_array_snan") db_value = database.inputs.a_pointd3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_inf")) attribute = test_node.get_attribute("inputs:a_pointd3_inf") db_value = database.inputs.a_pointd3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_nan")) attribute = test_node.get_attribute("inputs:a_pointd3_nan") db_value = database.inputs.a_pointd3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_ninf")) attribute = test_node.get_attribute("inputs:a_pointd3_ninf") db_value = database.inputs.a_pointd3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_snan")) attribute = test_node.get_attribute("inputs:a_pointd3_snan") db_value = database.inputs.a_pointd3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_inf")) attribute = test_node.get_attribute("inputs:a_pointf3_array_inf") db_value = database.inputs.a_pointf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_nan")) attribute = test_node.get_attribute("inputs:a_pointf3_array_nan") db_value = database.inputs.a_pointf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_pointf3_array_ninf") db_value = database.inputs.a_pointf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_snan")) attribute = test_node.get_attribute("inputs:a_pointf3_array_snan") db_value = database.inputs.a_pointf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_inf")) attribute = test_node.get_attribute("inputs:a_pointf3_inf") db_value = database.inputs.a_pointf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_nan")) attribute = test_node.get_attribute("inputs:a_pointf3_nan") db_value = database.inputs.a_pointf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_ninf")) attribute = test_node.get_attribute("inputs:a_pointf3_ninf") db_value = database.inputs.a_pointf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_snan")) attribute = test_node.get_attribute("inputs:a_pointf3_snan") db_value = database.inputs.a_pointf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_inf")) attribute = test_node.get_attribute("inputs:a_pointh3_array_inf") db_value = database.inputs.a_pointh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_nan")) attribute = test_node.get_attribute("inputs:a_pointh3_array_nan") db_value = database.inputs.a_pointh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_pointh3_array_ninf") db_value = database.inputs.a_pointh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_snan")) attribute = test_node.get_attribute("inputs:a_pointh3_array_snan") db_value = database.inputs.a_pointh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_inf")) attribute = test_node.get_attribute("inputs:a_pointh3_inf") db_value = database.inputs.a_pointh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_nan")) attribute = test_node.get_attribute("inputs:a_pointh3_nan") db_value = database.inputs.a_pointh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_ninf")) attribute = test_node.get_attribute("inputs:a_pointh3_ninf") db_value = database.inputs.a_pointh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_snan")) attribute = test_node.get_attribute("inputs:a_pointh3_snan") db_value = database.inputs.a_pointh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_inf")) attribute = test_node.get_attribute("inputs:a_quatd4_array_inf") db_value = database.inputs.a_quatd4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_nan")) attribute = test_node.get_attribute("inputs:a_quatd4_array_nan") db_value = database.inputs.a_quatd4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_ninf")) attribute = test_node.get_attribute("inputs:a_quatd4_array_ninf") db_value = database.inputs.a_quatd4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_snan")) attribute = test_node.get_attribute("inputs:a_quatd4_array_snan") db_value = database.inputs.a_quatd4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_inf")) attribute = test_node.get_attribute("inputs:a_quatd4_inf") db_value = database.inputs.a_quatd4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_nan")) attribute = test_node.get_attribute("inputs:a_quatd4_nan") db_value = database.inputs.a_quatd4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_ninf")) attribute = test_node.get_attribute("inputs:a_quatd4_ninf") db_value = database.inputs.a_quatd4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_snan")) attribute = test_node.get_attribute("inputs:a_quatd4_snan") db_value = database.inputs.a_quatd4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_inf")) attribute = test_node.get_attribute("inputs:a_quatf4_array_inf") db_value = database.inputs.a_quatf4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_nan")) attribute = test_node.get_attribute("inputs:a_quatf4_array_nan") db_value = database.inputs.a_quatf4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_ninf")) attribute = test_node.get_attribute("inputs:a_quatf4_array_ninf") db_value = database.inputs.a_quatf4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_snan")) attribute = test_node.get_attribute("inputs:a_quatf4_array_snan") db_value = database.inputs.a_quatf4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_inf")) attribute = test_node.get_attribute("inputs:a_quatf4_inf") db_value = database.inputs.a_quatf4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_nan")) attribute = test_node.get_attribute("inputs:a_quatf4_nan") db_value = database.inputs.a_quatf4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_ninf")) attribute = test_node.get_attribute("inputs:a_quatf4_ninf") db_value = database.inputs.a_quatf4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_snan")) attribute = test_node.get_attribute("inputs:a_quatf4_snan") db_value = database.inputs.a_quatf4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_inf")) attribute = test_node.get_attribute("inputs:a_quath4_array_inf") db_value = database.inputs.a_quath4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_nan")) attribute = test_node.get_attribute("inputs:a_quath4_array_nan") db_value = database.inputs.a_quath4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_ninf")) attribute = test_node.get_attribute("inputs:a_quath4_array_ninf") db_value = database.inputs.a_quath4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_snan")) attribute = test_node.get_attribute("inputs:a_quath4_array_snan") db_value = database.inputs.a_quath4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_inf")) attribute = test_node.get_attribute("inputs:a_quath4_inf") db_value = database.inputs.a_quath4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_nan")) attribute = test_node.get_attribute("inputs:a_quath4_nan") db_value = database.inputs.a_quath4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_ninf")) attribute = test_node.get_attribute("inputs:a_quath4_ninf") db_value = database.inputs.a_quath4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_snan")) attribute = test_node.get_attribute("inputs:a_quath4_snan") db_value = database.inputs.a_quath4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_inf") db_value = database.inputs.a_texcoordd2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_nan") db_value = database.inputs.a_texcoordd2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_ninf") db_value = database.inputs.a_texcoordd2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_snan") db_value = database.inputs.a_texcoordd2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_inf") db_value = database.inputs.a_texcoordd2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_nan") db_value = database.inputs.a_texcoordd2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_ninf") db_value = database.inputs.a_texcoordd2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_snan") db_value = database.inputs.a_texcoordd2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_inf") db_value = database.inputs.a_texcoordd3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_nan") db_value = database.inputs.a_texcoordd3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_ninf") db_value = database.inputs.a_texcoordd3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_snan") db_value = database.inputs.a_texcoordd3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_inf") db_value = database.inputs.a_texcoordd3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_nan") db_value = database.inputs.a_texcoordd3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_ninf") db_value = database.inputs.a_texcoordd3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_snan") db_value = database.inputs.a_texcoordd3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_inf") db_value = database.inputs.a_texcoordf2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_nan") db_value = database.inputs.a_texcoordf2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_ninf") db_value = database.inputs.a_texcoordf2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_snan") db_value = database.inputs.a_texcoordf2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_inf") db_value = database.inputs.a_texcoordf2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_nan") db_value = database.inputs.a_texcoordf2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_ninf") db_value = database.inputs.a_texcoordf2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_snan") db_value = database.inputs.a_texcoordf2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_inf") db_value = database.inputs.a_texcoordf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_nan") db_value = database.inputs.a_texcoordf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_ninf") db_value = database.inputs.a_texcoordf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_snan") db_value = database.inputs.a_texcoordf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_inf") db_value = database.inputs.a_texcoordf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_nan") db_value = database.inputs.a_texcoordf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_ninf") db_value = database.inputs.a_texcoordf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_snan") db_value = database.inputs.a_texcoordf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_inf") db_value = database.inputs.a_texcoordh2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_nan") db_value = database.inputs.a_texcoordh2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_ninf") db_value = database.inputs.a_texcoordh2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_snan") db_value = database.inputs.a_texcoordh2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_inf") db_value = database.inputs.a_texcoordh2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_nan") db_value = database.inputs.a_texcoordh2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_ninf") db_value = database.inputs.a_texcoordh2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_snan") db_value = database.inputs.a_texcoordh2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_inf") db_value = database.inputs.a_texcoordh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_nan") db_value = database.inputs.a_texcoordh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_ninf") db_value = database.inputs.a_texcoordh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_snan") db_value = database.inputs.a_texcoordh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_inf") db_value = database.inputs.a_texcoordh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_nan") db_value = database.inputs.a_texcoordh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_ninf") db_value = database.inputs.a_texcoordh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_snan") db_value = database.inputs.a_texcoordh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_inf")) attribute = test_node.get_attribute("inputs:a_timecode_array_inf") db_value = database.inputs.a_timecode_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_nan")) attribute = test_node.get_attribute("inputs:a_timecode_array_nan") db_value = database.inputs.a_timecode_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_ninf")) attribute = test_node.get_attribute("inputs:a_timecode_array_ninf") db_value = database.inputs.a_timecode_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_snan")) attribute = test_node.get_attribute("inputs:a_timecode_array_snan") db_value = database.inputs.a_timecode_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_inf")) attribute = test_node.get_attribute("inputs:a_timecode_inf") db_value = database.inputs.a_timecode_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_nan")) attribute = test_node.get_attribute("inputs:a_timecode_nan") db_value = database.inputs.a_timecode_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_ninf")) attribute = test_node.get_attribute("inputs:a_timecode_ninf") db_value = database.inputs.a_timecode_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_snan")) attribute = test_node.get_attribute("inputs:a_timecode_snan") db_value = database.inputs.a_timecode_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_inf")) attribute = test_node.get_attribute("inputs:a_vectord3_array_inf") db_value = database.inputs.a_vectord3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_nan")) attribute = test_node.get_attribute("inputs:a_vectord3_array_nan") db_value = database.inputs.a_vectord3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_ninf")) attribute = test_node.get_attribute("inputs:a_vectord3_array_ninf") db_value = database.inputs.a_vectord3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_snan")) attribute = test_node.get_attribute("inputs:a_vectord3_array_snan") db_value = database.inputs.a_vectord3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_inf")) attribute = test_node.get_attribute("inputs:a_vectord3_inf") db_value = database.inputs.a_vectord3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_nan")) attribute = test_node.get_attribute("inputs:a_vectord3_nan") db_value = database.inputs.a_vectord3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_ninf")) attribute = test_node.get_attribute("inputs:a_vectord3_ninf") db_value = database.inputs.a_vectord3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_snan")) attribute = test_node.get_attribute("inputs:a_vectord3_snan") db_value = database.inputs.a_vectord3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_inf")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_inf") db_value = database.inputs.a_vectorf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_nan")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_nan") db_value = database.inputs.a_vectorf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_ninf") db_value = database.inputs.a_vectorf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_snan")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_snan") db_value = database.inputs.a_vectorf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_inf")) attribute = test_node.get_attribute("inputs:a_vectorf3_inf") db_value = database.inputs.a_vectorf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_nan")) attribute = test_node.get_attribute("inputs:a_vectorf3_nan") db_value = database.inputs.a_vectorf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_ninf")) attribute = test_node.get_attribute("inputs:a_vectorf3_ninf") db_value = database.inputs.a_vectorf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_snan")) attribute = test_node.get_attribute("inputs:a_vectorf3_snan") db_value = database.inputs.a_vectorf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_inf")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_inf") db_value = database.inputs.a_vectorh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_nan")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_nan") db_value = database.inputs.a_vectorh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_ninf") db_value = database.inputs.a_vectorh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_snan")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_snan") db_value = database.inputs.a_vectorh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_inf")) attribute = test_node.get_attribute("inputs:a_vectorh3_inf") db_value = database.inputs.a_vectorh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_nan")) attribute = test_node.get_attribute("inputs:a_vectorh3_nan") db_value = database.inputs.a_vectorh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_ninf")) attribute = test_node.get_attribute("inputs:a_vectorh3_ninf") db_value = database.inputs.a_vectorh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_snan")) attribute = test_node.get_attribute("inputs:a_vectorh3_snan") db_value = database.inputs.a_vectorh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_inf")) attribute = test_node.get_attribute("outputs:a_colord3_array_inf") db_value = database.outputs.a_colord3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_nan")) attribute = test_node.get_attribute("outputs:a_colord3_array_nan") db_value = database.outputs.a_colord3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_ninf")) attribute = test_node.get_attribute("outputs:a_colord3_array_ninf") db_value = database.outputs.a_colord3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_snan")) attribute = test_node.get_attribute("outputs:a_colord3_array_snan") db_value = database.outputs.a_colord3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_inf")) attribute = test_node.get_attribute("outputs:a_colord3_inf") db_value = database.outputs.a_colord3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_nan")) attribute = test_node.get_attribute("outputs:a_colord3_nan") db_value = database.outputs.a_colord3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_ninf")) attribute = test_node.get_attribute("outputs:a_colord3_ninf") db_value = database.outputs.a_colord3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_snan")) attribute = test_node.get_attribute("outputs:a_colord3_snan") db_value = database.outputs.a_colord3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_inf")) attribute = test_node.get_attribute("outputs:a_colord4_array_inf") db_value = database.outputs.a_colord4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_nan")) attribute = test_node.get_attribute("outputs:a_colord4_array_nan") db_value = database.outputs.a_colord4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_ninf")) attribute = test_node.get_attribute("outputs:a_colord4_array_ninf") db_value = database.outputs.a_colord4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_snan")) attribute = test_node.get_attribute("outputs:a_colord4_array_snan") db_value = database.outputs.a_colord4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_inf")) attribute = test_node.get_attribute("outputs:a_colord4_inf") db_value = database.outputs.a_colord4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_nan")) attribute = test_node.get_attribute("outputs:a_colord4_nan") db_value = database.outputs.a_colord4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_ninf")) attribute = test_node.get_attribute("outputs:a_colord4_ninf") db_value = database.outputs.a_colord4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_snan")) attribute = test_node.get_attribute("outputs:a_colord4_snan") db_value = database.outputs.a_colord4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_inf")) attribute = test_node.get_attribute("outputs:a_colorf3_array_inf") db_value = database.outputs.a_colorf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_nan")) attribute = test_node.get_attribute("outputs:a_colorf3_array_nan") db_value = database.outputs.a_colorf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorf3_array_ninf") db_value = database.outputs.a_colorf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_snan")) attribute = test_node.get_attribute("outputs:a_colorf3_array_snan") db_value = database.outputs.a_colorf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_inf")) attribute = test_node.get_attribute("outputs:a_colorf3_inf") db_value = database.outputs.a_colorf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_nan")) attribute = test_node.get_attribute("outputs:a_colorf3_nan") db_value = database.outputs.a_colorf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_ninf")) attribute = test_node.get_attribute("outputs:a_colorf3_ninf") db_value = database.outputs.a_colorf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_snan")) attribute = test_node.get_attribute("outputs:a_colorf3_snan") db_value = database.outputs.a_colorf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_inf")) attribute = test_node.get_attribute("outputs:a_colorf4_array_inf") db_value = database.outputs.a_colorf4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_nan")) attribute = test_node.get_attribute("outputs:a_colorf4_array_nan") db_value = database.outputs.a_colorf4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorf4_array_ninf") db_value = database.outputs.a_colorf4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_snan")) attribute = test_node.get_attribute("outputs:a_colorf4_array_snan") db_value = database.outputs.a_colorf4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_inf")) attribute = test_node.get_attribute("outputs:a_colorf4_inf") db_value = database.outputs.a_colorf4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_nan")) attribute = test_node.get_attribute("outputs:a_colorf4_nan") db_value = database.outputs.a_colorf4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_ninf")) attribute = test_node.get_attribute("outputs:a_colorf4_ninf") db_value = database.outputs.a_colorf4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_snan")) attribute = test_node.get_attribute("outputs:a_colorf4_snan") db_value = database.outputs.a_colorf4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_inf")) attribute = test_node.get_attribute("outputs:a_colorh3_array_inf") db_value = database.outputs.a_colorh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_nan")) attribute = test_node.get_attribute("outputs:a_colorh3_array_nan") db_value = database.outputs.a_colorh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorh3_array_ninf") db_value = database.outputs.a_colorh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_snan")) attribute = test_node.get_attribute("outputs:a_colorh3_array_snan") db_value = database.outputs.a_colorh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_inf")) attribute = test_node.get_attribute("outputs:a_colorh3_inf") db_value = database.outputs.a_colorh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_nan")) attribute = test_node.get_attribute("outputs:a_colorh3_nan") db_value = database.outputs.a_colorh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_ninf")) attribute = test_node.get_attribute("outputs:a_colorh3_ninf") db_value = database.outputs.a_colorh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_snan")) attribute = test_node.get_attribute("outputs:a_colorh3_snan") db_value = database.outputs.a_colorh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_inf")) attribute = test_node.get_attribute("outputs:a_colorh4_array_inf") db_value = database.outputs.a_colorh4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_nan")) attribute = test_node.get_attribute("outputs:a_colorh4_array_nan") db_value = database.outputs.a_colorh4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorh4_array_ninf") db_value = database.outputs.a_colorh4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_snan")) attribute = test_node.get_attribute("outputs:a_colorh4_array_snan") db_value = database.outputs.a_colorh4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_inf")) attribute = test_node.get_attribute("outputs:a_colorh4_inf") db_value = database.outputs.a_colorh4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_nan")) attribute = test_node.get_attribute("outputs:a_colorh4_nan") db_value = database.outputs.a_colorh4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_ninf")) attribute = test_node.get_attribute("outputs:a_colorh4_ninf") db_value = database.outputs.a_colorh4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_snan")) attribute = test_node.get_attribute("outputs:a_colorh4_snan") db_value = database.outputs.a_colorh4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_inf")) attribute = test_node.get_attribute("outputs:a_double2_array_inf") db_value = database.outputs.a_double2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_nan")) attribute = test_node.get_attribute("outputs:a_double2_array_nan") db_value = database.outputs.a_double2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_ninf")) attribute = test_node.get_attribute("outputs:a_double2_array_ninf") db_value = database.outputs.a_double2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_snan")) attribute = test_node.get_attribute("outputs:a_double2_array_snan") db_value = database.outputs.a_double2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_inf")) attribute = test_node.get_attribute("outputs:a_double2_inf") db_value = database.outputs.a_double2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_nan")) attribute = test_node.get_attribute("outputs:a_double2_nan") db_value = database.outputs.a_double2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_ninf")) attribute = test_node.get_attribute("outputs:a_double2_ninf") db_value = database.outputs.a_double2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_snan")) attribute = test_node.get_attribute("outputs:a_double2_snan") db_value = database.outputs.a_double2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_inf")) attribute = test_node.get_attribute("outputs:a_double3_array_inf") db_value = database.outputs.a_double3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_nan")) attribute = test_node.get_attribute("outputs:a_double3_array_nan") db_value = database.outputs.a_double3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_ninf")) attribute = test_node.get_attribute("outputs:a_double3_array_ninf") db_value = database.outputs.a_double3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_snan")) attribute = test_node.get_attribute("outputs:a_double3_array_snan") db_value = database.outputs.a_double3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_inf")) attribute = test_node.get_attribute("outputs:a_double3_inf") db_value = database.outputs.a_double3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_nan")) attribute = test_node.get_attribute("outputs:a_double3_nan") db_value = database.outputs.a_double3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_ninf")) attribute = test_node.get_attribute("outputs:a_double3_ninf") db_value = database.outputs.a_double3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_snan")) attribute = test_node.get_attribute("outputs:a_double3_snan") db_value = database.outputs.a_double3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_inf")) attribute = test_node.get_attribute("outputs:a_double4_array_inf") db_value = database.outputs.a_double4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_nan")) attribute = test_node.get_attribute("outputs:a_double4_array_nan") db_value = database.outputs.a_double4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_ninf")) attribute = test_node.get_attribute("outputs:a_double4_array_ninf") db_value = database.outputs.a_double4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_snan")) attribute = test_node.get_attribute("outputs:a_double4_array_snan") db_value = database.outputs.a_double4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_inf")) attribute = test_node.get_attribute("outputs:a_double4_inf") db_value = database.outputs.a_double4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_nan")) attribute = test_node.get_attribute("outputs:a_double4_nan") db_value = database.outputs.a_double4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_ninf")) attribute = test_node.get_attribute("outputs:a_double4_ninf") db_value = database.outputs.a_double4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_snan")) attribute = test_node.get_attribute("outputs:a_double4_snan") db_value = database.outputs.a_double4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_inf")) attribute = test_node.get_attribute("outputs:a_double_array_inf") db_value = database.outputs.a_double_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_nan")) attribute = test_node.get_attribute("outputs:a_double_array_nan") db_value = database.outputs.a_double_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_ninf")) attribute = test_node.get_attribute("outputs:a_double_array_ninf") db_value = database.outputs.a_double_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_snan")) attribute = test_node.get_attribute("outputs:a_double_array_snan") db_value = database.outputs.a_double_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_inf")) attribute = test_node.get_attribute("outputs:a_double_inf") db_value = database.outputs.a_double_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_nan")) attribute = test_node.get_attribute("outputs:a_double_nan") db_value = database.outputs.a_double_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_ninf")) attribute = test_node.get_attribute("outputs:a_double_ninf") db_value = database.outputs.a_double_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_snan")) attribute = test_node.get_attribute("outputs:a_double_snan") db_value = database.outputs.a_double_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_inf")) attribute = test_node.get_attribute("outputs:a_float2_array_inf") db_value = database.outputs.a_float2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_nan")) attribute = test_node.get_attribute("outputs:a_float2_array_nan") db_value = database.outputs.a_float2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_ninf")) attribute = test_node.get_attribute("outputs:a_float2_array_ninf") db_value = database.outputs.a_float2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_snan")) attribute = test_node.get_attribute("outputs:a_float2_array_snan") db_value = database.outputs.a_float2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_inf")) attribute = test_node.get_attribute("outputs:a_float2_inf") db_value = database.outputs.a_float2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_nan")) attribute = test_node.get_attribute("outputs:a_float2_nan") db_value = database.outputs.a_float2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_ninf")) attribute = test_node.get_attribute("outputs:a_float2_ninf") db_value = database.outputs.a_float2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_snan")) attribute = test_node.get_attribute("outputs:a_float2_snan") db_value = database.outputs.a_float2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_inf")) attribute = test_node.get_attribute("outputs:a_float3_array_inf") db_value = database.outputs.a_float3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_nan")) attribute = test_node.get_attribute("outputs:a_float3_array_nan") db_value = database.outputs.a_float3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_ninf")) attribute = test_node.get_attribute("outputs:a_float3_array_ninf") db_value = database.outputs.a_float3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_snan")) attribute = test_node.get_attribute("outputs:a_float3_array_snan") db_value = database.outputs.a_float3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_inf")) attribute = test_node.get_attribute("outputs:a_float3_inf") db_value = database.outputs.a_float3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_nan")) attribute = test_node.get_attribute("outputs:a_float3_nan") db_value = database.outputs.a_float3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_ninf")) attribute = test_node.get_attribute("outputs:a_float3_ninf") db_value = database.outputs.a_float3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_snan")) attribute = test_node.get_attribute("outputs:a_float3_snan") db_value = database.outputs.a_float3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_inf")) attribute = test_node.get_attribute("outputs:a_float4_array_inf") db_value = database.outputs.a_float4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_nan")) attribute = test_node.get_attribute("outputs:a_float4_array_nan") db_value = database.outputs.a_float4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_ninf")) attribute = test_node.get_attribute("outputs:a_float4_array_ninf") db_value = database.outputs.a_float4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_snan")) attribute = test_node.get_attribute("outputs:a_float4_array_snan") db_value = database.outputs.a_float4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_inf")) attribute = test_node.get_attribute("outputs:a_float4_inf") db_value = database.outputs.a_float4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_nan")) attribute = test_node.get_attribute("outputs:a_float4_nan") db_value = database.outputs.a_float4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_ninf")) attribute = test_node.get_attribute("outputs:a_float4_ninf") db_value = database.outputs.a_float4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_snan")) attribute = test_node.get_attribute("outputs:a_float4_snan") db_value = database.outputs.a_float4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_inf")) attribute = test_node.get_attribute("outputs:a_float_array_inf") db_value = database.outputs.a_float_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_nan")) attribute = test_node.get_attribute("outputs:a_float_array_nan") db_value = database.outputs.a_float_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_ninf")) attribute = test_node.get_attribute("outputs:a_float_array_ninf") db_value = database.outputs.a_float_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_snan")) attribute = test_node.get_attribute("outputs:a_float_array_snan") db_value = database.outputs.a_float_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_inf")) attribute = test_node.get_attribute("outputs:a_float_inf") db_value = database.outputs.a_float_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_nan")) attribute = test_node.get_attribute("outputs:a_float_nan") db_value = database.outputs.a_float_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_ninf")) attribute = test_node.get_attribute("outputs:a_float_ninf") db_value = database.outputs.a_float_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_snan")) attribute = test_node.get_attribute("outputs:a_float_snan") db_value = database.outputs.a_float_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_inf")) attribute = test_node.get_attribute("outputs:a_frame4_array_inf") db_value = database.outputs.a_frame4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_nan")) attribute = test_node.get_attribute("outputs:a_frame4_array_nan") db_value = database.outputs.a_frame4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_ninf")) attribute = test_node.get_attribute("outputs:a_frame4_array_ninf") db_value = database.outputs.a_frame4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_snan")) attribute = test_node.get_attribute("outputs:a_frame4_array_snan") db_value = database.outputs.a_frame4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_inf")) attribute = test_node.get_attribute("outputs:a_frame4_inf") db_value = database.outputs.a_frame4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_nan")) attribute = test_node.get_attribute("outputs:a_frame4_nan") db_value = database.outputs.a_frame4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_ninf")) attribute = test_node.get_attribute("outputs:a_frame4_ninf") db_value = database.outputs.a_frame4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_snan")) attribute = test_node.get_attribute("outputs:a_frame4_snan") db_value = database.outputs.a_frame4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_inf")) attribute = test_node.get_attribute("outputs:a_half2_array_inf") db_value = database.outputs.a_half2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_nan")) attribute = test_node.get_attribute("outputs:a_half2_array_nan") db_value = database.outputs.a_half2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_ninf")) attribute = test_node.get_attribute("outputs:a_half2_array_ninf") db_value = database.outputs.a_half2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_snan")) attribute = test_node.get_attribute("outputs:a_half2_array_snan") db_value = database.outputs.a_half2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_inf")) attribute = test_node.get_attribute("outputs:a_half2_inf") db_value = database.outputs.a_half2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_nan")) attribute = test_node.get_attribute("outputs:a_half2_nan") db_value = database.outputs.a_half2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_ninf")) attribute = test_node.get_attribute("outputs:a_half2_ninf") db_value = database.outputs.a_half2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_snan")) attribute = test_node.get_attribute("outputs:a_half2_snan") db_value = database.outputs.a_half2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_inf")) attribute = test_node.get_attribute("outputs:a_half3_array_inf") db_value = database.outputs.a_half3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_nan")) attribute = test_node.get_attribute("outputs:a_half3_array_nan") db_value = database.outputs.a_half3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_ninf")) attribute = test_node.get_attribute("outputs:a_half3_array_ninf") db_value = database.outputs.a_half3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_snan")) attribute = test_node.get_attribute("outputs:a_half3_array_snan") db_value = database.outputs.a_half3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_inf")) attribute = test_node.get_attribute("outputs:a_half3_inf") db_value = database.outputs.a_half3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_nan")) attribute = test_node.get_attribute("outputs:a_half3_nan") db_value = database.outputs.a_half3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_ninf")) attribute = test_node.get_attribute("outputs:a_half3_ninf") db_value = database.outputs.a_half3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_snan")) attribute = test_node.get_attribute("outputs:a_half3_snan") db_value = database.outputs.a_half3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_inf")) attribute = test_node.get_attribute("outputs:a_half4_array_inf") db_value = database.outputs.a_half4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_nan")) attribute = test_node.get_attribute("outputs:a_half4_array_nan") db_value = database.outputs.a_half4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_ninf")) attribute = test_node.get_attribute("outputs:a_half4_array_ninf") db_value = database.outputs.a_half4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_snan")) attribute = test_node.get_attribute("outputs:a_half4_array_snan") db_value = database.outputs.a_half4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_inf")) attribute = test_node.get_attribute("outputs:a_half4_inf") db_value = database.outputs.a_half4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_nan")) attribute = test_node.get_attribute("outputs:a_half4_nan") db_value = database.outputs.a_half4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_ninf")) attribute = test_node.get_attribute("outputs:a_half4_ninf") db_value = database.outputs.a_half4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_snan")) attribute = test_node.get_attribute("outputs:a_half4_snan") db_value = database.outputs.a_half4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_inf")) attribute = test_node.get_attribute("outputs:a_half_array_inf") db_value = database.outputs.a_half_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_nan")) attribute = test_node.get_attribute("outputs:a_half_array_nan") db_value = database.outputs.a_half_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_ninf")) attribute = test_node.get_attribute("outputs:a_half_array_ninf") db_value = database.outputs.a_half_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_snan")) attribute = test_node.get_attribute("outputs:a_half_array_snan") db_value = database.outputs.a_half_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_inf")) attribute = test_node.get_attribute("outputs:a_half_inf") db_value = database.outputs.a_half_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_nan")) attribute = test_node.get_attribute("outputs:a_half_nan") db_value = database.outputs.a_half_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_ninf")) attribute = test_node.get_attribute("outputs:a_half_ninf") db_value = database.outputs.a_half_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_snan")) attribute = test_node.get_attribute("outputs:a_half_snan") db_value = database.outputs.a_half_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_inf")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_inf") db_value = database.outputs.a_matrixd2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_nan")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_nan") db_value = database.outputs.a_matrixd2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_ninf") db_value = database.outputs.a_matrixd2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_snan")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_snan") db_value = database.outputs.a_matrixd2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_inf")) attribute = test_node.get_attribute("outputs:a_matrixd2_inf") db_value = database.outputs.a_matrixd2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_nan")) attribute = test_node.get_attribute("outputs:a_matrixd2_nan") db_value = database.outputs.a_matrixd2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd2_ninf") db_value = database.outputs.a_matrixd2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_snan")) attribute = test_node.get_attribute("outputs:a_matrixd2_snan") db_value = database.outputs.a_matrixd2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_inf")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_inf") db_value = database.outputs.a_matrixd3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_nan")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_nan") db_value = database.outputs.a_matrixd3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_ninf") db_value = database.outputs.a_matrixd3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_snan")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_snan") db_value = database.outputs.a_matrixd3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_inf")) attribute = test_node.get_attribute("outputs:a_matrixd3_inf") db_value = database.outputs.a_matrixd3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_nan")) attribute = test_node.get_attribute("outputs:a_matrixd3_nan") db_value = database.outputs.a_matrixd3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd3_ninf") db_value = database.outputs.a_matrixd3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_snan")) attribute = test_node.get_attribute("outputs:a_matrixd3_snan") db_value = database.outputs.a_matrixd3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_inf")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_inf") db_value = database.outputs.a_matrixd4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_nan")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_nan") db_value = database.outputs.a_matrixd4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_ninf") db_value = database.outputs.a_matrixd4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_snan")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_snan") db_value = database.outputs.a_matrixd4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_inf")) attribute = test_node.get_attribute("outputs:a_matrixd4_inf") db_value = database.outputs.a_matrixd4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_nan")) attribute = test_node.get_attribute("outputs:a_matrixd4_nan") db_value = database.outputs.a_matrixd4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd4_ninf") db_value = database.outputs.a_matrixd4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_snan")) attribute = test_node.get_attribute("outputs:a_matrixd4_snan") db_value = database.outputs.a_matrixd4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_inf")) attribute = test_node.get_attribute("outputs:a_normald3_array_inf") db_value = database.outputs.a_normald3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_nan")) attribute = test_node.get_attribute("outputs:a_normald3_array_nan") db_value = database.outputs.a_normald3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_ninf")) attribute = test_node.get_attribute("outputs:a_normald3_array_ninf") db_value = database.outputs.a_normald3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_snan")) attribute = test_node.get_attribute("outputs:a_normald3_array_snan") db_value = database.outputs.a_normald3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_inf")) attribute = test_node.get_attribute("outputs:a_normald3_inf") db_value = database.outputs.a_normald3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_nan")) attribute = test_node.get_attribute("outputs:a_normald3_nan") db_value = database.outputs.a_normald3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_ninf")) attribute = test_node.get_attribute("outputs:a_normald3_ninf") db_value = database.outputs.a_normald3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_snan")) attribute = test_node.get_attribute("outputs:a_normald3_snan") db_value = database.outputs.a_normald3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_inf")) attribute = test_node.get_attribute("outputs:a_normalf3_array_inf") db_value = database.outputs.a_normalf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_nan")) attribute = test_node.get_attribute("outputs:a_normalf3_array_nan") db_value = database.outputs.a_normalf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_normalf3_array_ninf") db_value = database.outputs.a_normalf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_snan")) attribute = test_node.get_attribute("outputs:a_normalf3_array_snan") db_value = database.outputs.a_normalf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_inf")) attribute = test_node.get_attribute("outputs:a_normalf3_inf") db_value = database.outputs.a_normalf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_nan")) attribute = test_node.get_attribute("outputs:a_normalf3_nan") db_value = database.outputs.a_normalf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_ninf")) attribute = test_node.get_attribute("outputs:a_normalf3_ninf") db_value = database.outputs.a_normalf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_snan")) attribute = test_node.get_attribute("outputs:a_normalf3_snan") db_value = database.outputs.a_normalf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_inf")) attribute = test_node.get_attribute("outputs:a_normalh3_array_inf") db_value = database.outputs.a_normalh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_nan")) attribute = test_node.get_attribute("outputs:a_normalh3_array_nan") db_value = database.outputs.a_normalh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_normalh3_array_ninf") db_value = database.outputs.a_normalh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_snan")) attribute = test_node.get_attribute("outputs:a_normalh3_array_snan") db_value = database.outputs.a_normalh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_inf")) attribute = test_node.get_attribute("outputs:a_normalh3_inf") db_value = database.outputs.a_normalh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_nan")) attribute = test_node.get_attribute("outputs:a_normalh3_nan") db_value = database.outputs.a_normalh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_ninf")) attribute = test_node.get_attribute("outputs:a_normalh3_ninf") db_value = database.outputs.a_normalh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_snan")) attribute = test_node.get_attribute("outputs:a_normalh3_snan") db_value = database.outputs.a_normalh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_inf")) attribute = test_node.get_attribute("outputs:a_pointd3_array_inf") db_value = database.outputs.a_pointd3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_nan")) attribute = test_node.get_attribute("outputs:a_pointd3_array_nan") db_value = database.outputs.a_pointd3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_ninf")) attribute = test_node.get_attribute("outputs:a_pointd3_array_ninf") db_value = database.outputs.a_pointd3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_snan")) attribute = test_node.get_attribute("outputs:a_pointd3_array_snan") db_value = database.outputs.a_pointd3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_inf")) attribute = test_node.get_attribute("outputs:a_pointd3_inf") db_value = database.outputs.a_pointd3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_nan")) attribute = test_node.get_attribute("outputs:a_pointd3_nan") db_value = database.outputs.a_pointd3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_ninf")) attribute = test_node.get_attribute("outputs:a_pointd3_ninf") db_value = database.outputs.a_pointd3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_snan")) attribute = test_node.get_attribute("outputs:a_pointd3_snan") db_value = database.outputs.a_pointd3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_inf")) attribute = test_node.get_attribute("outputs:a_pointf3_array_inf") db_value = database.outputs.a_pointf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_nan")) attribute = test_node.get_attribute("outputs:a_pointf3_array_nan") db_value = database.outputs.a_pointf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_pointf3_array_ninf") db_value = database.outputs.a_pointf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_snan")) attribute = test_node.get_attribute("outputs:a_pointf3_array_snan") db_value = database.outputs.a_pointf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_inf")) attribute = test_node.get_attribute("outputs:a_pointf3_inf") db_value = database.outputs.a_pointf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_nan")) attribute = test_node.get_attribute("outputs:a_pointf3_nan") db_value = database.outputs.a_pointf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_ninf")) attribute = test_node.get_attribute("outputs:a_pointf3_ninf") db_value = database.outputs.a_pointf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_snan")) attribute = test_node.get_attribute("outputs:a_pointf3_snan") db_value = database.outputs.a_pointf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_inf")) attribute = test_node.get_attribute("outputs:a_pointh3_array_inf") db_value = database.outputs.a_pointh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_nan")) attribute = test_node.get_attribute("outputs:a_pointh3_array_nan") db_value = database.outputs.a_pointh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_pointh3_array_ninf") db_value = database.outputs.a_pointh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_snan")) attribute = test_node.get_attribute("outputs:a_pointh3_array_snan") db_value = database.outputs.a_pointh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_inf")) attribute = test_node.get_attribute("outputs:a_pointh3_inf") db_value = database.outputs.a_pointh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_nan")) attribute = test_node.get_attribute("outputs:a_pointh3_nan") db_value = database.outputs.a_pointh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_ninf")) attribute = test_node.get_attribute("outputs:a_pointh3_ninf") db_value = database.outputs.a_pointh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_snan")) attribute = test_node.get_attribute("outputs:a_pointh3_snan") db_value = database.outputs.a_pointh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_inf")) attribute = test_node.get_attribute("outputs:a_quatd4_array_inf") db_value = database.outputs.a_quatd4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_nan")) attribute = test_node.get_attribute("outputs:a_quatd4_array_nan") db_value = database.outputs.a_quatd4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_ninf")) attribute = test_node.get_attribute("outputs:a_quatd4_array_ninf") db_value = database.outputs.a_quatd4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_snan")) attribute = test_node.get_attribute("outputs:a_quatd4_array_snan") db_value = database.outputs.a_quatd4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_inf")) attribute = test_node.get_attribute("outputs:a_quatd4_inf") db_value = database.outputs.a_quatd4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_nan")) attribute = test_node.get_attribute("outputs:a_quatd4_nan") db_value = database.outputs.a_quatd4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_ninf")) attribute = test_node.get_attribute("outputs:a_quatd4_ninf") db_value = database.outputs.a_quatd4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_snan")) attribute = test_node.get_attribute("outputs:a_quatd4_snan") db_value = database.outputs.a_quatd4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_inf")) attribute = test_node.get_attribute("outputs:a_quatf4_array_inf") db_value = database.outputs.a_quatf4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_nan")) attribute = test_node.get_attribute("outputs:a_quatf4_array_nan") db_value = database.outputs.a_quatf4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_ninf")) attribute = test_node.get_attribute("outputs:a_quatf4_array_ninf") db_value = database.outputs.a_quatf4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_snan")) attribute = test_node.get_attribute("outputs:a_quatf4_array_snan") db_value = database.outputs.a_quatf4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_inf")) attribute = test_node.get_attribute("outputs:a_quatf4_inf") db_value = database.outputs.a_quatf4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_nan")) attribute = test_node.get_attribute("outputs:a_quatf4_nan") db_value = database.outputs.a_quatf4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_ninf")) attribute = test_node.get_attribute("outputs:a_quatf4_ninf") db_value = database.outputs.a_quatf4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_snan")) attribute = test_node.get_attribute("outputs:a_quatf4_snan") db_value = database.outputs.a_quatf4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_inf")) attribute = test_node.get_attribute("outputs:a_quath4_array_inf") db_value = database.outputs.a_quath4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_nan")) attribute = test_node.get_attribute("outputs:a_quath4_array_nan") db_value = database.outputs.a_quath4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_ninf")) attribute = test_node.get_attribute("outputs:a_quath4_array_ninf") db_value = database.outputs.a_quath4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_snan")) attribute = test_node.get_attribute("outputs:a_quath4_array_snan") db_value = database.outputs.a_quath4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_inf")) attribute = test_node.get_attribute("outputs:a_quath4_inf") db_value = database.outputs.a_quath4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_nan")) attribute = test_node.get_attribute("outputs:a_quath4_nan") db_value = database.outputs.a_quath4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_ninf")) attribute = test_node.get_attribute("outputs:a_quath4_ninf") db_value = database.outputs.a_quath4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_snan")) attribute = test_node.get_attribute("outputs:a_quath4_snan") db_value = database.outputs.a_quath4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_inf") db_value = database.outputs.a_texcoordd2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_nan") db_value = database.outputs.a_texcoordd2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_ninf") db_value = database.outputs.a_texcoordd2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_snan") db_value = database.outputs.a_texcoordd2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_inf") db_value = database.outputs.a_texcoordd2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_nan") db_value = database.outputs.a_texcoordd2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_ninf") db_value = database.outputs.a_texcoordd2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_snan") db_value = database.outputs.a_texcoordd2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_inf") db_value = database.outputs.a_texcoordd3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_nan") db_value = database.outputs.a_texcoordd3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_ninf") db_value = database.outputs.a_texcoordd3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_snan") db_value = database.outputs.a_texcoordd3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_inf") db_value = database.outputs.a_texcoordd3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_nan") db_value = database.outputs.a_texcoordd3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_ninf") db_value = database.outputs.a_texcoordd3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_snan") db_value = database.outputs.a_texcoordd3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_inf") db_value = database.outputs.a_texcoordf2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_nan") db_value = database.outputs.a_texcoordf2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_ninf") db_value = database.outputs.a_texcoordf2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_snan") db_value = database.outputs.a_texcoordf2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_inf") db_value = database.outputs.a_texcoordf2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_nan") db_value = database.outputs.a_texcoordf2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_ninf") db_value = database.outputs.a_texcoordf2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_snan") db_value = database.outputs.a_texcoordf2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_inf") db_value = database.outputs.a_texcoordf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_nan") db_value = database.outputs.a_texcoordf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_ninf") db_value = database.outputs.a_texcoordf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_snan") db_value = database.outputs.a_texcoordf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_inf") db_value = database.outputs.a_texcoordf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_nan") db_value = database.outputs.a_texcoordf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_ninf") db_value = database.outputs.a_texcoordf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_snan") db_value = database.outputs.a_texcoordf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_inf") db_value = database.outputs.a_texcoordh2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_nan") db_value = database.outputs.a_texcoordh2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_ninf") db_value = database.outputs.a_texcoordh2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_snan") db_value = database.outputs.a_texcoordh2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_inf") db_value = database.outputs.a_texcoordh2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_nan") db_value = database.outputs.a_texcoordh2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_ninf") db_value = database.outputs.a_texcoordh2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_snan") db_value = database.outputs.a_texcoordh2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_inf") db_value = database.outputs.a_texcoordh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_nan") db_value = database.outputs.a_texcoordh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_ninf") db_value = database.outputs.a_texcoordh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_snan") db_value = database.outputs.a_texcoordh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_inf") db_value = database.outputs.a_texcoordh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_nan") db_value = database.outputs.a_texcoordh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_ninf") db_value = database.outputs.a_texcoordh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_snan") db_value = database.outputs.a_texcoordh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_inf")) attribute = test_node.get_attribute("outputs:a_timecode_array_inf") db_value = database.outputs.a_timecode_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_nan")) attribute = test_node.get_attribute("outputs:a_timecode_array_nan") db_value = database.outputs.a_timecode_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_ninf")) attribute = test_node.get_attribute("outputs:a_timecode_array_ninf") db_value = database.outputs.a_timecode_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_snan")) attribute = test_node.get_attribute("outputs:a_timecode_array_snan") db_value = database.outputs.a_timecode_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_inf")) attribute = test_node.get_attribute("outputs:a_timecode_inf") db_value = database.outputs.a_timecode_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_nan")) attribute = test_node.get_attribute("outputs:a_timecode_nan") db_value = database.outputs.a_timecode_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_ninf")) attribute = test_node.get_attribute("outputs:a_timecode_ninf") db_value = database.outputs.a_timecode_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_snan")) attribute = test_node.get_attribute("outputs:a_timecode_snan") db_value = database.outputs.a_timecode_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_inf")) attribute = test_node.get_attribute("outputs:a_vectord3_array_inf") db_value = database.outputs.a_vectord3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_nan")) attribute = test_node.get_attribute("outputs:a_vectord3_array_nan") db_value = database.outputs.a_vectord3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_ninf")) attribute = test_node.get_attribute("outputs:a_vectord3_array_ninf") db_value = database.outputs.a_vectord3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_snan")) attribute = test_node.get_attribute("outputs:a_vectord3_array_snan") db_value = database.outputs.a_vectord3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_inf")) attribute = test_node.get_attribute("outputs:a_vectord3_inf") db_value = database.outputs.a_vectord3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_nan")) attribute = test_node.get_attribute("outputs:a_vectord3_nan") db_value = database.outputs.a_vectord3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_ninf")) attribute = test_node.get_attribute("outputs:a_vectord3_ninf") db_value = database.outputs.a_vectord3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_snan")) attribute = test_node.get_attribute("outputs:a_vectord3_snan") db_value = database.outputs.a_vectord3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_inf")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_inf") db_value = database.outputs.a_vectorf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_nan")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_nan") db_value = database.outputs.a_vectorf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_ninf") db_value = database.outputs.a_vectorf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_snan")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_snan") db_value = database.outputs.a_vectorf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_inf")) attribute = test_node.get_attribute("outputs:a_vectorf3_inf") db_value = database.outputs.a_vectorf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_nan")) attribute = test_node.get_attribute("outputs:a_vectorf3_nan") db_value = database.outputs.a_vectorf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_ninf")) attribute = test_node.get_attribute("outputs:a_vectorf3_ninf") db_value = database.outputs.a_vectorf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_snan")) attribute = test_node.get_attribute("outputs:a_vectorf3_snan") db_value = database.outputs.a_vectorf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_inf")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_inf") db_value = database.outputs.a_vectorh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_nan")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_nan") db_value = database.outputs.a_vectorh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_ninf") db_value = database.outputs.a_vectorh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_snan")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_snan") db_value = database.outputs.a_vectorh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_inf")) attribute = test_node.get_attribute("outputs:a_vectorh3_inf") db_value = database.outputs.a_vectorh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_nan")) attribute = test_node.get_attribute("outputs:a_vectorh3_nan") db_value = database.outputs.a_vectorh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_ninf")) attribute = test_node.get_attribute("outputs:a_vectorh3_ninf") db_value = database.outputs.a_vectorh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_snan")) attribute = test_node.get_attribute("outputs:a_vectorh3_snan") db_value = database.outputs.a_vectorh3_snan
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnMultiply2IntArray.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:a', [1, 2, 3], False], ['inputs:b', [10, 20, 30], False], ], 'outputs': [ ['outputs:output', [10, 40, 90], False], ], }, { 'inputs': [ ['inputs:a', [1], False], ['inputs:b', [10, 20, 30], False], ], 'outputs': [ ['outputs:output', [10, 20, 30], False], ], }, { 'inputs': [ ['inputs:a', [1, 2, 3], False], ['inputs:b', [10], False], ], 'outputs': [ ['outputs:output', [10, 20, 30], False], ], }, { 'inputs': [ ['inputs:a', [5], False], ['inputs:b', [11], False], ], 'outputs': [ ['outputs:output', [55], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_Multiply2IntegerArrays", "omni.graph.test.Multiply2IntegerArrays", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.Multiply2IntegerArrays User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_Multiply2IntegerArrays","omni.graph.test.Multiply2IntegerArrays", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.Multiply2IntegerArrays User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_Multiply2IntegerArrays", "omni.graph.test.Multiply2IntegerArrays", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.Multiply2IntegerArrays User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnMultiply2IntArrayDatabase import OgnMultiply2IntArrayDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_Multiply2IntegerArrays", "omni.graph.test.Multiply2IntegerArrays") }) database = OgnMultiply2IntArrayDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a")) attribute = test_node.get_attribute("inputs:a") db_value = database.inputs.a expected_value = [] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:b")) attribute = test_node.get_attribute("inputs:b") db_value = database.inputs.b expected_value = [] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:output")) attribute = test_node.get_attribute("outputs:output") db_value = database.outputs.output
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestDeformer.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:points', [[2.0, -2.0, 3.0]], False], ], 'outputs': [ ['outputs:points', [[2.0, -2.0, -2.73895]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestDeformer", "omni.graph.test.TestDeformer", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestDeformer User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestDeformer","omni.graph.test.TestDeformer", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestDeformer User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_TestDeformer", "omni.graph.test.TestDeformer", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.TestDeformer User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnTestDeformerDatabase import OgnTestDeformerDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestDeformer", "omni.graph.test.TestDeformer") }) database = OgnTestDeformerDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:multiplier")) attribute = test_node.get_attribute("inputs:multiplier") db_value = database.inputs.multiplier expected_value = 0.7 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:points")) attribute = test_node.get_attribute("inputs:points") db_value = database.inputs.points expected_value = [] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:wavelength")) attribute = test_node.get_attribute("inputs:wavelength") db_value = database.inputs.wavelength expected_value = 50.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:points")) attribute = test_node.get_attribute("outputs:points") db_value = database.outputs.points
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnDecomposeDouble3C.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:double3', [1.0, 2.0, 3.0], False], ], 'outputs': [ ['outputs:x', 1.0, False], ['outputs:y', 2.0, False], ['outputs:z', 3.0, False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_DecomposeDouble3C", "omni.graph.test.DecomposeDouble3C", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.DecomposeDouble3C User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_DecomposeDouble3C","omni.graph.test.DecomposeDouble3C", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.DecomposeDouble3C User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_DecomposeDouble3C", "omni.graph.test.DecomposeDouble3C", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.DecomposeDouble3C User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnDecomposeDouble3CDatabase import OgnDecomposeDouble3CDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_DecomposeDouble3C", "omni.graph.test.DecomposeDouble3C") }) database = OgnDecomposeDouble3CDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:double3")) attribute = test_node.get_attribute("inputs:double3") db_value = database.inputs.double3 expected_value = [0, 0, 0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:x")) attribute = test_node.get_attribute("outputs:x") db_value = database.outputs.x self.assertTrue(test_node.get_attribute_exists("outputs:y")) attribute = test_node.get_attribute("outputs:y") db_value = database.outputs.y self.assertTrue(test_node.get_attribute_exists("outputs:z")) attribute = test_node.get_attribute("outputs:z") db_value = database.outputs.z
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestAllDataTypesPod.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:doNotCompute', True, False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, False], False], ['outputs:a_colord_3', [1.5, 2.5, 3.5], False], ['outputs:a_colord_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_colorh_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_colord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colord_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_colorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_colorh_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_double', 1.5, False], ['outputs:a_double_2', [1.5, 2.5], False], ['outputs:a_double_3', [1.5, 2.5, 3.5], False], ['outputs:a_double_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_double_array', [1.5, 2.5], False], ['outputs:a_double_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_double_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_double_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_execution', 2, False], ['outputs:a_float', 1.5, False], ['outputs:a_float_2', [1.5, 2.5], False], ['outputs:a_float_3', [1.5, 2.5, 3.5], False], ['outputs:a_float_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_float_array', [1.5, 2.5], False], ['outputs:a_float_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_float_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_float_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_frame_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_frame_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_half', 1.5, False], ['outputs:a_half_2', [1.5, 2.5], False], ['outputs:a_half_3', [1.5, 2.5, 3.5], False], ['outputs:a_half_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_half_array', [1.5, 2.5], False], ['outputs:a_half_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_half_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_half_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_matrixd_3', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], False], ['outputs:a_matrixd_4', [1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], False], ['outputs:a_matrixd_2_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_matrixd_3_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5]], False], ['outputs:a_matrixd_4_array', [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, 15.5, 16.5], [11.5, 12.5, 13.5, 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5]], False], ['outputs:a_normald_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalf_3', [1.5, 2.5, 3.5], False], ['outputs:a_normalh_3', [1.5, 2.5, 3.5], False], ['outputs:a_normald_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_normalh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_objectId', 2, False], ['outputs:a_objectId_array', [2, 3], False], ['outputs:a_pointd_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointf_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointh_3', [1.5, 2.5, 3.5], False], ['outputs:a_pointd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_pointh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_quatd_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatf_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quath_4', [1.5, 2.5, 3.5, 4.5], False], ['outputs:a_quatd_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quatf_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_quath_4_array', [[1.5, 2.5, 3.5, 4.5], [11.5, 12.5, 13.5, 14.5]], False], ['outputs:a_string', "Snoke", False], ['outputs:a_texcoordd_2', [1.5, 2.5], False], ['outputs:a_texcoordd_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordf_2', [1.5, 2.5], False], ['outputs:a_texcoordf_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordh_2', [1.5, 2.5], False], ['outputs:a_texcoordh_3', [1.5, 2.5, 3.5], False], ['outputs:a_texcoordd_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordd_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordf_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_texcoordh_2_array', [[1.5, 2.5], [11.5, 12.5]], False], ['outputs:a_texcoordh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_timecode', 2.5, False], ['outputs:a_timecode_array', [2.5, 3.5], False], ['outputs:a_token', "Jedi", False], ['outputs:a_token_array', ["Luke", "Skywalker"], False], ['outputs:a_uchar', 2, False], ['outputs:a_uchar_array', [2, 3], False], ['outputs:a_uint', 2, False], ['outputs:a_uint_array', [2, 3], False], ['outputs:a_uint64', 2, False], ['outputs:a_uint64_array', [2, 3], False], ['outputs:a_vectord_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorf_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectorh_3', [1.5, 2.5, 3.5], False], ['outputs:a_vectord_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorf_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ['outputs:a_vectorh_3_array', [[1.5, 2.5, 3.5], [11.5, 12.5, 13.5]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ], 'outputs': [ ['outputs:a_bool', False, False], ['outputs:a_bool_array', [False, True], False], ['outputs:a_colord_3', [1.0, 2.0, 3.0], False], ['outputs:a_colord_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_colorh_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_colord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colord_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_colorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_colorh_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_double', 1.0, False], ['outputs:a_double_2', [1.0, 2.0], False], ['outputs:a_double_3', [1.0, 2.0, 3.0], False], ['outputs:a_double_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_double_array', [1.0, 2.0], False], ['outputs:a_double_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_double_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_double_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_execution', 1, False], ['outputs:a_float', 1.0, False], ['outputs:a_float_2', [1.0, 2.0], False], ['outputs:a_float_3', [1.0, 2.0, 3.0], False], ['outputs:a_float_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_float_array', [1.0, 2.0], False], ['outputs:a_float_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_float_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_float_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_frame_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_frame_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_half', 1.0, False], ['outputs:a_half_2', [1.0, 2.0], False], ['outputs:a_half_3', [1.0, 2.0, 3.0], False], ['outputs:a_half_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_half_array', [1.0, 2.0], False], ['outputs:a_half_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_half_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_half_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_int', 1, False], ['outputs:a_int_2', [1, 2], False], ['outputs:a_int_3', [1, 2, 3], False], ['outputs:a_int_4', [1, 2, 3, 4], False], ['outputs:a_int_array', [1, 2], False], ['outputs:a_int_2_array', [[1, 2], [3, 4]], False], ['outputs:a_int_3_array', [[1, 2, 3], [4, 5, 6]], False], ['outputs:a_int_4_array', [[1, 2, 3, 4], [5, 6, 7, 8]], False], ['outputs:a_int64', 12345, False], ['outputs:a_int64_array', [12345, 23456], False], ['outputs:a_matrixd_2', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_matrixd_3', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], False], ['outputs:a_matrixd_4', [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], False], ['outputs:a_matrixd_2_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_matrixd_3_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0]], False], ['outputs:a_matrixd_4_array', [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0], [11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0]], False], ['outputs:a_normald_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalf_3', [1.0, 2.0, 3.0], False], ['outputs:a_normalh_3', [1.0, 2.0, 3.0], False], ['outputs:a_normald_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_normalh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_objectId', 1, False], ['outputs:a_objectId_array', [1, 2], False], ['outputs:a_pointd_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointf_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointh_3', [1.0, 2.0, 3.0], False], ['outputs:a_pointd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_pointh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_quatd_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatf_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quath_4', [1.0, 2.0, 3.0, 4.0], False], ['outputs:a_quatd_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quatf_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_quath_4_array', [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]], False], ['outputs:a_string', "Rey", False], ['outputs:a_texcoordd_2', [1.0, 2.0], False], ['outputs:a_texcoordd_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordf_2', [1.0, 2.0], False], ['outputs:a_texcoordf_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordh_2', [1.0, 2.0], False], ['outputs:a_texcoordh_3', [1.0, 2.0, 3.0], False], ['outputs:a_texcoordd_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordd_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordf_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_texcoordh_2_array', [[1.0, 2.0], [11.0, 12.0]], False], ['outputs:a_texcoordh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_timecode', 1.0, False], ['outputs:a_timecode_array', [1.0, 2.0], False], ['outputs:a_token', "Sith", False], ['outputs:a_token_array', ["Kylo", "Ren"], False], ['outputs:a_uchar', 1, False], ['outputs:a_uchar_array', [1, 2], False], ['outputs:a_uint', 1, False], ['outputs:a_uint_array', [1, 2], False], ['outputs:a_uint64', 1, False], ['outputs:a_uint64_array', [1, 2], False], ['outputs:a_vectord_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorf_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectorh_3', [1.0, 2.0, 3.0], False], ['outputs:a_vectord_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorf_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ['outputs:a_vectorh_3_array', [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]], False], ], }, { 'inputs': [ ['inputs:doNotCompute', False, False], ['inputs:a_bool', True, False], ['inputs:a_bool_array', [True, True], False], ['inputs:a_colord_3', [1.25, 2.25, 3.25], False], ['inputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_double', 1.25, False], ['inputs:a_double_2', [1.25, 2.25], False], ['inputs:a_double_3', [1.25, 2.25, 3.25], False], ['inputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_double_array', [1.25, 2.25], False], ['inputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_execution', 3, False], ['inputs:a_float', 1.25, False], ['inputs:a_float_2', [1.25, 2.25], False], ['inputs:a_float_3', [1.25, 2.25, 3.25], False], ['inputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_float_array', [1.25, 2.25], False], ['inputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['inputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_half', 1.25, False], ['inputs:a_half_2', [1.25, 2.25], False], ['inputs:a_half_3', [1.25, 2.25, 3.25], False], ['inputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_half_array', [1.25, 2.25], False], ['inputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_int', 11, False], ['inputs:a_int_2', [11, 12], False], ['inputs:a_int_3', [11, 12, 13], False], ['inputs:a_int_4', [11, 12, 13, 14], False], ['inputs:a_int_array', [11, 12], False], ['inputs:a_int_2_array', [[11, 12], [13, 14]], False], ['inputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['inputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['inputs:a_int64', 34567, False], ['inputs:a_int64_array', [45678, 56789], False], ['inputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['inputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['inputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['inputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['inputs:a_normald_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['inputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['inputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_objectId', 3, False], ['inputs:a_objectId_array', [3, 4], False], ['inputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['inputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['inputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['inputs:a_string', "Palpatine", False], ['inputs:a_texcoordd_2', [1.25, 2.25], False], ['inputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordf_2', [1.25, 2.25], False], ['inputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordh_2', [1.25, 2.25], False], ['inputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['inputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['inputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_timecode', 1.25, False], ['inputs:a_timecode_array', [1.25, 2.25], False], ['inputs:a_token', "Rebels", False], ['inputs:a_token_array', ["Han", "Solo"], False], ['inputs:a_uchar', 3, False], ['inputs:a_uchar_array', [3, 4], False], ['inputs:a_uint', 3, False], ['inputs:a_uint_array', [3, 4], False], ['inputs:a_uint64', 3, False], ['inputs:a_uint64_array', [3, 4], False], ['inputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['inputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['inputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], 'outputs': [ ['outputs:a_bool', True, False], ['outputs:a_bool_array', [True, True], False], ['outputs:a_colord_3', [1.25, 2.25, 3.25], False], ['outputs:a_colord_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_colorh_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_colord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colord_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_colorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_colorh_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_double', 1.25, False], ['outputs:a_double_2', [1.25, 2.25], False], ['outputs:a_double_3', [1.25, 2.25, 3.25], False], ['outputs:a_double_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_double_array', [1.25, 2.25], False], ['outputs:a_double_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_double_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_double_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_execution', 3, False], ['outputs:a_float', 1.25, False], ['outputs:a_float_2', [1.25, 2.25], False], ['outputs:a_float_3', [1.25, 2.25, 3.25], False], ['outputs:a_float_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_float_array', [1.25, 2.25], False], ['outputs:a_float_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_float_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_float_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_frame_4', [1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], False], ['outputs:a_frame_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_half', 1.25, False], ['outputs:a_half_2', [1.25, 2.25], False], ['outputs:a_half_3', [1.25, 2.25, 3.25], False], ['outputs:a_half_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_half_array', [1.25, 2.25], False], ['outputs:a_half_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_half_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_half_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_int', 11, False], ['outputs:a_int_2', [11, 12], False], ['outputs:a_int_3', [11, 12, 13], False], ['outputs:a_int_4', [11, 12, 13, 14], False], ['outputs:a_int_array', [11, 12], False], ['outputs:a_int_2_array', [[11, 12], [13, 14]], False], ['outputs:a_int_3_array', [[11, 12, 13], [14, 15, 16]], False], ['outputs:a_int_4_array', [[11, 12, 13, 14], [15, 16, 17, 18]], False], ['outputs:a_int64', 34567, False], ['outputs:a_int64_array', [45678, 56789], False], ['outputs:a_matrixd_2', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_matrixd_3', [1.25, 2.25, 3.25, 11.25, 12.25, 13.25, 21.25, 22.25, 23.25], False], ['outputs:a_matrixd_4', [1.25, 2.25, 3.25, 4.25, 11.25, 12.25, 13.25, 14.25, 21.25, 22.25, 23.25, 24.25, 31.25, 32.25, 33.25, 34.25], False], ['outputs:a_matrixd_2_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_matrixd_3_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25]], False], ['outputs:a_matrixd_4_array', [[1.25, 2.25, 3.25, 4.25, 5.25, 6.25, 7.25, 8.25, 9.25, 10.25, 11.25, 12.25, 13.25, 14.25, 15.25, 16.25], [11.25, 12.25, 13.25, 14.25, 15.25, 16.25, 17.25, 18.25, 19.25, 20.25, 21.25, 22.25, 23.25, 24.25, 25.25, 26.25]], False], ['outputs:a_normald_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalf_3', [1.25, 2.25, 3.25], False], ['outputs:a_normalh_3', [1.25, 2.25, 3.25], False], ['outputs:a_normald_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_normalh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_objectId', 3, False], ['outputs:a_objectId_array', [3, 4], False], ['outputs:a_pointd_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointf_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointh_3', [1.25, 2.25, 3.25], False], ['outputs:a_pointd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_pointh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_quatd_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatf_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quath_4', [1.25, 2.25, 3.25, 4.25], False], ['outputs:a_quatd_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quatf_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_quath_4_array', [[1.25, 2.25, 3.25, 4.25], [11.25, 12.25, 13.25, 14.25]], False], ['outputs:a_string', "Palpatine", False], ['outputs:a_texcoordd_2', [1.25, 2.25], False], ['outputs:a_texcoordd_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordf_2', [1.25, 2.25], False], ['outputs:a_texcoordf_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordh_2', [1.25, 2.25], False], ['outputs:a_texcoordh_3', [1.25, 2.25, 3.25], False], ['outputs:a_texcoordd_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordd_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordf_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_texcoordh_2_array', [[1.25, 2.25], [11.25, 12.25]], False], ['outputs:a_texcoordh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_timecode', 1.25, False], ['outputs:a_timecode_array', [1.25, 2.25], False], ['outputs:a_token', "Rebels", False], ['outputs:a_token_array', ["Han", "Solo"], False], ['outputs:a_uchar', 3, False], ['outputs:a_uchar_array', [3, 4], False], ['outputs:a_uint', 3, False], ['outputs:a_uint_array', [3, 4], False], ['outputs:a_uint64', 3, False], ['outputs:a_uint64_array', [3, 4], False], ['outputs:a_vectord_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorf_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectorh_3', [1.25, 2.25, 3.25], False], ['outputs:a_vectord_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorf_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ['outputs:a_vectorh_3_array', [[1.25, 2.25, 3.25], [11.25, 12.25, 13.25]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypesPod", "omni.graph.test.TestAllDataTypesPod", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypesPod User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllDataTypesPod","omni.graph.test.TestAllDataTypesPod", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllDataTypesPod User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_TestAllDataTypesPod", "omni.graph.test.TestAllDataTypesPod", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.TestAllDataTypesPod User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnTestAllDataTypesPodDatabase import OgnTestAllDataTypesPodDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestAllDataTypesPod", "omni.graph.test.TestAllDataTypesPod") }) database = OgnTestAllDataTypesPodDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a_bool")) attribute = test_node.get_attribute("inputs:a_bool") db_value = database.inputs.a_bool expected_value = False ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_bool_array")) attribute = test_node.get_attribute("inputs:a_bool_array") db_value = database.inputs.a_bool_array expected_value = [False, True] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3")) attribute = test_node.get_attribute("inputs:a_colord_3") db_value = database.inputs.a_colord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_3_array")) attribute = test_node.get_attribute("inputs:a_colord_3_array") db_value = database.inputs.a_colord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4")) attribute = test_node.get_attribute("inputs:a_colord_4") db_value = database.inputs.a_colord_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord_4_array")) attribute = test_node.get_attribute("inputs:a_colord_4_array") db_value = database.inputs.a_colord_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3")) attribute = test_node.get_attribute("inputs:a_colorf_3") db_value = database.inputs.a_colorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_3_array")) attribute = test_node.get_attribute("inputs:a_colorf_3_array") db_value = database.inputs.a_colorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4")) attribute = test_node.get_attribute("inputs:a_colorf_4") db_value = database.inputs.a_colorf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf_4_array")) attribute = test_node.get_attribute("inputs:a_colorf_4_array") db_value = database.inputs.a_colorf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3")) attribute = test_node.get_attribute("inputs:a_colorh_3") db_value = database.inputs.a_colorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_3_array")) attribute = test_node.get_attribute("inputs:a_colorh_3_array") db_value = database.inputs.a_colorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4")) attribute = test_node.get_attribute("inputs:a_colorh_4") db_value = database.inputs.a_colorh_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh_4_array")) attribute = test_node.get_attribute("inputs:a_colorh_4_array") db_value = database.inputs.a_colorh_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double")) attribute = test_node.get_attribute("inputs:a_double") db_value = database.inputs.a_double expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2")) attribute = test_node.get_attribute("inputs:a_double_2") db_value = database.inputs.a_double_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_2_array")) attribute = test_node.get_attribute("inputs:a_double_2_array") db_value = database.inputs.a_double_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3")) attribute = test_node.get_attribute("inputs:a_double_3") db_value = database.inputs.a_double_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_3_array")) attribute = test_node.get_attribute("inputs:a_double_3_array") db_value = database.inputs.a_double_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4")) attribute = test_node.get_attribute("inputs:a_double_4") db_value = database.inputs.a_double_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_4_array")) attribute = test_node.get_attribute("inputs:a_double_4_array") db_value = database.inputs.a_double_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array")) attribute = test_node.get_attribute("inputs:a_double_array") db_value = database.inputs.a_double_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_execution")) attribute = test_node.get_attribute("inputs:a_execution") db_value = database.inputs.a_execution expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float")) attribute = test_node.get_attribute("inputs:a_float") db_value = database.inputs.a_float expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2")) attribute = test_node.get_attribute("inputs:a_float_2") db_value = database.inputs.a_float_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_2_array")) attribute = test_node.get_attribute("inputs:a_float_2_array") db_value = database.inputs.a_float_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3")) attribute = test_node.get_attribute("inputs:a_float_3") db_value = database.inputs.a_float_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_3_array")) attribute = test_node.get_attribute("inputs:a_float_3_array") db_value = database.inputs.a_float_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4")) attribute = test_node.get_attribute("inputs:a_float_4") db_value = database.inputs.a_float_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_4_array")) attribute = test_node.get_attribute("inputs:a_float_4_array") db_value = database.inputs.a_float_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array")) attribute = test_node.get_attribute("inputs:a_float_array") db_value = database.inputs.a_float_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4")) attribute = test_node.get_attribute("inputs:a_frame_4") db_value = database.inputs.a_frame_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame_4_array")) attribute = test_node.get_attribute("inputs:a_frame_4_array") db_value = database.inputs.a_frame_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half")) attribute = test_node.get_attribute("inputs:a_half") db_value = database.inputs.a_half expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2")) attribute = test_node.get_attribute("inputs:a_half_2") db_value = database.inputs.a_half_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_2_array")) attribute = test_node.get_attribute("inputs:a_half_2_array") db_value = database.inputs.a_half_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3")) attribute = test_node.get_attribute("inputs:a_half_3") db_value = database.inputs.a_half_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_3_array")) attribute = test_node.get_attribute("inputs:a_half_3_array") db_value = database.inputs.a_half_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4")) attribute = test_node.get_attribute("inputs:a_half_4") db_value = database.inputs.a_half_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_4_array")) attribute = test_node.get_attribute("inputs:a_half_4_array") db_value = database.inputs.a_half_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array")) attribute = test_node.get_attribute("inputs:a_half_array") db_value = database.inputs.a_half_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int")) attribute = test_node.get_attribute("inputs:a_int") db_value = database.inputs.a_int expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64")) attribute = test_node.get_attribute("inputs:a_int64") db_value = database.inputs.a_int64 expected_value = 12345 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int64_array")) attribute = test_node.get_attribute("inputs:a_int64_array") db_value = database.inputs.a_int64_array expected_value = [12345, 23456] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2")) attribute = test_node.get_attribute("inputs:a_int_2") db_value = database.inputs.a_int_2 expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_2_array")) attribute = test_node.get_attribute("inputs:a_int_2_array") db_value = database.inputs.a_int_2_array expected_value = [[1, 2], [3, 4]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3")) attribute = test_node.get_attribute("inputs:a_int_3") db_value = database.inputs.a_int_3 expected_value = [1, 2, 3] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_3_array")) attribute = test_node.get_attribute("inputs:a_int_3_array") db_value = database.inputs.a_int_3_array expected_value = [[1, 2, 3], [4, 5, 6]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4")) attribute = test_node.get_attribute("inputs:a_int_4") db_value = database.inputs.a_int_4 expected_value = [1, 2, 3, 4] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_4_array")) attribute = test_node.get_attribute("inputs:a_int_4_array") db_value = database.inputs.a_int_4_array expected_value = [[1, 2, 3, 4], [5, 6, 7, 8]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_int_array")) attribute = test_node.get_attribute("inputs:a_int_array") db_value = database.inputs.a_int_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2")) attribute = test_node.get_attribute("inputs:a_matrixd_2") db_value = database.inputs.a_matrixd_2 expected_value = [[1.0, 2.0], [3.0, 4.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_2_array")) attribute = test_node.get_attribute("inputs:a_matrixd_2_array") db_value = database.inputs.a_matrixd_2_array expected_value = [[[1.0, 2.0], [3.0, 4.0]], [[11.0, 12.0], [13.0, 14.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3")) attribute = test_node.get_attribute("inputs:a_matrixd_3") db_value = database.inputs.a_matrixd_3 expected_value = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_3_array")) attribute = test_node.get_attribute("inputs:a_matrixd_3_array") db_value = database.inputs.a_matrixd_3_array expected_value = [[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [7.0, 8.0, 9.0]], [[11.0, 12.0, 13.0], [14.0, 15.0, 16.0], [17.0, 18.0, 19.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4")) attribute = test_node.get_attribute("inputs:a_matrixd_4") db_value = database.inputs.a_matrixd_4 expected_value = [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd_4_array")) attribute = test_node.get_attribute("inputs:a_matrixd_4_array") db_value = database.inputs.a_matrixd_4_array expected_value = [[[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0, 14.0, 15.0, 16.0]], [[11.0, 12.0, 13.0, 14.0], [15.0, 16.0, 17.0, 18.0], [19.0, 20.0, 21.0, 22.0], [23.0, 24.0, 25.0, 26.0]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3")) attribute = test_node.get_attribute("inputs:a_normald_3") db_value = database.inputs.a_normald_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald_3_array")) attribute = test_node.get_attribute("inputs:a_normald_3_array") db_value = database.inputs.a_normald_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3")) attribute = test_node.get_attribute("inputs:a_normalf_3") db_value = database.inputs.a_normalf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf_3_array")) attribute = test_node.get_attribute("inputs:a_normalf_3_array") db_value = database.inputs.a_normalf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3")) attribute = test_node.get_attribute("inputs:a_normalh_3") db_value = database.inputs.a_normalh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh_3_array")) attribute = test_node.get_attribute("inputs:a_normalh_3_array") db_value = database.inputs.a_normalh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId")) attribute = test_node.get_attribute("inputs:a_objectId") db_value = database.inputs.a_objectId expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_objectId_array")) attribute = test_node.get_attribute("inputs:a_objectId_array") db_value = database.inputs.a_objectId_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3")) attribute = test_node.get_attribute("inputs:a_pointd_3") db_value = database.inputs.a_pointd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd_3_array")) attribute = test_node.get_attribute("inputs:a_pointd_3_array") db_value = database.inputs.a_pointd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3")) attribute = test_node.get_attribute("inputs:a_pointf_3") db_value = database.inputs.a_pointf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf_3_array")) attribute = test_node.get_attribute("inputs:a_pointf_3_array") db_value = database.inputs.a_pointf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3")) attribute = test_node.get_attribute("inputs:a_pointh_3") db_value = database.inputs.a_pointh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh_3_array")) attribute = test_node.get_attribute("inputs:a_pointh_3_array") db_value = database.inputs.a_pointh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4")) attribute = test_node.get_attribute("inputs:a_quatd_4") db_value = database.inputs.a_quatd_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd_4_array")) attribute = test_node.get_attribute("inputs:a_quatd_4_array") db_value = database.inputs.a_quatd_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4")) attribute = test_node.get_attribute("inputs:a_quatf_4") db_value = database.inputs.a_quatf_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf_4_array")) attribute = test_node.get_attribute("inputs:a_quatf_4_array") db_value = database.inputs.a_quatf_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4")) attribute = test_node.get_attribute("inputs:a_quath_4") db_value = database.inputs.a_quath_4 expected_value = [1.0, 2.0, 3.0, 4.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath_4_array")) attribute = test_node.get_attribute("inputs:a_quath_4_array") db_value = database.inputs.a_quath_4_array expected_value = [[1.0, 2.0, 3.0, 4.0], [11.0, 12.0, 13.0, 14.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_string")) attribute = test_node.get_attribute("inputs:a_string") db_value = database.inputs.a_string expected_value = "Rey" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2")) attribute = test_node.get_attribute("inputs:a_texcoordd_2") db_value = database.inputs.a_texcoordd_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_2_array") db_value = database.inputs.a_texcoordd_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3")) attribute = test_node.get_attribute("inputs:a_texcoordd_3") db_value = database.inputs.a_texcoordd_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordd_3_array") db_value = database.inputs.a_texcoordd_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2")) attribute = test_node.get_attribute("inputs:a_texcoordf_2") db_value = database.inputs.a_texcoordf_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_2_array") db_value = database.inputs.a_texcoordf_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3")) attribute = test_node.get_attribute("inputs:a_texcoordf_3") db_value = database.inputs.a_texcoordf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordf_3_array") db_value = database.inputs.a_texcoordf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2")) attribute = test_node.get_attribute("inputs:a_texcoordh_2") db_value = database.inputs.a_texcoordh_2 expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_2_array") db_value = database.inputs.a_texcoordh_2_array expected_value = [[1.0, 2.0], [11.0, 12.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3")) attribute = test_node.get_attribute("inputs:a_texcoordh_3") db_value = database.inputs.a_texcoordh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("inputs:a_texcoordh_3_array") db_value = database.inputs.a_texcoordh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode")) attribute = test_node.get_attribute("inputs:a_timecode") db_value = database.inputs.a_timecode expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array")) attribute = test_node.get_attribute("inputs:a_timecode_array") db_value = database.inputs.a_timecode_array expected_value = [1.0, 2.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token")) attribute = test_node.get_attribute("inputs:a_token") db_value = database.inputs.a_token expected_value = "Sith" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_token_array")) attribute = test_node.get_attribute("inputs:a_token_array") db_value = database.inputs.a_token_array expected_value = ['Kylo', 'Ren'] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar")) attribute = test_node.get_attribute("inputs:a_uchar") db_value = database.inputs.a_uchar expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uchar_array")) attribute = test_node.get_attribute("inputs:a_uchar_array") db_value = database.inputs.a_uchar_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint")) attribute = test_node.get_attribute("inputs:a_uint") db_value = database.inputs.a_uint expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64")) attribute = test_node.get_attribute("inputs:a_uint64") db_value = database.inputs.a_uint64 expected_value = 1 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint64_array")) attribute = test_node.get_attribute("inputs:a_uint64_array") db_value = database.inputs.a_uint64_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_uint_array")) attribute = test_node.get_attribute("inputs:a_uint_array") db_value = database.inputs.a_uint_array expected_value = [1, 2] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3")) attribute = test_node.get_attribute("inputs:a_vectord_3") db_value = database.inputs.a_vectord_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord_3_array")) attribute = test_node.get_attribute("inputs:a_vectord_3_array") db_value = database.inputs.a_vectord_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3")) attribute = test_node.get_attribute("inputs:a_vectorf_3") db_value = database.inputs.a_vectorf_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf_3_array")) attribute = test_node.get_attribute("inputs:a_vectorf_3_array") db_value = database.inputs.a_vectorf_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3")) attribute = test_node.get_attribute("inputs:a_vectorh_3") db_value = database.inputs.a_vectorh_3 expected_value = [1.0, 2.0, 3.0] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh_3_array")) attribute = test_node.get_attribute("inputs:a_vectorh_3_array") db_value = database.inputs.a_vectorh_3_array expected_value = [[1.0, 2.0, 3.0], [11.0, 12.0, 13.0]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:doNotCompute")) attribute = test_node.get_attribute("inputs:doNotCompute") db_value = database.inputs.doNotCompute expected_value = True ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:a_bool")) attribute = test_node.get_attribute("outputs:a_bool") db_value = database.outputs.a_bool self.assertTrue(test_node.get_attribute_exists("outputs:a_bool_array")) attribute = test_node.get_attribute("outputs:a_bool_array") db_value = database.outputs.a_bool_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3")) attribute = test_node.get_attribute("outputs:a_colord_3") db_value = database.outputs.a_colord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_3_array")) attribute = test_node.get_attribute("outputs:a_colord_3_array") db_value = database.outputs.a_colord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4")) attribute = test_node.get_attribute("outputs:a_colord_4") db_value = database.outputs.a_colord_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colord_4_array")) attribute = test_node.get_attribute("outputs:a_colord_4_array") db_value = database.outputs.a_colord_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3")) attribute = test_node.get_attribute("outputs:a_colorf_3") db_value = database.outputs.a_colorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_3_array")) attribute = test_node.get_attribute("outputs:a_colorf_3_array") db_value = database.outputs.a_colorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4")) attribute = test_node.get_attribute("outputs:a_colorf_4") db_value = database.outputs.a_colorf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf_4_array")) attribute = test_node.get_attribute("outputs:a_colorf_4_array") db_value = database.outputs.a_colorf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3")) attribute = test_node.get_attribute("outputs:a_colorh_3") db_value = database.outputs.a_colorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_3_array")) attribute = test_node.get_attribute("outputs:a_colorh_3_array") db_value = database.outputs.a_colorh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4")) attribute = test_node.get_attribute("outputs:a_colorh_4") db_value = database.outputs.a_colorh_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh_4_array")) attribute = test_node.get_attribute("outputs:a_colorh_4_array") db_value = database.outputs.a_colorh_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double")) attribute = test_node.get_attribute("outputs:a_double") db_value = database.outputs.a_double self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2")) attribute = test_node.get_attribute("outputs:a_double_2") db_value = database.outputs.a_double_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_2_array")) attribute = test_node.get_attribute("outputs:a_double_2_array") db_value = database.outputs.a_double_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3")) attribute = test_node.get_attribute("outputs:a_double_3") db_value = database.outputs.a_double_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_3_array")) attribute = test_node.get_attribute("outputs:a_double_3_array") db_value = database.outputs.a_double_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4")) attribute = test_node.get_attribute("outputs:a_double_4") db_value = database.outputs.a_double_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_double_4_array")) attribute = test_node.get_attribute("outputs:a_double_4_array") db_value = database.outputs.a_double_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array")) attribute = test_node.get_attribute("outputs:a_double_array") db_value = database.outputs.a_double_array self.assertTrue(test_node.get_attribute_exists("outputs:a_execution")) attribute = test_node.get_attribute("outputs:a_execution") db_value = database.outputs.a_execution self.assertTrue(test_node.get_attribute_exists("outputs:a_float")) attribute = test_node.get_attribute("outputs:a_float") db_value = database.outputs.a_float self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2")) attribute = test_node.get_attribute("outputs:a_float_2") db_value = database.outputs.a_float_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_2_array")) attribute = test_node.get_attribute("outputs:a_float_2_array") db_value = database.outputs.a_float_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3")) attribute = test_node.get_attribute("outputs:a_float_3") db_value = database.outputs.a_float_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_3_array")) attribute = test_node.get_attribute("outputs:a_float_3_array") db_value = database.outputs.a_float_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4")) attribute = test_node.get_attribute("outputs:a_float_4") db_value = database.outputs.a_float_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_float_4_array")) attribute = test_node.get_attribute("outputs:a_float_4_array") db_value = database.outputs.a_float_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array")) attribute = test_node.get_attribute("outputs:a_float_array") db_value = database.outputs.a_float_array self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4")) attribute = test_node.get_attribute("outputs:a_frame_4") db_value = database.outputs.a_frame_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_frame_4_array")) attribute = test_node.get_attribute("outputs:a_frame_4_array") db_value = database.outputs.a_frame_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half")) attribute = test_node.get_attribute("outputs:a_half") db_value = database.outputs.a_half self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2")) attribute = test_node.get_attribute("outputs:a_half_2") db_value = database.outputs.a_half_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_2_array")) attribute = test_node.get_attribute("outputs:a_half_2_array") db_value = database.outputs.a_half_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3")) attribute = test_node.get_attribute("outputs:a_half_3") db_value = database.outputs.a_half_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_3_array")) attribute = test_node.get_attribute("outputs:a_half_3_array") db_value = database.outputs.a_half_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4")) attribute = test_node.get_attribute("outputs:a_half_4") db_value = database.outputs.a_half_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_half_4_array")) attribute = test_node.get_attribute("outputs:a_half_4_array") db_value = database.outputs.a_half_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array")) attribute = test_node.get_attribute("outputs:a_half_array") db_value = database.outputs.a_half_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int")) attribute = test_node.get_attribute("outputs:a_int") db_value = database.outputs.a_int self.assertTrue(test_node.get_attribute_exists("outputs:a_int64")) attribute = test_node.get_attribute("outputs:a_int64") db_value = database.outputs.a_int64 self.assertTrue(test_node.get_attribute_exists("outputs:a_int64_array")) attribute = test_node.get_attribute("outputs:a_int64_array") db_value = database.outputs.a_int64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2")) attribute = test_node.get_attribute("outputs:a_int_2") db_value = database.outputs.a_int_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_2_array")) attribute = test_node.get_attribute("outputs:a_int_2_array") db_value = database.outputs.a_int_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3")) attribute = test_node.get_attribute("outputs:a_int_3") db_value = database.outputs.a_int_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_3_array")) attribute = test_node.get_attribute("outputs:a_int_3_array") db_value = database.outputs.a_int_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4")) attribute = test_node.get_attribute("outputs:a_int_4") db_value = database.outputs.a_int_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_int_4_array")) attribute = test_node.get_attribute("outputs:a_int_4_array") db_value = database.outputs.a_int_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_int_array")) attribute = test_node.get_attribute("outputs:a_int_array") db_value = database.outputs.a_int_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2")) attribute = test_node.get_attribute("outputs:a_matrixd_2") db_value = database.outputs.a_matrixd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_2_array")) attribute = test_node.get_attribute("outputs:a_matrixd_2_array") db_value = database.outputs.a_matrixd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3")) attribute = test_node.get_attribute("outputs:a_matrixd_3") db_value = database.outputs.a_matrixd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_3_array")) attribute = test_node.get_attribute("outputs:a_matrixd_3_array") db_value = database.outputs.a_matrixd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4")) attribute = test_node.get_attribute("outputs:a_matrixd_4") db_value = database.outputs.a_matrixd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd_4_array")) attribute = test_node.get_attribute("outputs:a_matrixd_4_array") db_value = database.outputs.a_matrixd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3")) attribute = test_node.get_attribute("outputs:a_normald_3") db_value = database.outputs.a_normald_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normald_3_array")) attribute = test_node.get_attribute("outputs:a_normald_3_array") db_value = database.outputs.a_normald_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3")) attribute = test_node.get_attribute("outputs:a_normalf_3") db_value = database.outputs.a_normalf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf_3_array")) attribute = test_node.get_attribute("outputs:a_normalf_3_array") db_value = database.outputs.a_normalf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3")) attribute = test_node.get_attribute("outputs:a_normalh_3") db_value = database.outputs.a_normalh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh_3_array")) attribute = test_node.get_attribute("outputs:a_normalh_3_array") db_value = database.outputs.a_normalh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId")) attribute = test_node.get_attribute("outputs:a_objectId") db_value = database.outputs.a_objectId self.assertTrue(test_node.get_attribute_exists("outputs:a_objectId_array")) attribute = test_node.get_attribute("outputs:a_objectId_array") db_value = database.outputs.a_objectId_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3")) attribute = test_node.get_attribute("outputs:a_pointd_3") db_value = database.outputs.a_pointd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd_3_array")) attribute = test_node.get_attribute("outputs:a_pointd_3_array") db_value = database.outputs.a_pointd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3")) attribute = test_node.get_attribute("outputs:a_pointf_3") db_value = database.outputs.a_pointf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf_3_array")) attribute = test_node.get_attribute("outputs:a_pointf_3_array") db_value = database.outputs.a_pointf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3")) attribute = test_node.get_attribute("outputs:a_pointh_3") db_value = database.outputs.a_pointh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh_3_array")) attribute = test_node.get_attribute("outputs:a_pointh_3_array") db_value = database.outputs.a_pointh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4")) attribute = test_node.get_attribute("outputs:a_quatd_4") db_value = database.outputs.a_quatd_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd_4_array")) attribute = test_node.get_attribute("outputs:a_quatd_4_array") db_value = database.outputs.a_quatd_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4")) attribute = test_node.get_attribute("outputs:a_quatf_4") db_value = database.outputs.a_quatf_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf_4_array")) attribute = test_node.get_attribute("outputs:a_quatf_4_array") db_value = database.outputs.a_quatf_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4")) attribute = test_node.get_attribute("outputs:a_quath_4") db_value = database.outputs.a_quath_4 self.assertTrue(test_node.get_attribute_exists("outputs:a_quath_4_array")) attribute = test_node.get_attribute("outputs:a_quath_4_array") db_value = database.outputs.a_quath_4_array self.assertTrue(test_node.get_attribute_exists("outputs:a_string")) attribute = test_node.get_attribute("outputs:a_string") db_value = database.outputs.a_string self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2")) attribute = test_node.get_attribute("outputs:a_texcoordd_2") db_value = database.outputs.a_texcoordd_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_2_array") db_value = database.outputs.a_texcoordd_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3")) attribute = test_node.get_attribute("outputs:a_texcoordd_3") db_value = database.outputs.a_texcoordd_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordd_3_array") db_value = database.outputs.a_texcoordd_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2")) attribute = test_node.get_attribute("outputs:a_texcoordf_2") db_value = database.outputs.a_texcoordf_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_2_array") db_value = database.outputs.a_texcoordf_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3")) attribute = test_node.get_attribute("outputs:a_texcoordf_3") db_value = database.outputs.a_texcoordf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordf_3_array") db_value = database.outputs.a_texcoordf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2")) attribute = test_node.get_attribute("outputs:a_texcoordh_2") db_value = database.outputs.a_texcoordh_2 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_2_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_2_array") db_value = database.outputs.a_texcoordh_2_array self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3")) attribute = test_node.get_attribute("outputs:a_texcoordh_3") db_value = database.outputs.a_texcoordh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh_3_array")) attribute = test_node.get_attribute("outputs:a_texcoordh_3_array") db_value = database.outputs.a_texcoordh_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode")) attribute = test_node.get_attribute("outputs:a_timecode") db_value = database.outputs.a_timecode self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array")) attribute = test_node.get_attribute("outputs:a_timecode_array") db_value = database.outputs.a_timecode_array self.assertTrue(test_node.get_attribute_exists("outputs:a_token")) attribute = test_node.get_attribute("outputs:a_token") db_value = database.outputs.a_token self.assertTrue(test_node.get_attribute_exists("outputs:a_token_array")) attribute = test_node.get_attribute("outputs:a_token_array") db_value = database.outputs.a_token_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar")) attribute = test_node.get_attribute("outputs:a_uchar") db_value = database.outputs.a_uchar self.assertTrue(test_node.get_attribute_exists("outputs:a_uchar_array")) attribute = test_node.get_attribute("outputs:a_uchar_array") db_value = database.outputs.a_uchar_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint")) attribute = test_node.get_attribute("outputs:a_uint") db_value = database.outputs.a_uint self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64")) attribute = test_node.get_attribute("outputs:a_uint64") db_value = database.outputs.a_uint64 self.assertTrue(test_node.get_attribute_exists("outputs:a_uint64_array")) attribute = test_node.get_attribute("outputs:a_uint64_array") db_value = database.outputs.a_uint64_array self.assertTrue(test_node.get_attribute_exists("outputs:a_uint_array")) attribute = test_node.get_attribute("outputs:a_uint_array") db_value = database.outputs.a_uint_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3")) attribute = test_node.get_attribute("outputs:a_vectord_3") db_value = database.outputs.a_vectord_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord_3_array")) attribute = test_node.get_attribute("outputs:a_vectord_3_array") db_value = database.outputs.a_vectord_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3")) attribute = test_node.get_attribute("outputs:a_vectorf_3") db_value = database.outputs.a_vectorf_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf_3_array")) attribute = test_node.get_attribute("outputs:a_vectorf_3_array") db_value = database.outputs.a_vectorf_3_array self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3")) attribute = test_node.get_attribute("outputs:a_vectorh_3") db_value = database.outputs.a_vectorh_3 self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh_3_array")) attribute = test_node.get_attribute("outputs:a_vectorh_3_array") db_value = database.outputs.a_vectorh_3_array
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleProducer.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundleProducerDatabase import OgnBundleProducerDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleProducer", "omni.graph.test.BundleProducer") }) database = OgnBundleProducerDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("outputs_bundle")) attribute = test_node.get_attribute("outputs_bundle") db_value = database.outputs.bundle
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnAdd2IntArray.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:a', [1, 2, 3], False], ['inputs:b', [10, 20, 30], False], ], 'outputs': [ ['outputs:output', [11, 22, 33], False], ], }, { 'inputs': [ ['inputs:a', [1], False], ['inputs:b', [10, 20, 30], False], ], 'outputs': [ ['outputs:output', [11, 21, 31], False], ], }, { 'inputs': [ ['inputs:a', [1, 2, 3], False], ['inputs:b', [10], False], ], 'outputs': [ ['outputs:output', [11, 12, 13], False], ], }, { 'inputs': [ ['inputs:a', [3], False], ['inputs:b', [13], False], ], 'outputs': [ ['outputs:output', [16], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_Add2IntegerArrays", "omni.graph.test.Add2IntegerArrays", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.Add2IntegerArrays User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_Add2IntegerArrays","omni.graph.test.Add2IntegerArrays", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.Add2IntegerArrays User test case #{i+1}", 16) async def test_thread_safety(self): import omni.kit # Generate multiple instances of the test setup to run them concurrently instance_setup = dict() for n in range(24): instance_setup[f"/TestGraph_{n}"] = _TestGraphAndNode() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) for (key, test_info) in instance_setup.items(): test_info = await _test_setup_scene(self, og.Controller(allow_exists_prim=True), key, "TestNode_omni_graph_test_Add2IntegerArrays", "omni.graph.test.Add2IntegerArrays", test_run, test_info) self.assertEqual(len(og.get_all_graphs()), 24) # We want to evaluate all graphs concurrently. Kick them all. # Evaluate multiple times to skip 2 serial frames and increase chances for a race condition. for _ in range(10): await omni.kit.app.get_app().next_update_async() for (key, test_instance) in instance_setup.items(): _test_verify_scene(self, og.Controller(), test_run, test_info, f"omni.graph.test.Add2IntegerArrays User test case #{i+1}, instance{key}") async def test_data_access(self): from omni.graph.test.ogn.OgnAdd2IntArrayDatabase import OgnAdd2IntArrayDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_Add2IntegerArrays", "omni.graph.test.Add2IntegerArrays") }) database = OgnAdd2IntArrayDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a")) attribute = test_node.get_attribute("inputs:a") db_value = database.inputs.a expected_value = [] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:b")) attribute = test_node.get_attribute("inputs:b") db_value = database.inputs.b expected_value = [] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:output")) attribute = test_node.get_attribute("outputs:output") db_value = database.outputs.output
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestTupleArrays.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:float3Array', [[1.0, 2.0, 3.0], [2.0, 3.0, 4.0]], False], ['inputs:multiplier', 3.0, False], ], 'outputs': [ ['outputs:float3Array', [[3.0, 6.0, 9.0], [6.0, 9.0, 12.0]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TupleArrays", "omni.graph.test.TupleArrays", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TupleArrays User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TupleArrays","omni.graph.test.TupleArrays", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TupleArrays User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnTestTupleArraysDatabase import OgnTestTupleArraysDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TupleArrays", "omni.graph.test.TupleArrays") }) database = OgnTestTupleArraysDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:float3Array")) attribute = test_node.get_attribute("inputs:float3Array") db_value = database.inputs.float3Array expected_value = [] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:multiplier")) attribute = test_node.get_attribute("inputs:multiplier") db_value = database.inputs.multiplier expected_value = 1.0 ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:float3Array")) attribute = test_node.get_attribute("outputs:float3Array") db_value = database.outputs.float3Array
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleConsumerPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundleConsumerPyDatabase import OgnBundleConsumerPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleConsumerPy", "omni.graph.test.BundleConsumerPy") }) database = OgnBundleConsumerPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:bundle")) attribute = test_node.get_attribute("inputs:bundle") db_value = database.inputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs_bundle")) attribute = test_node.get_attribute("outputs_bundle") db_value = database.outputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs:hasOutputBundleChanged")) attribute = test_node.get_attribute("outputs:hasOutputBundleChanged") db_value = database.outputs.hasOutputBundleChanged
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestAllowedTokens.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:simpleTokens', "red", False], ['inputs:specialTokens', "<", False], ], 'outputs': [ ['outputs:combinedTokens', "red<", False], ], }, { 'inputs': [ ['inputs:simpleTokens', "green", False], ['inputs:specialTokens', ">", False], ], 'outputs': [ ['outputs:combinedTokens', "green>", False], ], }, { 'inputs': [ ['inputs:simpleTokens', "blue", False], ['inputs:specialTokens', "<", False], ], 'outputs': [ ['outputs:combinedTokens', "blue<", False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllowedTokens", "omni.graph.test.TestAllowedTokens", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllowedTokens User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestAllowedTokens","omni.graph.test.TestAllowedTokens", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestAllowedTokens User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnTestAllowedTokensDatabase import OgnTestAllowedTokensDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestAllowedTokens", "omni.graph.test.TestAllowedTokens") }) database = OgnTestAllowedTokensDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:simpleTokens")) attribute = test_node.get_attribute("inputs:simpleTokens") db_value = database.inputs.simpleTokens expected_value = "red" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:specialTokens")) attribute = test_node.get_attribute("inputs:specialTokens") db_value = database.inputs.specialTokens expected_value = ">" ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:combinedTokens")) attribute = test_node.get_attribute("outputs:combinedTokens") db_value = database.outputs.combinedTokens
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnTestNanInfPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): TEST_DATA = [ { 'inputs': [ ['inputs:a_colord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colord4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colord4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colord4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colord4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorh4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_colorh4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_colorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_colorh4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_colorh4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_double_inf', float("-Inf"), False], ['inputs:a_double_ninf', float("Inf"), False], ['inputs:a_double2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_double2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_double3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_double3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_double4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_double4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_double_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_double_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_double2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_double2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_double3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_double3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_double4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_double4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_float_inf', float("-Inf"), False], ['inputs:a_float_ninf', float("Inf"), False], ['inputs:a_float2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_float2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_float3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_float3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_float4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_float4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_float_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_float_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_float2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_float2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_float3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_float3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_float4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_float4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_frame4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_frame4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_frame4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_frame4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_half_inf', float("-Inf"), False], ['inputs:a_half_ninf', float("Inf"), False], ['inputs:a_half2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_half2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_half3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_half3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_half4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_half4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_half_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_half_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_half2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_half2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_half3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_half3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_half4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_half4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_matrixd2_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_matrixd2_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_matrixd3_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_matrixd3_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_matrixd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_matrixd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_matrixd2_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_matrixd2_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_matrixd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_matrixd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_matrixd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_matrixd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_normald3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_normald3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_normald3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_normald3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_normalf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_normalf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_normalf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_normalf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_normalh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_normalh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_normalh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_normalh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_pointd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_pointd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_pointd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_pointd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_pointf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_pointf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_pointf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_pointf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_pointh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_pointh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_pointh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_pointh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_quatd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_quatd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_quatd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_quatd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_quatf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_quatf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_quatf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_quatf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_quath4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_quath4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_quath4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_quath4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_texcoordd2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordd2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_texcoordd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_texcoordd2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordd2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_texcoordd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_texcoordf2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordf2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_texcoordf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_texcoordf2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordf2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_texcoordf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_texcoordh2_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordh2_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_texcoordh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_texcoordh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_texcoordh2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordh2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['inputs:a_texcoordh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_texcoordh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_timecode_inf', float("-Inf"), False], ['inputs:a_timecode_ninf', float("Inf"), False], ['inputs:a_timecode_array_inf', [float("-Inf"), float("-Inf")], False], ['inputs:a_timecode_array_ninf', [float("Inf"), float("Inf")], False], ['inputs:a_vectord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_vectord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_vectord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_vectord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_vectorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_vectorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_vectorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_vectorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['inputs:a_vectorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['inputs:a_vectorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['inputs:a_vectorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['inputs:a_vectorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ], 'outputs': [ ['outputs:a_colord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colord4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colord4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colord4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colord4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorh4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_colorh4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_colorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_colorh4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_colorh4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_double_inf', float("-Inf"), False], ['outputs:a_double_ninf', float("Inf"), False], ['outputs:a_double2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_double2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_double3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_double3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_double4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_double4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_double_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_double_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_double2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_double2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_double3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_double3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_double4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_double4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_float_inf', float("-Inf"), False], ['outputs:a_float_ninf', float("Inf"), False], ['outputs:a_float2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_float2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_float3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_float3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_float4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_float4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_float_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_float_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_float2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_float2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_float3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_float3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_float4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_float4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_frame4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_frame4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_frame4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_frame4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_half_inf', float("-Inf"), False], ['outputs:a_half_ninf', float("Inf"), False], ['outputs:a_half2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_half2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_half3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_half3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_half4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_half4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_half_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_half_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_half2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_half2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_half3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_half3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_half4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_half4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_matrixd2_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_matrixd2_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_matrixd3_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_matrixd3_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_matrixd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_matrixd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_matrixd2_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_matrixd2_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_matrixd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_matrixd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_matrixd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_matrixd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_normald3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_normald3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_normald3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_normald3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_normalf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_normalf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_normalf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_normalf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_normalh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_normalh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_normalh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_normalh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_pointd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_pointd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_pointd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_pointd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_pointf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_pointf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_pointf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_pointf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_pointh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_pointh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_pointh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_pointh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_quatd4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_quatd4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_quatd4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_quatd4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_quatf4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_quatf4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_quatf4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_quatf4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_quath4_inf', [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_quath4_ninf', [float("Inf"), float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_quath4_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_quath4_array_ninf', [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_texcoordd2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordd2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_texcoordd3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordd3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_texcoordd2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordd2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_texcoordd3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordd3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_texcoordf2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordf2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_texcoordf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_texcoordf2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordf2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_texcoordf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_texcoordh2_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordh2_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_texcoordh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_texcoordh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_texcoordh2_array_inf', [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordh2_array_ninf', [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], False], ['outputs:a_texcoordh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_texcoordh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_timecode_inf', float("-Inf"), False], ['outputs:a_timecode_ninf', float("Inf"), False], ['outputs:a_timecode_array_inf', [float("-Inf"), float("-Inf")], False], ['outputs:a_timecode_array_ninf', [float("Inf"), float("Inf")], False], ['outputs:a_vectord3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_vectord3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_vectord3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_vectord3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_vectorf3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_vectorf3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_vectorf3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_vectorf3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ['outputs:a_vectorh3_inf', [float("-Inf"), float("-Inf"), float("-Inf")], False], ['outputs:a_vectorh3_ninf', [float("Inf"), float("Inf"), float("Inf")], False], ['outputs:a_vectorh3_array_inf', [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], False], ['outputs:a_vectorh3_array_ninf', [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], False], ], }, ] async def test_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestNanInfPy", "omni.graph.test.TestNanInfPy", test_run, test_info) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestNanInfPy User test case #{i+1}") async def test_vectorized_generated(self): test_info = _TestGraphAndNode() controller = og.Controller() for i, test_run in enumerate(self.TEST_DATA): await _test_clear_scene(self, test_run) test_info = await _test_setup_scene(self, controller, "/TestGraph", "TestNode_omni_graph_test_TestNanInfPy","omni.graph.test.TestNanInfPy", test_run, test_info, 16) await controller.evaluate(test_info.graph) _test_verify_scene(self, controller, test_run, test_info, f"omni.graph.test.TestNanInfPy User test case #{i+1}", 16) async def test_data_access(self): from omni.graph.test.ogn.OgnTestNanInfPyDatabase import OgnTestNanInfPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_TestNanInfPy", "omni.graph.test.TestNanInfPy") }) database = OgnTestNanInfPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_inf")) attribute = test_node.get_attribute("inputs:a_colord3_array_inf") db_value = database.inputs.a_colord3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_nan")) attribute = test_node.get_attribute("inputs:a_colord3_array_nan") db_value = database.inputs.a_colord3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_ninf")) attribute = test_node.get_attribute("inputs:a_colord3_array_ninf") db_value = database.inputs.a_colord3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_array_snan")) attribute = test_node.get_attribute("inputs:a_colord3_array_snan") db_value = database.inputs.a_colord3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_inf")) attribute = test_node.get_attribute("inputs:a_colord3_inf") db_value = database.inputs.a_colord3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_nan")) attribute = test_node.get_attribute("inputs:a_colord3_nan") db_value = database.inputs.a_colord3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_ninf")) attribute = test_node.get_attribute("inputs:a_colord3_ninf") db_value = database.inputs.a_colord3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord3_snan")) attribute = test_node.get_attribute("inputs:a_colord3_snan") db_value = database.inputs.a_colord3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_inf")) attribute = test_node.get_attribute("inputs:a_colord4_array_inf") db_value = database.inputs.a_colord4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_nan")) attribute = test_node.get_attribute("inputs:a_colord4_array_nan") db_value = database.inputs.a_colord4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_ninf")) attribute = test_node.get_attribute("inputs:a_colord4_array_ninf") db_value = database.inputs.a_colord4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_array_snan")) attribute = test_node.get_attribute("inputs:a_colord4_array_snan") db_value = database.inputs.a_colord4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_inf")) attribute = test_node.get_attribute("inputs:a_colord4_inf") db_value = database.inputs.a_colord4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_nan")) attribute = test_node.get_attribute("inputs:a_colord4_nan") db_value = database.inputs.a_colord4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_ninf")) attribute = test_node.get_attribute("inputs:a_colord4_ninf") db_value = database.inputs.a_colord4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colord4_snan")) attribute = test_node.get_attribute("inputs:a_colord4_snan") db_value = database.inputs.a_colord4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_inf")) attribute = test_node.get_attribute("inputs:a_colorf3_array_inf") db_value = database.inputs.a_colorf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_nan")) attribute = test_node.get_attribute("inputs:a_colorf3_array_nan") db_value = database.inputs.a_colorf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorf3_array_ninf") db_value = database.inputs.a_colorf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_array_snan")) attribute = test_node.get_attribute("inputs:a_colorf3_array_snan") db_value = database.inputs.a_colorf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_inf")) attribute = test_node.get_attribute("inputs:a_colorf3_inf") db_value = database.inputs.a_colorf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_nan")) attribute = test_node.get_attribute("inputs:a_colorf3_nan") db_value = database.inputs.a_colorf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_ninf")) attribute = test_node.get_attribute("inputs:a_colorf3_ninf") db_value = database.inputs.a_colorf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf3_snan")) attribute = test_node.get_attribute("inputs:a_colorf3_snan") db_value = database.inputs.a_colorf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_inf")) attribute = test_node.get_attribute("inputs:a_colorf4_array_inf") db_value = database.inputs.a_colorf4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_nan")) attribute = test_node.get_attribute("inputs:a_colorf4_array_nan") db_value = database.inputs.a_colorf4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorf4_array_ninf") db_value = database.inputs.a_colorf4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_array_snan")) attribute = test_node.get_attribute("inputs:a_colorf4_array_snan") db_value = database.inputs.a_colorf4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_inf")) attribute = test_node.get_attribute("inputs:a_colorf4_inf") db_value = database.inputs.a_colorf4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_nan")) attribute = test_node.get_attribute("inputs:a_colorf4_nan") db_value = database.inputs.a_colorf4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_ninf")) attribute = test_node.get_attribute("inputs:a_colorf4_ninf") db_value = database.inputs.a_colorf4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorf4_snan")) attribute = test_node.get_attribute("inputs:a_colorf4_snan") db_value = database.inputs.a_colorf4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_inf")) attribute = test_node.get_attribute("inputs:a_colorh3_array_inf") db_value = database.inputs.a_colorh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_nan")) attribute = test_node.get_attribute("inputs:a_colorh3_array_nan") db_value = database.inputs.a_colorh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorh3_array_ninf") db_value = database.inputs.a_colorh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_array_snan")) attribute = test_node.get_attribute("inputs:a_colorh3_array_snan") db_value = database.inputs.a_colorh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_inf")) attribute = test_node.get_attribute("inputs:a_colorh3_inf") db_value = database.inputs.a_colorh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_nan")) attribute = test_node.get_attribute("inputs:a_colorh3_nan") db_value = database.inputs.a_colorh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_ninf")) attribute = test_node.get_attribute("inputs:a_colorh3_ninf") db_value = database.inputs.a_colorh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh3_snan")) attribute = test_node.get_attribute("inputs:a_colorh3_snan") db_value = database.inputs.a_colorh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_inf")) attribute = test_node.get_attribute("inputs:a_colorh4_array_inf") db_value = database.inputs.a_colorh4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_nan")) attribute = test_node.get_attribute("inputs:a_colorh4_array_nan") db_value = database.inputs.a_colorh4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_ninf")) attribute = test_node.get_attribute("inputs:a_colorh4_array_ninf") db_value = database.inputs.a_colorh4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_array_snan")) attribute = test_node.get_attribute("inputs:a_colorh4_array_snan") db_value = database.inputs.a_colorh4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_inf")) attribute = test_node.get_attribute("inputs:a_colorh4_inf") db_value = database.inputs.a_colorh4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_nan")) attribute = test_node.get_attribute("inputs:a_colorh4_nan") db_value = database.inputs.a_colorh4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_ninf")) attribute = test_node.get_attribute("inputs:a_colorh4_ninf") db_value = database.inputs.a_colorh4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_colorh4_snan")) attribute = test_node.get_attribute("inputs:a_colorh4_snan") db_value = database.inputs.a_colorh4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_inf")) attribute = test_node.get_attribute("inputs:a_double2_array_inf") db_value = database.inputs.a_double2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_nan")) attribute = test_node.get_attribute("inputs:a_double2_array_nan") db_value = database.inputs.a_double2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_ninf")) attribute = test_node.get_attribute("inputs:a_double2_array_ninf") db_value = database.inputs.a_double2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_array_snan")) attribute = test_node.get_attribute("inputs:a_double2_array_snan") db_value = database.inputs.a_double2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_inf")) attribute = test_node.get_attribute("inputs:a_double2_inf") db_value = database.inputs.a_double2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_nan")) attribute = test_node.get_attribute("inputs:a_double2_nan") db_value = database.inputs.a_double2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_ninf")) attribute = test_node.get_attribute("inputs:a_double2_ninf") db_value = database.inputs.a_double2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double2_snan")) attribute = test_node.get_attribute("inputs:a_double2_snan") db_value = database.inputs.a_double2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_inf")) attribute = test_node.get_attribute("inputs:a_double3_array_inf") db_value = database.inputs.a_double3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_nan")) attribute = test_node.get_attribute("inputs:a_double3_array_nan") db_value = database.inputs.a_double3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_ninf")) attribute = test_node.get_attribute("inputs:a_double3_array_ninf") db_value = database.inputs.a_double3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_array_snan")) attribute = test_node.get_attribute("inputs:a_double3_array_snan") db_value = database.inputs.a_double3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_inf")) attribute = test_node.get_attribute("inputs:a_double3_inf") db_value = database.inputs.a_double3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_nan")) attribute = test_node.get_attribute("inputs:a_double3_nan") db_value = database.inputs.a_double3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_ninf")) attribute = test_node.get_attribute("inputs:a_double3_ninf") db_value = database.inputs.a_double3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double3_snan")) attribute = test_node.get_attribute("inputs:a_double3_snan") db_value = database.inputs.a_double3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_inf")) attribute = test_node.get_attribute("inputs:a_double4_array_inf") db_value = database.inputs.a_double4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_nan")) attribute = test_node.get_attribute("inputs:a_double4_array_nan") db_value = database.inputs.a_double4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_ninf")) attribute = test_node.get_attribute("inputs:a_double4_array_ninf") db_value = database.inputs.a_double4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_array_snan")) attribute = test_node.get_attribute("inputs:a_double4_array_snan") db_value = database.inputs.a_double4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_inf")) attribute = test_node.get_attribute("inputs:a_double4_inf") db_value = database.inputs.a_double4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_nan")) attribute = test_node.get_attribute("inputs:a_double4_nan") db_value = database.inputs.a_double4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_ninf")) attribute = test_node.get_attribute("inputs:a_double4_ninf") db_value = database.inputs.a_double4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double4_snan")) attribute = test_node.get_attribute("inputs:a_double4_snan") db_value = database.inputs.a_double4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_inf")) attribute = test_node.get_attribute("inputs:a_double_array_inf") db_value = database.inputs.a_double_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_nan")) attribute = test_node.get_attribute("inputs:a_double_array_nan") db_value = database.inputs.a_double_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_ninf")) attribute = test_node.get_attribute("inputs:a_double_array_ninf") db_value = database.inputs.a_double_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_array_snan")) attribute = test_node.get_attribute("inputs:a_double_array_snan") db_value = database.inputs.a_double_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_inf")) attribute = test_node.get_attribute("inputs:a_double_inf") db_value = database.inputs.a_double_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_nan")) attribute = test_node.get_attribute("inputs:a_double_nan") db_value = database.inputs.a_double_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_ninf")) attribute = test_node.get_attribute("inputs:a_double_ninf") db_value = database.inputs.a_double_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_double_snan")) attribute = test_node.get_attribute("inputs:a_double_snan") db_value = database.inputs.a_double_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_inf")) attribute = test_node.get_attribute("inputs:a_float2_array_inf") db_value = database.inputs.a_float2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_nan")) attribute = test_node.get_attribute("inputs:a_float2_array_nan") db_value = database.inputs.a_float2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_ninf")) attribute = test_node.get_attribute("inputs:a_float2_array_ninf") db_value = database.inputs.a_float2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_array_snan")) attribute = test_node.get_attribute("inputs:a_float2_array_snan") db_value = database.inputs.a_float2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_inf")) attribute = test_node.get_attribute("inputs:a_float2_inf") db_value = database.inputs.a_float2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_nan")) attribute = test_node.get_attribute("inputs:a_float2_nan") db_value = database.inputs.a_float2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_ninf")) attribute = test_node.get_attribute("inputs:a_float2_ninf") db_value = database.inputs.a_float2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float2_snan")) attribute = test_node.get_attribute("inputs:a_float2_snan") db_value = database.inputs.a_float2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_inf")) attribute = test_node.get_attribute("inputs:a_float3_array_inf") db_value = database.inputs.a_float3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_nan")) attribute = test_node.get_attribute("inputs:a_float3_array_nan") db_value = database.inputs.a_float3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_ninf")) attribute = test_node.get_attribute("inputs:a_float3_array_ninf") db_value = database.inputs.a_float3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_array_snan")) attribute = test_node.get_attribute("inputs:a_float3_array_snan") db_value = database.inputs.a_float3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_inf")) attribute = test_node.get_attribute("inputs:a_float3_inf") db_value = database.inputs.a_float3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_nan")) attribute = test_node.get_attribute("inputs:a_float3_nan") db_value = database.inputs.a_float3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_ninf")) attribute = test_node.get_attribute("inputs:a_float3_ninf") db_value = database.inputs.a_float3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float3_snan")) attribute = test_node.get_attribute("inputs:a_float3_snan") db_value = database.inputs.a_float3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_inf")) attribute = test_node.get_attribute("inputs:a_float4_array_inf") db_value = database.inputs.a_float4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_nan")) attribute = test_node.get_attribute("inputs:a_float4_array_nan") db_value = database.inputs.a_float4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_ninf")) attribute = test_node.get_attribute("inputs:a_float4_array_ninf") db_value = database.inputs.a_float4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_array_snan")) attribute = test_node.get_attribute("inputs:a_float4_array_snan") db_value = database.inputs.a_float4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_inf")) attribute = test_node.get_attribute("inputs:a_float4_inf") db_value = database.inputs.a_float4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_nan")) attribute = test_node.get_attribute("inputs:a_float4_nan") db_value = database.inputs.a_float4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_ninf")) attribute = test_node.get_attribute("inputs:a_float4_ninf") db_value = database.inputs.a_float4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float4_snan")) attribute = test_node.get_attribute("inputs:a_float4_snan") db_value = database.inputs.a_float4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_inf")) attribute = test_node.get_attribute("inputs:a_float_array_inf") db_value = database.inputs.a_float_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_nan")) attribute = test_node.get_attribute("inputs:a_float_array_nan") db_value = database.inputs.a_float_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_ninf")) attribute = test_node.get_attribute("inputs:a_float_array_ninf") db_value = database.inputs.a_float_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_array_snan")) attribute = test_node.get_attribute("inputs:a_float_array_snan") db_value = database.inputs.a_float_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_inf")) attribute = test_node.get_attribute("inputs:a_float_inf") db_value = database.inputs.a_float_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_nan")) attribute = test_node.get_attribute("inputs:a_float_nan") db_value = database.inputs.a_float_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_ninf")) attribute = test_node.get_attribute("inputs:a_float_ninf") db_value = database.inputs.a_float_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_float_snan")) attribute = test_node.get_attribute("inputs:a_float_snan") db_value = database.inputs.a_float_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_inf")) attribute = test_node.get_attribute("inputs:a_frame4_array_inf") db_value = database.inputs.a_frame4_array_inf expected_value = [[[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_nan")) attribute = test_node.get_attribute("inputs:a_frame4_array_nan") db_value = database.inputs.a_frame4_array_nan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_ninf")) attribute = test_node.get_attribute("inputs:a_frame4_array_ninf") db_value = database.inputs.a_frame4_array_ninf expected_value = [[[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_array_snan")) attribute = test_node.get_attribute("inputs:a_frame4_array_snan") db_value = database.inputs.a_frame4_array_snan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_inf")) attribute = test_node.get_attribute("inputs:a_frame4_inf") db_value = database.inputs.a_frame4_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_nan")) attribute = test_node.get_attribute("inputs:a_frame4_nan") db_value = database.inputs.a_frame4_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_ninf")) attribute = test_node.get_attribute("inputs:a_frame4_ninf") db_value = database.inputs.a_frame4_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_frame4_snan")) attribute = test_node.get_attribute("inputs:a_frame4_snan") db_value = database.inputs.a_frame4_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_inf")) attribute = test_node.get_attribute("inputs:a_half2_array_inf") db_value = database.inputs.a_half2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_nan")) attribute = test_node.get_attribute("inputs:a_half2_array_nan") db_value = database.inputs.a_half2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_ninf")) attribute = test_node.get_attribute("inputs:a_half2_array_ninf") db_value = database.inputs.a_half2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_array_snan")) attribute = test_node.get_attribute("inputs:a_half2_array_snan") db_value = database.inputs.a_half2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_inf")) attribute = test_node.get_attribute("inputs:a_half2_inf") db_value = database.inputs.a_half2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_nan")) attribute = test_node.get_attribute("inputs:a_half2_nan") db_value = database.inputs.a_half2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_ninf")) attribute = test_node.get_attribute("inputs:a_half2_ninf") db_value = database.inputs.a_half2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half2_snan")) attribute = test_node.get_attribute("inputs:a_half2_snan") db_value = database.inputs.a_half2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_inf")) attribute = test_node.get_attribute("inputs:a_half3_array_inf") db_value = database.inputs.a_half3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_nan")) attribute = test_node.get_attribute("inputs:a_half3_array_nan") db_value = database.inputs.a_half3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_ninf")) attribute = test_node.get_attribute("inputs:a_half3_array_ninf") db_value = database.inputs.a_half3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_array_snan")) attribute = test_node.get_attribute("inputs:a_half3_array_snan") db_value = database.inputs.a_half3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_inf")) attribute = test_node.get_attribute("inputs:a_half3_inf") db_value = database.inputs.a_half3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_nan")) attribute = test_node.get_attribute("inputs:a_half3_nan") db_value = database.inputs.a_half3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_ninf")) attribute = test_node.get_attribute("inputs:a_half3_ninf") db_value = database.inputs.a_half3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half3_snan")) attribute = test_node.get_attribute("inputs:a_half3_snan") db_value = database.inputs.a_half3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_inf")) attribute = test_node.get_attribute("inputs:a_half4_array_inf") db_value = database.inputs.a_half4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_nan")) attribute = test_node.get_attribute("inputs:a_half4_array_nan") db_value = database.inputs.a_half4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_ninf")) attribute = test_node.get_attribute("inputs:a_half4_array_ninf") db_value = database.inputs.a_half4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_array_snan")) attribute = test_node.get_attribute("inputs:a_half4_array_snan") db_value = database.inputs.a_half4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_inf")) attribute = test_node.get_attribute("inputs:a_half4_inf") db_value = database.inputs.a_half4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_nan")) attribute = test_node.get_attribute("inputs:a_half4_nan") db_value = database.inputs.a_half4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_ninf")) attribute = test_node.get_attribute("inputs:a_half4_ninf") db_value = database.inputs.a_half4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half4_snan")) attribute = test_node.get_attribute("inputs:a_half4_snan") db_value = database.inputs.a_half4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_inf")) attribute = test_node.get_attribute("inputs:a_half_array_inf") db_value = database.inputs.a_half_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_nan")) attribute = test_node.get_attribute("inputs:a_half_array_nan") db_value = database.inputs.a_half_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_ninf")) attribute = test_node.get_attribute("inputs:a_half_array_ninf") db_value = database.inputs.a_half_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_array_snan")) attribute = test_node.get_attribute("inputs:a_half_array_snan") db_value = database.inputs.a_half_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_inf")) attribute = test_node.get_attribute("inputs:a_half_inf") db_value = database.inputs.a_half_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_nan")) attribute = test_node.get_attribute("inputs:a_half_nan") db_value = database.inputs.a_half_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_ninf")) attribute = test_node.get_attribute("inputs:a_half_ninf") db_value = database.inputs.a_half_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_half_snan")) attribute = test_node.get_attribute("inputs:a_half_snan") db_value = database.inputs.a_half_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_inf")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_inf") db_value = database.inputs.a_matrixd2_array_inf expected_value = [[[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]], [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_nan")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_nan") db_value = database.inputs.a_matrixd2_array_nan expected_value = [[[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]], [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_ninf") db_value = database.inputs.a_matrixd2_array_ninf expected_value = [[[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_array_snan")) attribute = test_node.get_attribute("inputs:a_matrixd2_array_snan") db_value = database.inputs.a_matrixd2_array_snan expected_value = [[[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]], [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_inf")) attribute = test_node.get_attribute("inputs:a_matrixd2_inf") db_value = database.inputs.a_matrixd2_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_nan")) attribute = test_node.get_attribute("inputs:a_matrixd2_nan") db_value = database.inputs.a_matrixd2_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd2_ninf") db_value = database.inputs.a_matrixd2_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd2_snan")) attribute = test_node.get_attribute("inputs:a_matrixd2_snan") db_value = database.inputs.a_matrixd2_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_inf")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_inf") db_value = database.inputs.a_matrixd3_array_inf expected_value = [[[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]], [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_nan")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_nan") db_value = database.inputs.a_matrixd3_array_nan expected_value = [[[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_ninf") db_value = database.inputs.a_matrixd3_array_ninf expected_value = [[[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_array_snan")) attribute = test_node.get_attribute("inputs:a_matrixd3_array_snan") db_value = database.inputs.a_matrixd3_array_snan expected_value = [[[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_inf")) attribute = test_node.get_attribute("inputs:a_matrixd3_inf") db_value = database.inputs.a_matrixd3_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_nan")) attribute = test_node.get_attribute("inputs:a_matrixd3_nan") db_value = database.inputs.a_matrixd3_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd3_ninf") db_value = database.inputs.a_matrixd3_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd3_snan")) attribute = test_node.get_attribute("inputs:a_matrixd3_snan") db_value = database.inputs.a_matrixd3_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_inf")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_inf") db_value = database.inputs.a_matrixd4_array_inf expected_value = [[[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]], [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_nan")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_nan") db_value = database.inputs.a_matrixd4_array_nan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_ninf") db_value = database.inputs.a_matrixd4_array_ninf expected_value = [[[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]], [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_array_snan")) attribute = test_node.get_attribute("inputs:a_matrixd4_array_snan") db_value = database.inputs.a_matrixd4_array_snan expected_value = [[[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]], [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_inf")) attribute = test_node.get_attribute("inputs:a_matrixd4_inf") db_value = database.inputs.a_matrixd4_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_nan")) attribute = test_node.get_attribute("inputs:a_matrixd4_nan") db_value = database.inputs.a_matrixd4_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_ninf")) attribute = test_node.get_attribute("inputs:a_matrixd4_ninf") db_value = database.inputs.a_matrixd4_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_matrixd4_snan")) attribute = test_node.get_attribute("inputs:a_matrixd4_snan") db_value = database.inputs.a_matrixd4_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_inf")) attribute = test_node.get_attribute("inputs:a_normald3_array_inf") db_value = database.inputs.a_normald3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_nan")) attribute = test_node.get_attribute("inputs:a_normald3_array_nan") db_value = database.inputs.a_normald3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_ninf")) attribute = test_node.get_attribute("inputs:a_normald3_array_ninf") db_value = database.inputs.a_normald3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_array_snan")) attribute = test_node.get_attribute("inputs:a_normald3_array_snan") db_value = database.inputs.a_normald3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_inf")) attribute = test_node.get_attribute("inputs:a_normald3_inf") db_value = database.inputs.a_normald3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_nan")) attribute = test_node.get_attribute("inputs:a_normald3_nan") db_value = database.inputs.a_normald3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_ninf")) attribute = test_node.get_attribute("inputs:a_normald3_ninf") db_value = database.inputs.a_normald3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normald3_snan")) attribute = test_node.get_attribute("inputs:a_normald3_snan") db_value = database.inputs.a_normald3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_inf")) attribute = test_node.get_attribute("inputs:a_normalf3_array_inf") db_value = database.inputs.a_normalf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_nan")) attribute = test_node.get_attribute("inputs:a_normalf3_array_nan") db_value = database.inputs.a_normalf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_normalf3_array_ninf") db_value = database.inputs.a_normalf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_array_snan")) attribute = test_node.get_attribute("inputs:a_normalf3_array_snan") db_value = database.inputs.a_normalf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_inf")) attribute = test_node.get_attribute("inputs:a_normalf3_inf") db_value = database.inputs.a_normalf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_nan")) attribute = test_node.get_attribute("inputs:a_normalf3_nan") db_value = database.inputs.a_normalf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_ninf")) attribute = test_node.get_attribute("inputs:a_normalf3_ninf") db_value = database.inputs.a_normalf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalf3_snan")) attribute = test_node.get_attribute("inputs:a_normalf3_snan") db_value = database.inputs.a_normalf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_inf")) attribute = test_node.get_attribute("inputs:a_normalh3_array_inf") db_value = database.inputs.a_normalh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_nan")) attribute = test_node.get_attribute("inputs:a_normalh3_array_nan") db_value = database.inputs.a_normalh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_normalh3_array_ninf") db_value = database.inputs.a_normalh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_array_snan")) attribute = test_node.get_attribute("inputs:a_normalh3_array_snan") db_value = database.inputs.a_normalh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_inf")) attribute = test_node.get_attribute("inputs:a_normalh3_inf") db_value = database.inputs.a_normalh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_nan")) attribute = test_node.get_attribute("inputs:a_normalh3_nan") db_value = database.inputs.a_normalh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_ninf")) attribute = test_node.get_attribute("inputs:a_normalh3_ninf") db_value = database.inputs.a_normalh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_normalh3_snan")) attribute = test_node.get_attribute("inputs:a_normalh3_snan") db_value = database.inputs.a_normalh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_inf")) attribute = test_node.get_attribute("inputs:a_pointd3_array_inf") db_value = database.inputs.a_pointd3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_nan")) attribute = test_node.get_attribute("inputs:a_pointd3_array_nan") db_value = database.inputs.a_pointd3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_ninf")) attribute = test_node.get_attribute("inputs:a_pointd3_array_ninf") db_value = database.inputs.a_pointd3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_array_snan")) attribute = test_node.get_attribute("inputs:a_pointd3_array_snan") db_value = database.inputs.a_pointd3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_inf")) attribute = test_node.get_attribute("inputs:a_pointd3_inf") db_value = database.inputs.a_pointd3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_nan")) attribute = test_node.get_attribute("inputs:a_pointd3_nan") db_value = database.inputs.a_pointd3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_ninf")) attribute = test_node.get_attribute("inputs:a_pointd3_ninf") db_value = database.inputs.a_pointd3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointd3_snan")) attribute = test_node.get_attribute("inputs:a_pointd3_snan") db_value = database.inputs.a_pointd3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_inf")) attribute = test_node.get_attribute("inputs:a_pointf3_array_inf") db_value = database.inputs.a_pointf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_nan")) attribute = test_node.get_attribute("inputs:a_pointf3_array_nan") db_value = database.inputs.a_pointf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_pointf3_array_ninf") db_value = database.inputs.a_pointf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_array_snan")) attribute = test_node.get_attribute("inputs:a_pointf3_array_snan") db_value = database.inputs.a_pointf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_inf")) attribute = test_node.get_attribute("inputs:a_pointf3_inf") db_value = database.inputs.a_pointf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_nan")) attribute = test_node.get_attribute("inputs:a_pointf3_nan") db_value = database.inputs.a_pointf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_ninf")) attribute = test_node.get_attribute("inputs:a_pointf3_ninf") db_value = database.inputs.a_pointf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointf3_snan")) attribute = test_node.get_attribute("inputs:a_pointf3_snan") db_value = database.inputs.a_pointf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_inf")) attribute = test_node.get_attribute("inputs:a_pointh3_array_inf") db_value = database.inputs.a_pointh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_nan")) attribute = test_node.get_attribute("inputs:a_pointh3_array_nan") db_value = database.inputs.a_pointh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_pointh3_array_ninf") db_value = database.inputs.a_pointh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_array_snan")) attribute = test_node.get_attribute("inputs:a_pointh3_array_snan") db_value = database.inputs.a_pointh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_inf")) attribute = test_node.get_attribute("inputs:a_pointh3_inf") db_value = database.inputs.a_pointh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_nan")) attribute = test_node.get_attribute("inputs:a_pointh3_nan") db_value = database.inputs.a_pointh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_ninf")) attribute = test_node.get_attribute("inputs:a_pointh3_ninf") db_value = database.inputs.a_pointh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_pointh3_snan")) attribute = test_node.get_attribute("inputs:a_pointh3_snan") db_value = database.inputs.a_pointh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_inf")) attribute = test_node.get_attribute("inputs:a_quatd4_array_inf") db_value = database.inputs.a_quatd4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_nan")) attribute = test_node.get_attribute("inputs:a_quatd4_array_nan") db_value = database.inputs.a_quatd4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_ninf")) attribute = test_node.get_attribute("inputs:a_quatd4_array_ninf") db_value = database.inputs.a_quatd4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_array_snan")) attribute = test_node.get_attribute("inputs:a_quatd4_array_snan") db_value = database.inputs.a_quatd4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_inf")) attribute = test_node.get_attribute("inputs:a_quatd4_inf") db_value = database.inputs.a_quatd4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_nan")) attribute = test_node.get_attribute("inputs:a_quatd4_nan") db_value = database.inputs.a_quatd4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_ninf")) attribute = test_node.get_attribute("inputs:a_quatd4_ninf") db_value = database.inputs.a_quatd4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatd4_snan")) attribute = test_node.get_attribute("inputs:a_quatd4_snan") db_value = database.inputs.a_quatd4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_inf")) attribute = test_node.get_attribute("inputs:a_quatf4_array_inf") db_value = database.inputs.a_quatf4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_nan")) attribute = test_node.get_attribute("inputs:a_quatf4_array_nan") db_value = database.inputs.a_quatf4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_ninf")) attribute = test_node.get_attribute("inputs:a_quatf4_array_ninf") db_value = database.inputs.a_quatf4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_array_snan")) attribute = test_node.get_attribute("inputs:a_quatf4_array_snan") db_value = database.inputs.a_quatf4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_inf")) attribute = test_node.get_attribute("inputs:a_quatf4_inf") db_value = database.inputs.a_quatf4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_nan")) attribute = test_node.get_attribute("inputs:a_quatf4_nan") db_value = database.inputs.a_quatf4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_ninf")) attribute = test_node.get_attribute("inputs:a_quatf4_ninf") db_value = database.inputs.a_quatf4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quatf4_snan")) attribute = test_node.get_attribute("inputs:a_quatf4_snan") db_value = database.inputs.a_quatf4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_inf")) attribute = test_node.get_attribute("inputs:a_quath4_array_inf") db_value = database.inputs.a_quath4_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_nan")) attribute = test_node.get_attribute("inputs:a_quath4_array_nan") db_value = database.inputs.a_quath4_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_ninf")) attribute = test_node.get_attribute("inputs:a_quath4_array_ninf") db_value = database.inputs.a_quath4_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_array_snan")) attribute = test_node.get_attribute("inputs:a_quath4_array_snan") db_value = database.inputs.a_quath4_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_inf")) attribute = test_node.get_attribute("inputs:a_quath4_inf") db_value = database.inputs.a_quath4_inf expected_value = [float("Inf"), float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_nan")) attribute = test_node.get_attribute("inputs:a_quath4_nan") db_value = database.inputs.a_quath4_nan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_ninf")) attribute = test_node.get_attribute("inputs:a_quath4_ninf") db_value = database.inputs.a_quath4_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_quath4_snan")) attribute = test_node.get_attribute("inputs:a_quath4_snan") db_value = database.inputs.a_quath4_snan expected_value = [float("NaN"), float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_inf") db_value = database.inputs.a_texcoordd2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_nan") db_value = database.inputs.a_texcoordd2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_ninf") db_value = database.inputs.a_texcoordd2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_array_snan") db_value = database.inputs.a_texcoordd2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_inf") db_value = database.inputs.a_texcoordd2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_nan") db_value = database.inputs.a_texcoordd2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd2_ninf") db_value = database.inputs.a_texcoordd2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd2_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd2_snan") db_value = database.inputs.a_texcoordd2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_inf") db_value = database.inputs.a_texcoordd3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_nan") db_value = database.inputs.a_texcoordd3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_ninf") db_value = database.inputs.a_texcoordd3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_array_snan") db_value = database.inputs.a_texcoordd3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_inf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_inf") db_value = database.inputs.a_texcoordd3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_nan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_nan") db_value = database.inputs.a_texcoordd3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordd3_ninf") db_value = database.inputs.a_texcoordd3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordd3_snan")) attribute = test_node.get_attribute("inputs:a_texcoordd3_snan") db_value = database.inputs.a_texcoordd3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_inf") db_value = database.inputs.a_texcoordf2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_nan") db_value = database.inputs.a_texcoordf2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_ninf") db_value = database.inputs.a_texcoordf2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_array_snan") db_value = database.inputs.a_texcoordf2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_inf") db_value = database.inputs.a_texcoordf2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_nan") db_value = database.inputs.a_texcoordf2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf2_ninf") db_value = database.inputs.a_texcoordf2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf2_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf2_snan") db_value = database.inputs.a_texcoordf2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_inf") db_value = database.inputs.a_texcoordf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_nan") db_value = database.inputs.a_texcoordf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_ninf") db_value = database.inputs.a_texcoordf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_array_snan") db_value = database.inputs.a_texcoordf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_inf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_inf") db_value = database.inputs.a_texcoordf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_nan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_nan") db_value = database.inputs.a_texcoordf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordf3_ninf") db_value = database.inputs.a_texcoordf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordf3_snan")) attribute = test_node.get_attribute("inputs:a_texcoordf3_snan") db_value = database.inputs.a_texcoordf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_inf") db_value = database.inputs.a_texcoordh2_array_inf expected_value = [[float("Inf"), float("Inf")], [float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_nan") db_value = database.inputs.a_texcoordh2_array_nan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_ninf") db_value = database.inputs.a_texcoordh2_array_ninf expected_value = [[float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_array_snan") db_value = database.inputs.a_texcoordh2_array_snan expected_value = [[float("NaN"), float("NaN")], [float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_inf") db_value = database.inputs.a_texcoordh2_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_nan") db_value = database.inputs.a_texcoordh2_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh2_ninf") db_value = database.inputs.a_texcoordh2_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh2_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh2_snan") db_value = database.inputs.a_texcoordh2_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_inf") db_value = database.inputs.a_texcoordh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_nan") db_value = database.inputs.a_texcoordh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_ninf") db_value = database.inputs.a_texcoordh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_array_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_array_snan") db_value = database.inputs.a_texcoordh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_inf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_inf") db_value = database.inputs.a_texcoordh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_nan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_nan") db_value = database.inputs.a_texcoordh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_ninf")) attribute = test_node.get_attribute("inputs:a_texcoordh3_ninf") db_value = database.inputs.a_texcoordh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_texcoordh3_snan")) attribute = test_node.get_attribute("inputs:a_texcoordh3_snan") db_value = database.inputs.a_texcoordh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_inf")) attribute = test_node.get_attribute("inputs:a_timecode_array_inf") db_value = database.inputs.a_timecode_array_inf expected_value = [float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_nan")) attribute = test_node.get_attribute("inputs:a_timecode_array_nan") db_value = database.inputs.a_timecode_array_nan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_ninf")) attribute = test_node.get_attribute("inputs:a_timecode_array_ninf") db_value = database.inputs.a_timecode_array_ninf expected_value = [float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_array_snan")) attribute = test_node.get_attribute("inputs:a_timecode_array_snan") db_value = database.inputs.a_timecode_array_snan expected_value = [float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_inf")) attribute = test_node.get_attribute("inputs:a_timecode_inf") db_value = database.inputs.a_timecode_inf expected_value = float("Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_nan")) attribute = test_node.get_attribute("inputs:a_timecode_nan") db_value = database.inputs.a_timecode_nan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_ninf")) attribute = test_node.get_attribute("inputs:a_timecode_ninf") db_value = database.inputs.a_timecode_ninf expected_value = float("-Inf") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_timecode_snan")) attribute = test_node.get_attribute("inputs:a_timecode_snan") db_value = database.inputs.a_timecode_snan expected_value = float("NaN") ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_inf")) attribute = test_node.get_attribute("inputs:a_vectord3_array_inf") db_value = database.inputs.a_vectord3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_nan")) attribute = test_node.get_attribute("inputs:a_vectord3_array_nan") db_value = database.inputs.a_vectord3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_ninf")) attribute = test_node.get_attribute("inputs:a_vectord3_array_ninf") db_value = database.inputs.a_vectord3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_array_snan")) attribute = test_node.get_attribute("inputs:a_vectord3_array_snan") db_value = database.inputs.a_vectord3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_inf")) attribute = test_node.get_attribute("inputs:a_vectord3_inf") db_value = database.inputs.a_vectord3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_nan")) attribute = test_node.get_attribute("inputs:a_vectord3_nan") db_value = database.inputs.a_vectord3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_ninf")) attribute = test_node.get_attribute("inputs:a_vectord3_ninf") db_value = database.inputs.a_vectord3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectord3_snan")) attribute = test_node.get_attribute("inputs:a_vectord3_snan") db_value = database.inputs.a_vectord3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_inf")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_inf") db_value = database.inputs.a_vectorf3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_nan")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_nan") db_value = database.inputs.a_vectorf3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_ninf")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_ninf") db_value = database.inputs.a_vectorf3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_array_snan")) attribute = test_node.get_attribute("inputs:a_vectorf3_array_snan") db_value = database.inputs.a_vectorf3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_inf")) attribute = test_node.get_attribute("inputs:a_vectorf3_inf") db_value = database.inputs.a_vectorf3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_nan")) attribute = test_node.get_attribute("inputs:a_vectorf3_nan") db_value = database.inputs.a_vectorf3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_ninf")) attribute = test_node.get_attribute("inputs:a_vectorf3_ninf") db_value = database.inputs.a_vectorf3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorf3_snan")) attribute = test_node.get_attribute("inputs:a_vectorf3_snan") db_value = database.inputs.a_vectorf3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_inf")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_inf") db_value = database.inputs.a_vectorh3_array_inf expected_value = [[float("Inf"), float("Inf"), float("Inf")], [float("Inf"), float("Inf"), float("Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_nan")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_nan") db_value = database.inputs.a_vectorh3_array_nan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_ninf")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_ninf") db_value = database.inputs.a_vectorh3_array_ninf expected_value = [[float("-Inf"), float("-Inf"), float("-Inf")], [float("-Inf"), float("-Inf"), float("-Inf")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_array_snan")) attribute = test_node.get_attribute("inputs:a_vectorh3_array_snan") db_value = database.inputs.a_vectorh3_array_snan expected_value = [[float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), float("NaN")]] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_inf")) attribute = test_node.get_attribute("inputs:a_vectorh3_inf") db_value = database.inputs.a_vectorh3_inf expected_value = [float("Inf"), float("Inf"), float("Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_nan")) attribute = test_node.get_attribute("inputs:a_vectorh3_nan") db_value = database.inputs.a_vectorh3_nan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_ninf")) attribute = test_node.get_attribute("inputs:a_vectorh3_ninf") db_value = database.inputs.a_vectorh3_ninf expected_value = [float("-Inf"), float("-Inf"), float("-Inf")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("inputs:a_vectorh3_snan")) attribute = test_node.get_attribute("inputs:a_vectorh3_snan") db_value = database.inputs.a_vectorh3_snan expected_value = [float("NaN"), float("NaN"), float("NaN")] ogts.verify_values(expected_value, db_value, _attr_error(attribute, False)) self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_inf")) attribute = test_node.get_attribute("outputs:a_colord3_array_inf") db_value = database.outputs.a_colord3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_nan")) attribute = test_node.get_attribute("outputs:a_colord3_array_nan") db_value = database.outputs.a_colord3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_ninf")) attribute = test_node.get_attribute("outputs:a_colord3_array_ninf") db_value = database.outputs.a_colord3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_array_snan")) attribute = test_node.get_attribute("outputs:a_colord3_array_snan") db_value = database.outputs.a_colord3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_inf")) attribute = test_node.get_attribute("outputs:a_colord3_inf") db_value = database.outputs.a_colord3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_nan")) attribute = test_node.get_attribute("outputs:a_colord3_nan") db_value = database.outputs.a_colord3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_ninf")) attribute = test_node.get_attribute("outputs:a_colord3_ninf") db_value = database.outputs.a_colord3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord3_snan")) attribute = test_node.get_attribute("outputs:a_colord3_snan") db_value = database.outputs.a_colord3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_inf")) attribute = test_node.get_attribute("outputs:a_colord4_array_inf") db_value = database.outputs.a_colord4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_nan")) attribute = test_node.get_attribute("outputs:a_colord4_array_nan") db_value = database.outputs.a_colord4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_ninf")) attribute = test_node.get_attribute("outputs:a_colord4_array_ninf") db_value = database.outputs.a_colord4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_array_snan")) attribute = test_node.get_attribute("outputs:a_colord4_array_snan") db_value = database.outputs.a_colord4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_inf")) attribute = test_node.get_attribute("outputs:a_colord4_inf") db_value = database.outputs.a_colord4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_nan")) attribute = test_node.get_attribute("outputs:a_colord4_nan") db_value = database.outputs.a_colord4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_ninf")) attribute = test_node.get_attribute("outputs:a_colord4_ninf") db_value = database.outputs.a_colord4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colord4_snan")) attribute = test_node.get_attribute("outputs:a_colord4_snan") db_value = database.outputs.a_colord4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_inf")) attribute = test_node.get_attribute("outputs:a_colorf3_array_inf") db_value = database.outputs.a_colorf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_nan")) attribute = test_node.get_attribute("outputs:a_colorf3_array_nan") db_value = database.outputs.a_colorf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorf3_array_ninf") db_value = database.outputs.a_colorf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_array_snan")) attribute = test_node.get_attribute("outputs:a_colorf3_array_snan") db_value = database.outputs.a_colorf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_inf")) attribute = test_node.get_attribute("outputs:a_colorf3_inf") db_value = database.outputs.a_colorf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_nan")) attribute = test_node.get_attribute("outputs:a_colorf3_nan") db_value = database.outputs.a_colorf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_ninf")) attribute = test_node.get_attribute("outputs:a_colorf3_ninf") db_value = database.outputs.a_colorf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf3_snan")) attribute = test_node.get_attribute("outputs:a_colorf3_snan") db_value = database.outputs.a_colorf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_inf")) attribute = test_node.get_attribute("outputs:a_colorf4_array_inf") db_value = database.outputs.a_colorf4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_nan")) attribute = test_node.get_attribute("outputs:a_colorf4_array_nan") db_value = database.outputs.a_colorf4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorf4_array_ninf") db_value = database.outputs.a_colorf4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_array_snan")) attribute = test_node.get_attribute("outputs:a_colorf4_array_snan") db_value = database.outputs.a_colorf4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_inf")) attribute = test_node.get_attribute("outputs:a_colorf4_inf") db_value = database.outputs.a_colorf4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_nan")) attribute = test_node.get_attribute("outputs:a_colorf4_nan") db_value = database.outputs.a_colorf4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_ninf")) attribute = test_node.get_attribute("outputs:a_colorf4_ninf") db_value = database.outputs.a_colorf4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorf4_snan")) attribute = test_node.get_attribute("outputs:a_colorf4_snan") db_value = database.outputs.a_colorf4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_inf")) attribute = test_node.get_attribute("outputs:a_colorh3_array_inf") db_value = database.outputs.a_colorh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_nan")) attribute = test_node.get_attribute("outputs:a_colorh3_array_nan") db_value = database.outputs.a_colorh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorh3_array_ninf") db_value = database.outputs.a_colorh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_array_snan")) attribute = test_node.get_attribute("outputs:a_colorh3_array_snan") db_value = database.outputs.a_colorh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_inf")) attribute = test_node.get_attribute("outputs:a_colorh3_inf") db_value = database.outputs.a_colorh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_nan")) attribute = test_node.get_attribute("outputs:a_colorh3_nan") db_value = database.outputs.a_colorh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_ninf")) attribute = test_node.get_attribute("outputs:a_colorh3_ninf") db_value = database.outputs.a_colorh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh3_snan")) attribute = test_node.get_attribute("outputs:a_colorh3_snan") db_value = database.outputs.a_colorh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_inf")) attribute = test_node.get_attribute("outputs:a_colorh4_array_inf") db_value = database.outputs.a_colorh4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_nan")) attribute = test_node.get_attribute("outputs:a_colorh4_array_nan") db_value = database.outputs.a_colorh4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_ninf")) attribute = test_node.get_attribute("outputs:a_colorh4_array_ninf") db_value = database.outputs.a_colorh4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_array_snan")) attribute = test_node.get_attribute("outputs:a_colorh4_array_snan") db_value = database.outputs.a_colorh4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_inf")) attribute = test_node.get_attribute("outputs:a_colorh4_inf") db_value = database.outputs.a_colorh4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_nan")) attribute = test_node.get_attribute("outputs:a_colorh4_nan") db_value = database.outputs.a_colorh4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_ninf")) attribute = test_node.get_attribute("outputs:a_colorh4_ninf") db_value = database.outputs.a_colorh4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_colorh4_snan")) attribute = test_node.get_attribute("outputs:a_colorh4_snan") db_value = database.outputs.a_colorh4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_inf")) attribute = test_node.get_attribute("outputs:a_double2_array_inf") db_value = database.outputs.a_double2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_nan")) attribute = test_node.get_attribute("outputs:a_double2_array_nan") db_value = database.outputs.a_double2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_ninf")) attribute = test_node.get_attribute("outputs:a_double2_array_ninf") db_value = database.outputs.a_double2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_array_snan")) attribute = test_node.get_attribute("outputs:a_double2_array_snan") db_value = database.outputs.a_double2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_inf")) attribute = test_node.get_attribute("outputs:a_double2_inf") db_value = database.outputs.a_double2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_nan")) attribute = test_node.get_attribute("outputs:a_double2_nan") db_value = database.outputs.a_double2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_ninf")) attribute = test_node.get_attribute("outputs:a_double2_ninf") db_value = database.outputs.a_double2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double2_snan")) attribute = test_node.get_attribute("outputs:a_double2_snan") db_value = database.outputs.a_double2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_inf")) attribute = test_node.get_attribute("outputs:a_double3_array_inf") db_value = database.outputs.a_double3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_nan")) attribute = test_node.get_attribute("outputs:a_double3_array_nan") db_value = database.outputs.a_double3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_ninf")) attribute = test_node.get_attribute("outputs:a_double3_array_ninf") db_value = database.outputs.a_double3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_array_snan")) attribute = test_node.get_attribute("outputs:a_double3_array_snan") db_value = database.outputs.a_double3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_inf")) attribute = test_node.get_attribute("outputs:a_double3_inf") db_value = database.outputs.a_double3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_nan")) attribute = test_node.get_attribute("outputs:a_double3_nan") db_value = database.outputs.a_double3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_ninf")) attribute = test_node.get_attribute("outputs:a_double3_ninf") db_value = database.outputs.a_double3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double3_snan")) attribute = test_node.get_attribute("outputs:a_double3_snan") db_value = database.outputs.a_double3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_inf")) attribute = test_node.get_attribute("outputs:a_double4_array_inf") db_value = database.outputs.a_double4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_nan")) attribute = test_node.get_attribute("outputs:a_double4_array_nan") db_value = database.outputs.a_double4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_ninf")) attribute = test_node.get_attribute("outputs:a_double4_array_ninf") db_value = database.outputs.a_double4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_array_snan")) attribute = test_node.get_attribute("outputs:a_double4_array_snan") db_value = database.outputs.a_double4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_inf")) attribute = test_node.get_attribute("outputs:a_double4_inf") db_value = database.outputs.a_double4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_nan")) attribute = test_node.get_attribute("outputs:a_double4_nan") db_value = database.outputs.a_double4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_ninf")) attribute = test_node.get_attribute("outputs:a_double4_ninf") db_value = database.outputs.a_double4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double4_snan")) attribute = test_node.get_attribute("outputs:a_double4_snan") db_value = database.outputs.a_double4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_inf")) attribute = test_node.get_attribute("outputs:a_double_array_inf") db_value = database.outputs.a_double_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_nan")) attribute = test_node.get_attribute("outputs:a_double_array_nan") db_value = database.outputs.a_double_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_ninf")) attribute = test_node.get_attribute("outputs:a_double_array_ninf") db_value = database.outputs.a_double_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_array_snan")) attribute = test_node.get_attribute("outputs:a_double_array_snan") db_value = database.outputs.a_double_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_inf")) attribute = test_node.get_attribute("outputs:a_double_inf") db_value = database.outputs.a_double_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_nan")) attribute = test_node.get_attribute("outputs:a_double_nan") db_value = database.outputs.a_double_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_double_ninf")) attribute = test_node.get_attribute("outputs:a_double_ninf") db_value = database.outputs.a_double_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_double_snan")) attribute = test_node.get_attribute("outputs:a_double_snan") db_value = database.outputs.a_double_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_inf")) attribute = test_node.get_attribute("outputs:a_float2_array_inf") db_value = database.outputs.a_float2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_nan")) attribute = test_node.get_attribute("outputs:a_float2_array_nan") db_value = database.outputs.a_float2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_ninf")) attribute = test_node.get_attribute("outputs:a_float2_array_ninf") db_value = database.outputs.a_float2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_array_snan")) attribute = test_node.get_attribute("outputs:a_float2_array_snan") db_value = database.outputs.a_float2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_inf")) attribute = test_node.get_attribute("outputs:a_float2_inf") db_value = database.outputs.a_float2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_nan")) attribute = test_node.get_attribute("outputs:a_float2_nan") db_value = database.outputs.a_float2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_ninf")) attribute = test_node.get_attribute("outputs:a_float2_ninf") db_value = database.outputs.a_float2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float2_snan")) attribute = test_node.get_attribute("outputs:a_float2_snan") db_value = database.outputs.a_float2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_inf")) attribute = test_node.get_attribute("outputs:a_float3_array_inf") db_value = database.outputs.a_float3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_nan")) attribute = test_node.get_attribute("outputs:a_float3_array_nan") db_value = database.outputs.a_float3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_ninf")) attribute = test_node.get_attribute("outputs:a_float3_array_ninf") db_value = database.outputs.a_float3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_array_snan")) attribute = test_node.get_attribute("outputs:a_float3_array_snan") db_value = database.outputs.a_float3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_inf")) attribute = test_node.get_attribute("outputs:a_float3_inf") db_value = database.outputs.a_float3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_nan")) attribute = test_node.get_attribute("outputs:a_float3_nan") db_value = database.outputs.a_float3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_ninf")) attribute = test_node.get_attribute("outputs:a_float3_ninf") db_value = database.outputs.a_float3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float3_snan")) attribute = test_node.get_attribute("outputs:a_float3_snan") db_value = database.outputs.a_float3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_inf")) attribute = test_node.get_attribute("outputs:a_float4_array_inf") db_value = database.outputs.a_float4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_nan")) attribute = test_node.get_attribute("outputs:a_float4_array_nan") db_value = database.outputs.a_float4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_ninf")) attribute = test_node.get_attribute("outputs:a_float4_array_ninf") db_value = database.outputs.a_float4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_array_snan")) attribute = test_node.get_attribute("outputs:a_float4_array_snan") db_value = database.outputs.a_float4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_inf")) attribute = test_node.get_attribute("outputs:a_float4_inf") db_value = database.outputs.a_float4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_nan")) attribute = test_node.get_attribute("outputs:a_float4_nan") db_value = database.outputs.a_float4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_ninf")) attribute = test_node.get_attribute("outputs:a_float4_ninf") db_value = database.outputs.a_float4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float4_snan")) attribute = test_node.get_attribute("outputs:a_float4_snan") db_value = database.outputs.a_float4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_inf")) attribute = test_node.get_attribute("outputs:a_float_array_inf") db_value = database.outputs.a_float_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_nan")) attribute = test_node.get_attribute("outputs:a_float_array_nan") db_value = database.outputs.a_float_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_ninf")) attribute = test_node.get_attribute("outputs:a_float_array_ninf") db_value = database.outputs.a_float_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_array_snan")) attribute = test_node.get_attribute("outputs:a_float_array_snan") db_value = database.outputs.a_float_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_inf")) attribute = test_node.get_attribute("outputs:a_float_inf") db_value = database.outputs.a_float_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_nan")) attribute = test_node.get_attribute("outputs:a_float_nan") db_value = database.outputs.a_float_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_float_ninf")) attribute = test_node.get_attribute("outputs:a_float_ninf") db_value = database.outputs.a_float_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_float_snan")) attribute = test_node.get_attribute("outputs:a_float_snan") db_value = database.outputs.a_float_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_inf")) attribute = test_node.get_attribute("outputs:a_frame4_array_inf") db_value = database.outputs.a_frame4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_nan")) attribute = test_node.get_attribute("outputs:a_frame4_array_nan") db_value = database.outputs.a_frame4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_ninf")) attribute = test_node.get_attribute("outputs:a_frame4_array_ninf") db_value = database.outputs.a_frame4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_array_snan")) attribute = test_node.get_attribute("outputs:a_frame4_array_snan") db_value = database.outputs.a_frame4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_inf")) attribute = test_node.get_attribute("outputs:a_frame4_inf") db_value = database.outputs.a_frame4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_nan")) attribute = test_node.get_attribute("outputs:a_frame4_nan") db_value = database.outputs.a_frame4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_ninf")) attribute = test_node.get_attribute("outputs:a_frame4_ninf") db_value = database.outputs.a_frame4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_frame4_snan")) attribute = test_node.get_attribute("outputs:a_frame4_snan") db_value = database.outputs.a_frame4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_inf")) attribute = test_node.get_attribute("outputs:a_half2_array_inf") db_value = database.outputs.a_half2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_nan")) attribute = test_node.get_attribute("outputs:a_half2_array_nan") db_value = database.outputs.a_half2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_ninf")) attribute = test_node.get_attribute("outputs:a_half2_array_ninf") db_value = database.outputs.a_half2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_array_snan")) attribute = test_node.get_attribute("outputs:a_half2_array_snan") db_value = database.outputs.a_half2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_inf")) attribute = test_node.get_attribute("outputs:a_half2_inf") db_value = database.outputs.a_half2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_nan")) attribute = test_node.get_attribute("outputs:a_half2_nan") db_value = database.outputs.a_half2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_ninf")) attribute = test_node.get_attribute("outputs:a_half2_ninf") db_value = database.outputs.a_half2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half2_snan")) attribute = test_node.get_attribute("outputs:a_half2_snan") db_value = database.outputs.a_half2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_inf")) attribute = test_node.get_attribute("outputs:a_half3_array_inf") db_value = database.outputs.a_half3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_nan")) attribute = test_node.get_attribute("outputs:a_half3_array_nan") db_value = database.outputs.a_half3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_ninf")) attribute = test_node.get_attribute("outputs:a_half3_array_ninf") db_value = database.outputs.a_half3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_array_snan")) attribute = test_node.get_attribute("outputs:a_half3_array_snan") db_value = database.outputs.a_half3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_inf")) attribute = test_node.get_attribute("outputs:a_half3_inf") db_value = database.outputs.a_half3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_nan")) attribute = test_node.get_attribute("outputs:a_half3_nan") db_value = database.outputs.a_half3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_ninf")) attribute = test_node.get_attribute("outputs:a_half3_ninf") db_value = database.outputs.a_half3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half3_snan")) attribute = test_node.get_attribute("outputs:a_half3_snan") db_value = database.outputs.a_half3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_inf")) attribute = test_node.get_attribute("outputs:a_half4_array_inf") db_value = database.outputs.a_half4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_nan")) attribute = test_node.get_attribute("outputs:a_half4_array_nan") db_value = database.outputs.a_half4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_ninf")) attribute = test_node.get_attribute("outputs:a_half4_array_ninf") db_value = database.outputs.a_half4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_array_snan")) attribute = test_node.get_attribute("outputs:a_half4_array_snan") db_value = database.outputs.a_half4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_inf")) attribute = test_node.get_attribute("outputs:a_half4_inf") db_value = database.outputs.a_half4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_nan")) attribute = test_node.get_attribute("outputs:a_half4_nan") db_value = database.outputs.a_half4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_ninf")) attribute = test_node.get_attribute("outputs:a_half4_ninf") db_value = database.outputs.a_half4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half4_snan")) attribute = test_node.get_attribute("outputs:a_half4_snan") db_value = database.outputs.a_half4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_inf")) attribute = test_node.get_attribute("outputs:a_half_array_inf") db_value = database.outputs.a_half_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_nan")) attribute = test_node.get_attribute("outputs:a_half_array_nan") db_value = database.outputs.a_half_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_ninf")) attribute = test_node.get_attribute("outputs:a_half_array_ninf") db_value = database.outputs.a_half_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_array_snan")) attribute = test_node.get_attribute("outputs:a_half_array_snan") db_value = database.outputs.a_half_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_inf")) attribute = test_node.get_attribute("outputs:a_half_inf") db_value = database.outputs.a_half_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_nan")) attribute = test_node.get_attribute("outputs:a_half_nan") db_value = database.outputs.a_half_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_half_ninf")) attribute = test_node.get_attribute("outputs:a_half_ninf") db_value = database.outputs.a_half_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_half_snan")) attribute = test_node.get_attribute("outputs:a_half_snan") db_value = database.outputs.a_half_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_inf")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_inf") db_value = database.outputs.a_matrixd2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_nan")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_nan") db_value = database.outputs.a_matrixd2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_ninf") db_value = database.outputs.a_matrixd2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_array_snan")) attribute = test_node.get_attribute("outputs:a_matrixd2_array_snan") db_value = database.outputs.a_matrixd2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_inf")) attribute = test_node.get_attribute("outputs:a_matrixd2_inf") db_value = database.outputs.a_matrixd2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_nan")) attribute = test_node.get_attribute("outputs:a_matrixd2_nan") db_value = database.outputs.a_matrixd2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd2_ninf") db_value = database.outputs.a_matrixd2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd2_snan")) attribute = test_node.get_attribute("outputs:a_matrixd2_snan") db_value = database.outputs.a_matrixd2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_inf")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_inf") db_value = database.outputs.a_matrixd3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_nan")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_nan") db_value = database.outputs.a_matrixd3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_ninf") db_value = database.outputs.a_matrixd3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_array_snan")) attribute = test_node.get_attribute("outputs:a_matrixd3_array_snan") db_value = database.outputs.a_matrixd3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_inf")) attribute = test_node.get_attribute("outputs:a_matrixd3_inf") db_value = database.outputs.a_matrixd3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_nan")) attribute = test_node.get_attribute("outputs:a_matrixd3_nan") db_value = database.outputs.a_matrixd3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd3_ninf") db_value = database.outputs.a_matrixd3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd3_snan")) attribute = test_node.get_attribute("outputs:a_matrixd3_snan") db_value = database.outputs.a_matrixd3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_inf")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_inf") db_value = database.outputs.a_matrixd4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_nan")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_nan") db_value = database.outputs.a_matrixd4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_ninf") db_value = database.outputs.a_matrixd4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_array_snan")) attribute = test_node.get_attribute("outputs:a_matrixd4_array_snan") db_value = database.outputs.a_matrixd4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_inf")) attribute = test_node.get_attribute("outputs:a_matrixd4_inf") db_value = database.outputs.a_matrixd4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_nan")) attribute = test_node.get_attribute("outputs:a_matrixd4_nan") db_value = database.outputs.a_matrixd4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_ninf")) attribute = test_node.get_attribute("outputs:a_matrixd4_ninf") db_value = database.outputs.a_matrixd4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_matrixd4_snan")) attribute = test_node.get_attribute("outputs:a_matrixd4_snan") db_value = database.outputs.a_matrixd4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_inf")) attribute = test_node.get_attribute("outputs:a_normald3_array_inf") db_value = database.outputs.a_normald3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_nan")) attribute = test_node.get_attribute("outputs:a_normald3_array_nan") db_value = database.outputs.a_normald3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_ninf")) attribute = test_node.get_attribute("outputs:a_normald3_array_ninf") db_value = database.outputs.a_normald3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_array_snan")) attribute = test_node.get_attribute("outputs:a_normald3_array_snan") db_value = database.outputs.a_normald3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_inf")) attribute = test_node.get_attribute("outputs:a_normald3_inf") db_value = database.outputs.a_normald3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_nan")) attribute = test_node.get_attribute("outputs:a_normald3_nan") db_value = database.outputs.a_normald3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_ninf")) attribute = test_node.get_attribute("outputs:a_normald3_ninf") db_value = database.outputs.a_normald3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normald3_snan")) attribute = test_node.get_attribute("outputs:a_normald3_snan") db_value = database.outputs.a_normald3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_inf")) attribute = test_node.get_attribute("outputs:a_normalf3_array_inf") db_value = database.outputs.a_normalf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_nan")) attribute = test_node.get_attribute("outputs:a_normalf3_array_nan") db_value = database.outputs.a_normalf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_normalf3_array_ninf") db_value = database.outputs.a_normalf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_array_snan")) attribute = test_node.get_attribute("outputs:a_normalf3_array_snan") db_value = database.outputs.a_normalf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_inf")) attribute = test_node.get_attribute("outputs:a_normalf3_inf") db_value = database.outputs.a_normalf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_nan")) attribute = test_node.get_attribute("outputs:a_normalf3_nan") db_value = database.outputs.a_normalf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_ninf")) attribute = test_node.get_attribute("outputs:a_normalf3_ninf") db_value = database.outputs.a_normalf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalf3_snan")) attribute = test_node.get_attribute("outputs:a_normalf3_snan") db_value = database.outputs.a_normalf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_inf")) attribute = test_node.get_attribute("outputs:a_normalh3_array_inf") db_value = database.outputs.a_normalh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_nan")) attribute = test_node.get_attribute("outputs:a_normalh3_array_nan") db_value = database.outputs.a_normalh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_normalh3_array_ninf") db_value = database.outputs.a_normalh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_array_snan")) attribute = test_node.get_attribute("outputs:a_normalh3_array_snan") db_value = database.outputs.a_normalh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_inf")) attribute = test_node.get_attribute("outputs:a_normalh3_inf") db_value = database.outputs.a_normalh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_nan")) attribute = test_node.get_attribute("outputs:a_normalh3_nan") db_value = database.outputs.a_normalh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_ninf")) attribute = test_node.get_attribute("outputs:a_normalh3_ninf") db_value = database.outputs.a_normalh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_normalh3_snan")) attribute = test_node.get_attribute("outputs:a_normalh3_snan") db_value = database.outputs.a_normalh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_inf")) attribute = test_node.get_attribute("outputs:a_pointd3_array_inf") db_value = database.outputs.a_pointd3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_nan")) attribute = test_node.get_attribute("outputs:a_pointd3_array_nan") db_value = database.outputs.a_pointd3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_ninf")) attribute = test_node.get_attribute("outputs:a_pointd3_array_ninf") db_value = database.outputs.a_pointd3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_array_snan")) attribute = test_node.get_attribute("outputs:a_pointd3_array_snan") db_value = database.outputs.a_pointd3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_inf")) attribute = test_node.get_attribute("outputs:a_pointd3_inf") db_value = database.outputs.a_pointd3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_nan")) attribute = test_node.get_attribute("outputs:a_pointd3_nan") db_value = database.outputs.a_pointd3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_ninf")) attribute = test_node.get_attribute("outputs:a_pointd3_ninf") db_value = database.outputs.a_pointd3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointd3_snan")) attribute = test_node.get_attribute("outputs:a_pointd3_snan") db_value = database.outputs.a_pointd3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_inf")) attribute = test_node.get_attribute("outputs:a_pointf3_array_inf") db_value = database.outputs.a_pointf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_nan")) attribute = test_node.get_attribute("outputs:a_pointf3_array_nan") db_value = database.outputs.a_pointf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_pointf3_array_ninf") db_value = database.outputs.a_pointf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_array_snan")) attribute = test_node.get_attribute("outputs:a_pointf3_array_snan") db_value = database.outputs.a_pointf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_inf")) attribute = test_node.get_attribute("outputs:a_pointf3_inf") db_value = database.outputs.a_pointf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_nan")) attribute = test_node.get_attribute("outputs:a_pointf3_nan") db_value = database.outputs.a_pointf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_ninf")) attribute = test_node.get_attribute("outputs:a_pointf3_ninf") db_value = database.outputs.a_pointf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointf3_snan")) attribute = test_node.get_attribute("outputs:a_pointf3_snan") db_value = database.outputs.a_pointf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_inf")) attribute = test_node.get_attribute("outputs:a_pointh3_array_inf") db_value = database.outputs.a_pointh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_nan")) attribute = test_node.get_attribute("outputs:a_pointh3_array_nan") db_value = database.outputs.a_pointh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_pointh3_array_ninf") db_value = database.outputs.a_pointh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_array_snan")) attribute = test_node.get_attribute("outputs:a_pointh3_array_snan") db_value = database.outputs.a_pointh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_inf")) attribute = test_node.get_attribute("outputs:a_pointh3_inf") db_value = database.outputs.a_pointh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_nan")) attribute = test_node.get_attribute("outputs:a_pointh3_nan") db_value = database.outputs.a_pointh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_ninf")) attribute = test_node.get_attribute("outputs:a_pointh3_ninf") db_value = database.outputs.a_pointh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_pointh3_snan")) attribute = test_node.get_attribute("outputs:a_pointh3_snan") db_value = database.outputs.a_pointh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_inf")) attribute = test_node.get_attribute("outputs:a_quatd4_array_inf") db_value = database.outputs.a_quatd4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_nan")) attribute = test_node.get_attribute("outputs:a_quatd4_array_nan") db_value = database.outputs.a_quatd4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_ninf")) attribute = test_node.get_attribute("outputs:a_quatd4_array_ninf") db_value = database.outputs.a_quatd4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_array_snan")) attribute = test_node.get_attribute("outputs:a_quatd4_array_snan") db_value = database.outputs.a_quatd4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_inf")) attribute = test_node.get_attribute("outputs:a_quatd4_inf") db_value = database.outputs.a_quatd4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_nan")) attribute = test_node.get_attribute("outputs:a_quatd4_nan") db_value = database.outputs.a_quatd4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_ninf")) attribute = test_node.get_attribute("outputs:a_quatd4_ninf") db_value = database.outputs.a_quatd4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatd4_snan")) attribute = test_node.get_attribute("outputs:a_quatd4_snan") db_value = database.outputs.a_quatd4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_inf")) attribute = test_node.get_attribute("outputs:a_quatf4_array_inf") db_value = database.outputs.a_quatf4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_nan")) attribute = test_node.get_attribute("outputs:a_quatf4_array_nan") db_value = database.outputs.a_quatf4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_ninf")) attribute = test_node.get_attribute("outputs:a_quatf4_array_ninf") db_value = database.outputs.a_quatf4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_array_snan")) attribute = test_node.get_attribute("outputs:a_quatf4_array_snan") db_value = database.outputs.a_quatf4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_inf")) attribute = test_node.get_attribute("outputs:a_quatf4_inf") db_value = database.outputs.a_quatf4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_nan")) attribute = test_node.get_attribute("outputs:a_quatf4_nan") db_value = database.outputs.a_quatf4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_ninf")) attribute = test_node.get_attribute("outputs:a_quatf4_ninf") db_value = database.outputs.a_quatf4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quatf4_snan")) attribute = test_node.get_attribute("outputs:a_quatf4_snan") db_value = database.outputs.a_quatf4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_inf")) attribute = test_node.get_attribute("outputs:a_quath4_array_inf") db_value = database.outputs.a_quath4_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_nan")) attribute = test_node.get_attribute("outputs:a_quath4_array_nan") db_value = database.outputs.a_quath4_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_ninf")) attribute = test_node.get_attribute("outputs:a_quath4_array_ninf") db_value = database.outputs.a_quath4_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_array_snan")) attribute = test_node.get_attribute("outputs:a_quath4_array_snan") db_value = database.outputs.a_quath4_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_inf")) attribute = test_node.get_attribute("outputs:a_quath4_inf") db_value = database.outputs.a_quath4_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_nan")) attribute = test_node.get_attribute("outputs:a_quath4_nan") db_value = database.outputs.a_quath4_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_ninf")) attribute = test_node.get_attribute("outputs:a_quath4_ninf") db_value = database.outputs.a_quath4_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_quath4_snan")) attribute = test_node.get_attribute("outputs:a_quath4_snan") db_value = database.outputs.a_quath4_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_inf") db_value = database.outputs.a_texcoordd2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_nan") db_value = database.outputs.a_texcoordd2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_ninf") db_value = database.outputs.a_texcoordd2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_array_snan") db_value = database.outputs.a_texcoordd2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_inf") db_value = database.outputs.a_texcoordd2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_nan") db_value = database.outputs.a_texcoordd2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd2_ninf") db_value = database.outputs.a_texcoordd2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd2_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd2_snan") db_value = database.outputs.a_texcoordd2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_inf") db_value = database.outputs.a_texcoordd3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_nan") db_value = database.outputs.a_texcoordd3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_ninf") db_value = database.outputs.a_texcoordd3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_array_snan") db_value = database.outputs.a_texcoordd3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_inf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_inf") db_value = database.outputs.a_texcoordd3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_nan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_nan") db_value = database.outputs.a_texcoordd3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordd3_ninf") db_value = database.outputs.a_texcoordd3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordd3_snan")) attribute = test_node.get_attribute("outputs:a_texcoordd3_snan") db_value = database.outputs.a_texcoordd3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_inf") db_value = database.outputs.a_texcoordf2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_nan") db_value = database.outputs.a_texcoordf2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_ninf") db_value = database.outputs.a_texcoordf2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_array_snan") db_value = database.outputs.a_texcoordf2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_inf") db_value = database.outputs.a_texcoordf2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_nan") db_value = database.outputs.a_texcoordf2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf2_ninf") db_value = database.outputs.a_texcoordf2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf2_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf2_snan") db_value = database.outputs.a_texcoordf2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_inf") db_value = database.outputs.a_texcoordf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_nan") db_value = database.outputs.a_texcoordf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_ninf") db_value = database.outputs.a_texcoordf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_array_snan") db_value = database.outputs.a_texcoordf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_inf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_inf") db_value = database.outputs.a_texcoordf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_nan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_nan") db_value = database.outputs.a_texcoordf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordf3_ninf") db_value = database.outputs.a_texcoordf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordf3_snan")) attribute = test_node.get_attribute("outputs:a_texcoordf3_snan") db_value = database.outputs.a_texcoordf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_inf") db_value = database.outputs.a_texcoordh2_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_nan") db_value = database.outputs.a_texcoordh2_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_ninf") db_value = database.outputs.a_texcoordh2_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_array_snan") db_value = database.outputs.a_texcoordh2_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_inf") db_value = database.outputs.a_texcoordh2_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_nan") db_value = database.outputs.a_texcoordh2_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh2_ninf") db_value = database.outputs.a_texcoordh2_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh2_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh2_snan") db_value = database.outputs.a_texcoordh2_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_inf") db_value = database.outputs.a_texcoordh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_nan") db_value = database.outputs.a_texcoordh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_ninf") db_value = database.outputs.a_texcoordh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_array_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_array_snan") db_value = database.outputs.a_texcoordh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_inf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_inf") db_value = database.outputs.a_texcoordh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_nan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_nan") db_value = database.outputs.a_texcoordh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_ninf")) attribute = test_node.get_attribute("outputs:a_texcoordh3_ninf") db_value = database.outputs.a_texcoordh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_texcoordh3_snan")) attribute = test_node.get_attribute("outputs:a_texcoordh3_snan") db_value = database.outputs.a_texcoordh3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_inf")) attribute = test_node.get_attribute("outputs:a_timecode_array_inf") db_value = database.outputs.a_timecode_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_nan")) attribute = test_node.get_attribute("outputs:a_timecode_array_nan") db_value = database.outputs.a_timecode_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_ninf")) attribute = test_node.get_attribute("outputs:a_timecode_array_ninf") db_value = database.outputs.a_timecode_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_array_snan")) attribute = test_node.get_attribute("outputs:a_timecode_array_snan") db_value = database.outputs.a_timecode_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_inf")) attribute = test_node.get_attribute("outputs:a_timecode_inf") db_value = database.outputs.a_timecode_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_nan")) attribute = test_node.get_attribute("outputs:a_timecode_nan") db_value = database.outputs.a_timecode_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_ninf")) attribute = test_node.get_attribute("outputs:a_timecode_ninf") db_value = database.outputs.a_timecode_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_timecode_snan")) attribute = test_node.get_attribute("outputs:a_timecode_snan") db_value = database.outputs.a_timecode_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_inf")) attribute = test_node.get_attribute("outputs:a_vectord3_array_inf") db_value = database.outputs.a_vectord3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_nan")) attribute = test_node.get_attribute("outputs:a_vectord3_array_nan") db_value = database.outputs.a_vectord3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_ninf")) attribute = test_node.get_attribute("outputs:a_vectord3_array_ninf") db_value = database.outputs.a_vectord3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_array_snan")) attribute = test_node.get_attribute("outputs:a_vectord3_array_snan") db_value = database.outputs.a_vectord3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_inf")) attribute = test_node.get_attribute("outputs:a_vectord3_inf") db_value = database.outputs.a_vectord3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_nan")) attribute = test_node.get_attribute("outputs:a_vectord3_nan") db_value = database.outputs.a_vectord3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_ninf")) attribute = test_node.get_attribute("outputs:a_vectord3_ninf") db_value = database.outputs.a_vectord3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectord3_snan")) attribute = test_node.get_attribute("outputs:a_vectord3_snan") db_value = database.outputs.a_vectord3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_inf")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_inf") db_value = database.outputs.a_vectorf3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_nan")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_nan") db_value = database.outputs.a_vectorf3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_ninf")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_ninf") db_value = database.outputs.a_vectorf3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_array_snan")) attribute = test_node.get_attribute("outputs:a_vectorf3_array_snan") db_value = database.outputs.a_vectorf3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_inf")) attribute = test_node.get_attribute("outputs:a_vectorf3_inf") db_value = database.outputs.a_vectorf3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_nan")) attribute = test_node.get_attribute("outputs:a_vectorf3_nan") db_value = database.outputs.a_vectorf3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_ninf")) attribute = test_node.get_attribute("outputs:a_vectorf3_ninf") db_value = database.outputs.a_vectorf3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorf3_snan")) attribute = test_node.get_attribute("outputs:a_vectorf3_snan") db_value = database.outputs.a_vectorf3_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_inf")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_inf") db_value = database.outputs.a_vectorh3_array_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_nan")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_nan") db_value = database.outputs.a_vectorh3_array_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_ninf")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_ninf") db_value = database.outputs.a_vectorh3_array_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_array_snan")) attribute = test_node.get_attribute("outputs:a_vectorh3_array_snan") db_value = database.outputs.a_vectorh3_array_snan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_inf")) attribute = test_node.get_attribute("outputs:a_vectorh3_inf") db_value = database.outputs.a_vectorh3_inf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_nan")) attribute = test_node.get_attribute("outputs:a_vectorh3_nan") db_value = database.outputs.a_vectorh3_nan self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_ninf")) attribute = test_node.get_attribute("outputs:a_vectorh3_ninf") db_value = database.outputs.a_vectorh3_ninf self.assertTrue(test_node.get_attribute_exists("outputs:a_vectorh3_snan")) attribute = test_node.get_attribute("outputs:a_vectorh3_snan") db_value = database.outputs.a_vectorh3_snan
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleChildProducerPy.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundleChildProducerPyDatabase import OgnBundleChildProducerPyDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleChildProducerPy", "omni.graph.test.BundleChildProducerPy") }) database = OgnBundleChildProducerPyDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:bundle")) attribute = test_node.get_attribute("inputs:bundle") db_value = database.inputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs_bundle")) attribute = test_node.get_attribute("outputs_bundle") db_value = database.outputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs:numChildren")) attribute = test_node.get_attribute("outputs:numChildren") db_value = database.outputs.numChildren
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleProperties.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundlePropertiesDatabase import OgnBundlePropertiesDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleProperties", "omni.graph.test.BundleProperties") }) database = OgnBundlePropertiesDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:bundle")) attribute = test_node.get_attribute("inputs:bundle") db_value = database.inputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs:valid")) attribute = test_node.get_attribute("outputs:valid") db_value = database.outputs.valid
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/TestOgnBundleToTarget.py
import omni.kit.test import omni.graph.core as og import omni.graph.core.tests as ogts from omni.graph.core.tests.omnigraph_test_utils import _TestGraphAndNode from omni.graph.core.tests.omnigraph_test_utils import _test_clear_scene from omni.graph.core.tests.omnigraph_test_utils import _test_setup_scene from omni.graph.core.tests.omnigraph_test_utils import _test_verify_scene class TestOgn(ogts.OmniGraphTestCase): async def test_data_access(self): from omni.graph.test.ogn.OgnBundleToTargetDatabase import OgnBundleToTargetDatabase (_, (test_node,), _, _) = og.Controller.edit("/TestGraph", { og.Controller.Keys.CREATE_NODES: ("Template_omni_graph_test_BundleToTarget", "omni.graph.test.BundleToTarget") }) database = OgnBundleToTargetDatabase(test_node) self.assertTrue(test_node.is_valid()) node_type_name = test_node.get_type_name() self.assertEqual(og.GraphRegistry().get_node_type_version(node_type_name), 1) def _attr_error(attribute: og.Attribute, usd_test: bool) -> str: test_type = "USD Load" if usd_test else "Database Access" return f"{node_type_name} {test_type} Test - {attribute.get_name()} value error" self.assertTrue(test_node.get_attribute_exists("inputs:bundle")) attribute = test_node.get_attribute("inputs:bundle") db_value = database.inputs.bundle self.assertTrue(test_node.get_attribute_exists("inputs:target")) attribute = test_node.get_attribute("inputs:target") db_value = database.inputs.target self.assertTrue(test_node.get_attribute_exists("outputs_bundle")) attribute = test_node.get_attribute("outputs_bundle") db_value = database.outputs.bundle self.assertTrue(test_node.get_attribute_exists("outputs:target")) attribute = test_node.get_attribute("outputs:target") db_value = database.outputs.target
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/ogn/tests/usd/OgnExecInputEnabledTestTemplate.usda
#usda 1.0 ( doc ="""Generated from node description file OgnExecInputEnabledTest.ogn Contains templates for node types found in that file.""" ) def OmniGraph "TestGraph" { token evaluator:type = "push" int2 fileFormatVersion = (1, 3) token flatCacheBacking = "Shared" token pipelineStage = "pipelineStageSimulation" def OmniGraphNode "Template_omni_graph_test_ExecInputEnabledTest" ( docs="""Tests exec input is enabled""" ) { token node:type = "omni.graph.test.ExecInputEnabledTest" int node:typeVersion = 1 # 2 attributes custom uint inputs:execInA ( docs="""The input execution A""" ) custom uint inputs:execInB ( docs="""The input execution B""" ) # 2 attributes custom uint outputs:execOutA ( docs="""The output execution A, triggered only if input A attrib was enabled""" ) custom uint outputs:execOutB ( docs="""The output execution B, triggered only if input B attrib was enabled""" ) } }
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/_impl/extension.py
"""Support required by the Carbonite extension loader""" import omni.ext from ..bindings._omni_graph_test import acquire_interface as _acquire_interface # noqa: PLE0402 from ..bindings._omni_graph_test import release_interface as _release_interface # noqa: PLE0402 class _PublicExtension(omni.ext.IExt): """Object that tracks the lifetime of the Python part of the extension loading""" def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.__interface = None def on_startup(self): """Set up initial conditions for the Python part of the extension""" self.__interface = _acquire_interface() def on_shutdown(self): """Shutting down this part of the extension prepares it for hot reload""" if self.__interface is not None: _release_interface(self.__interface) self.__interface = None
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_rewire_exec_input.py
"""Tests reparenting workflows""" import omni.graph.core as og import omni.graph.core.tests as ogts # ====================================================================== class TestRewireExecInput(ogts.OmniGraphTestCase): """Run tests that exercises execution of nodes after various connection and disconnection of attributes.""" async def test_rewire_exec_input_from_same_named_outputs(self): """Test making a 2nd connection to an exec input already connected to at upstream attrib of the same name.""" # Load the test scene which has: # OnImpulse (A1) node --> (A) input of ExpectInputEnabledTest node: output (A) --> Counter (A) node. # OnImpulse (A2) node --> (no connections) # OnImpulse (B) node --> (B) input of same ExpectInputEnabledTestnode: output (B) --> Counter (B) node. (result, error) = await ogts.load_test_file("TestRewireExecInput.usda", use_caller_subdirectory=True) self.assertTrue(result, error) impulse_a_1 = "/World/ActionGraph/on_impulse_event_A1" impulse_a_2 = "/World/ActionGraph/on_impulse_event_A2" impulse_b = "/World/ActionGraph/on_impulse_event_B" counter_a = "/World/ActionGraph/counter_A" counter_b = "/World/ActionGraph/counter_B" exec_test_input_a = "/World/ActionGraph/execinputenabledtest.inputs:execInA" # Ensure initial state # Ensure the counters starts at 0 self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_a)), 0) self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_b)), 0) # Trigger impulse A1 and verify counters are (A) 1, (B) 0 og.Controller.set(og.Controller.attribute("state:enableImpulse", impulse_a_1), True) await og.Controller.evaluate() self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_a)), 1) self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_b)), 0) # Trigger impulse B and verify counters are (A) 1, (B) 1 og.Controller.set(og.Controller.attribute("state:enableImpulse", impulse_b), True) await og.Controller.evaluate() self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_a)), 1) self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_b)), 1) # Reconnect wires # Connect OnImpulse A2 to the same (A) input of ExecInputEnabledTest node while OnImpulse A1 is still # connected to it keys = og.Controller.Keys og.Controller.edit( "/World/ActionGraph", {keys.CONNECT: [(impulse_a_2 + ".outputs:execOut", exec_test_input_a)]} ) # Disconnect impulse A1 from the ExecInputEnabledTest node. This could have been done in 1 call to .edit() # but this order very much matters for this bug https://nvidia-omniverse.atlassian.net/browse/OM-51679 # so extra explicitly ordering the operations for this test og.Controller.edit( "/World/ActionGraph", {keys.DISCONNECT: [(impulse_a_1 + ".outputs:execOut", exec_test_input_a)]} ) # Validate the fix for ExecInputEnabledTest's (A) input being set to active # Trigger impulse A2 and verify counters are (A) 2, (B) 1 og.Controller.set(og.Controller.attribute("state:enableImpulse", impulse_a_2), True) await og.Controller.evaluate() self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_a)), 2) self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_b)), 1) # Validate that (A) input is deactive such that (B) input still works # Trigger impulse B and verify counters are (A) 2, (B) 2 og.Controller.set(og.Controller.attribute("state:enableImpulse", impulse_b), True) await og.Controller.evaluate() self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_a)), 2) self.assertEqual(og.Controller.get(og.Controller.attribute("state:count", counter_b)), 2)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_sim_cycle_dependencies.py
import omni.graph.core as og import omni.graph.core.tests as ogts class TestSimCycleDependencies(ogts.OmniGraphTestCase): # ---------------------------------------------------------------------- async def test_compute_counts(self): # Create a dirty_push graph with two ConstantInt nodes feeding into # an Add node. (graph, (input_a, input_b, output, pynode), _, _) = og.Controller.edit( {"graph_path": "/TestGraph", "evaluator_name": "dirty_push"}, { og.Controller.Keys.CREATE_NODES: [ ("inputA", "omni.graph.nodes.ConstantInt"), ("inputB", "omni.graph.nodes.ConstantInt"), ("output", "omni.graph.nodes.Add"), ("pyNode", "omni.graph.test.ComputeErrorPy"), ], og.Controller.Keys.CONNECT: [ ("inputA.inputs:value", "output.inputs:a"), ("inputB.inputs:value", "output.inputs:b"), ], og.Controller.Keys.SET_VALUES: [("inputA.inputs:value", 3), ("inputB.inputs:value", 5)], }, ) self.assertTrue(graph is not None) self.assertTrue(graph.is_valid()) # There have been no update ticks so no computation should have happened. self.assertEqual(input_a.get_compute_count(), 0) self.assertEqual(input_b.get_compute_count(), 0) self.assertEqual(output.get_compute_count(), 0) self.assertEqual(pynode.get_compute_count(), 0) # Wait for an update tick, then check counts. await og.Controller.evaluate(graph) self.assertEqual(input_a.get_compute_count(), 1) self.assertEqual(input_b.get_compute_count(), 1) self.assertEqual(output.get_compute_count(), 1) self.assertEqual(pynode.get_compute_count(), 1) # With nothing new dirtied, another tick should not change counts. await og.Controller.evaluate(graph) self.assertEqual(input_a.get_compute_count(), 1) self.assertEqual(input_b.get_compute_count(), 1) self.assertEqual(output.get_compute_count(), 1) self.assertEqual(pynode.get_compute_count(), 1) # This is a push graph. Pulling the output should not invoke any # more evaluation. sum_attr = output.get_attribute("outputs:sum") self.assertEqual(sum_attr.get(), 8) await og.Controller.evaluate(graph) self.assertEqual(input_a.get_compute_count(), 1) self.assertEqual(input_b.get_compute_count(), 1) self.assertEqual(output.get_compute_count(), 1) self.assertEqual(pynode.get_compute_count(), 1) # Change input_a. Only the counts on input_a and output should change. attr_a = input_a.get_attribute("inputs:value") attr_a.set(9) await og.Controller.evaluate(graph) self.assertEqual(sum_attr.get(), 14) self.assertEqual(input_a.get_compute_count(), 2) self.assertEqual(input_b.get_compute_count(), 1) self.assertEqual(output.get_compute_count(), 2) self.assertEqual(pynode.get_compute_count(), 1) # Manually increment the count on input_a. self.assertEqual(input_a.increment_compute_count(), 3) self.assertEqual(input_a.get_compute_count(), 3) self.assertEqual(input_b.get_compute_count(), 1) self.assertEqual(output.get_compute_count(), 2) self.assertEqual(pynode.get_compute_count(), 1) # Change the python node's input to make sure that its # compute count increments during evaluate as well. dummy_in_attr = pynode.get_attribute("inputs:dummyIn") dummy_in_attr.set(-1) self.assertEqual(pynode.get_compute_count(), 1) await og.Controller.evaluate(graph) self.assertEqual(pynode.get_compute_count(), 2) # Manually increment the python node's counter. self.assertEqual(pynode.increment_compute_count(), 3)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_rename_and_reparent.py
"""Tests reparenting and renaming workflows""" from math import isclose, nan import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd # ====================================================================== class TestRenameAndReparent(ogts.OmniGraphTestCase): """Run tests that exercises the renaming and reparenting of prims involved in the graph""" async def verify_basic_setup(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() graph = omni.graph.core.get_all_graphs()[0] await og.Controller.evaluate(graph) # make sure the setup is working to start with: bundle_inspector_node = og.Controller.node("/World/graph/bundle_inspector") bundle_inspector_output_values_attr = bundle_inspector_node.get_attribute("outputs:values") output_value = og.Controller.get(bundle_inspector_output_values_attr) # FSD may insert other values in the output_value def to_float(f): try: return float(f) except ValueError: return nan # self.assertEqual(float(output_value[0]), 118.0, 0.01) self.assertTrue(any(isclose(to_float(f), 118.0) for f in output_value)) # mutate the "size" attribute of the cube, which should get picked up by the bundle inspector down # the line cube_prim = stage.GetPrimAtPath("/World/Cube") self.assertIsNotNone(cube_prim) size_attr = cube_prim.GetAttribute("size") self.assertIsNotNone(size_attr) size_attr.Set(119.0) await omni.kit.app.get_app().next_update_async() output_value = og.Controller.get(bundle_inspector_output_values_attr) self.assertTrue(any(isclose(to_float(f), 119.0) for f in output_value)) async def test_reparent_graph(self): """Test basic reparenting operations. Here we have a graph that we first reparent under 1 xform then we create another xform and parent the first xform under that """ (result, error) = await ogts.load_test_file("TestBundleGraphReparent.usda", use_caller_subdirectory=True) self.assertTrue(result, error) usd_context = omni.usd.get_context() stage = usd_context.get_stage() # make sure the setup is working to start with: await self.verify_basic_setup() cube_prim = stage.GetPrimAtPath("/World/Cube") size_attr = cube_prim.GetAttribute("size") # create an xform, and parent our graph under it. parent_xform_path = omni.usd.get_stage_next_free_path(stage, "/World/" + "parent_xform1", True) _ = stage.DefinePrim(parent_xform_path, "Xform") omni.kit.commands.execute("MovePrim", path_from="/World/graph", path_to="/World/parent_xform1/graph") size_attr.Set(120.0) await omni.kit.app.get_app().next_update_async() # must refetch the node and attribute, as these have been destroyed by the move: bundle_inspector_node = og.Controller.node("/World/parent_xform1/graph/bundle_inspector") bundle_inspector_output_values_attr = bundle_inspector_node.get_attribute("outputs:values") output_value = og.Controller.get(bundle_inspector_output_values_attr) # make sure the graph is still working self.assertEqual(float(output_value[0]), 120.0, 0.01) # create another xform, and parent our previous parent xform under it. parent_xform_path2 = omni.usd.get_stage_next_free_path(stage, "/World/" + "parent_xform2", True) stage.DefinePrim(parent_xform_path2, "Xform") omni.kit.commands.execute( "MovePrim", path_from="/World/parent_xform1", path_to="/World/parent_xform2/parent_xform1" ) size_attr.Set(121.0) await omni.kit.app.get_app().next_update_async() # must refetch the node and attribute, as these have been destroyed by the move: bundle_inspector_node = og.Controller.node("/World/parent_xform2/parent_xform1/graph/bundle_inspector") bundle_inspector_output_values_attr = bundle_inspector_node.get_attribute("outputs:values") output_value = og.Controller.get(bundle_inspector_output_values_attr) # make sure the graph is still working self.assertEqual(float(output_value[0]), 121.0, 0.01) async def test_simple_rename(self): (result, error) = await ogts.load_test_file("TestBundleGraphReparent.usda", use_caller_subdirectory=True) self.assertTrue(result, error) usd_context = omni.usd.get_context() stage = usd_context.get_stage() # make sure the setup is working to start with: await self.verify_basic_setup() cube_prim = stage.GetPrimAtPath("/World/Cube") size_attr = cube_prim.GetAttribute("size") # try renaming the graph: omni.kit.commands.execute("MovePrim", path_from="/World/graph", path_to="/World/graph_renamed") size_attr.Set(120.0) await omni.kit.app.get_app().next_update_async() # must refetch the node and attribute, as these have been destroyed by the move: bundle_inspector_node = og.Controller.node("/World/graph_renamed/bundle_inspector") bundle_inspector_output_values_attr = bundle_inspector_node.get_attribute("outputs:values") output_value = og.Controller.get(bundle_inspector_output_values_attr) # make sure the graph is still working self.assertEqual(float(output_value[0]), 120.0, 0.01) # try renaming a node within the graph: omni.kit.commands.execute( "MovePrim", path_from="/World/graph_renamed/bundle_inspector", path_to="/World/graph_renamed/bundle_inspector_renamed", ) size_attr.Set(121.0) await omni.kit.app.get_app().next_update_async() # must refetch the node and attribute, as these have been destroyed by the move: bundle_inspector_node = og.Controller.node("/World/graph_renamed/bundle_inspector_renamed") bundle_inspector_output_values_attr = bundle_inspector_node.get_attribute("outputs:values") output_value = og.Controller.get(bundle_inspector_output_values_attr) # make sure the graph is still working self.assertEqual(float(output_value[0]), 121.0, 0.01) async def test_reparent_primnode(self): """Test reparenting of prim nodes, which, because of all the special case handling needs its own test""" (result, error) = await ogts.load_test_file("TestBundleGraphReparent.usda", use_caller_subdirectory=True) self.assertTrue(result, error) controller = og.Controller() usd_context = omni.usd.get_context() stage = usd_context.get_stage() # make sure the setup is working to start with: await self.verify_basic_setup() # verify bundle inspector is reading cube attribs count = og.Controller.get(controller.attribute("outputs:count", "/World/graph/bundle_inspector")) self.assertGreaterEqual(count, 9) # create an xform, and parent our graph under it. parent_xform_path = omni.usd.get_stage_next_free_path(stage, "/World/" + "parent_xform1", True) _ = stage.DefinePrim(parent_xform_path, "Xform") omni.kit.commands.execute("MovePrim", path_from="/World/Cube", path_to="/World/parent_xform1/Cube") await controller.evaluate() # check that bundle inspector is still functional count = og.Controller.get(controller.attribute("outputs:count", "/World/graph/bundle_inspector")) self.assertGreaterEqual(count, 9)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_bugs.py
"""Test cases reproducing bugs that need to be fixed""" import os import tempfile import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd from omni.kit import commands as kit_commands # ====================================================================== class TestBugs(ogts.OmniGraphTestCase): """Run a simple unit test that exercises graph functionality""" TEST_GRAPH_PATH = "/World/TestGraph" # ---------------------------------------------------------------------- async def test_om_29829(self): """Undo of a connect raises a pxr.Tf.ErrorException""" controller = og.Controller() keys = og.Controller.Keys controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("SrcNode", "omni.graph.tutorials.ArrayData"), ("DstNode", "omni.graph.tutorials.ArrayData"), ], keys.CONNECT: ("SrcNode.outputs:result", "DstNode.inputs:original"), }, ) (success, error) = kit_commands.execute("Undo") self.assertTrue(success, f"Failed to process an undo - {error}") # ---------------------------------------------------------------------- async def test_crash_on_reload_referenced_og(self): """Tests OM-41534""" context = omni.usd.get_context() (result, error) = await ogts.load_test_file("ReferenceMaster.usd", use_caller_subdirectory=True) self.assertTrue(result, f"{error}") n_graphs = len(og.get_all_graphs()) await context.reopen_stage_async() await omni.kit.app.get_app().next_update_async() # Verify we have the expected number of graphs graphs = og.get_all_graphs() self.assertEqual(len(graphs), n_graphs, f"{graphs}") # ---------------------------------------------------------------------- async def test_get_node_type(self): """OM-41093: Test that node types returned from get_node_type match the actual underlying node type""" controller = og.Controller() keys = og.Controller.Keys # One of each type of node is sufficient for the test as implementation is consistent for .ogn nodes python_node_type = "omni.graph.test.TupleArrays" cpp_node_type = "omni.graph.test.TypeResolution" (_, (python_node, cpp_node), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("PythonNode", python_node_type), ("CppNode", cpp_node_type), ] }, ) self.assertEqual(python_node.get_node_type().get_node_type(), python_node_type) self.assertEqual(cpp_node.get_node_type().get_node_type(), cpp_node_type) # ---------------------------------------------------------------------- async def test_duplicate_graph(self): """OM-41661: Tests that ComputeGraph can be duplicated""" (result, error) = await ogts.load_test_file("ReferencedGraph.usd", use_caller_subdirectory=True) context = omni.usd.get_context() stage = context.get_stage() self.assertTrue(result, f"{error}") graphs_list_1 = og.get_all_graphs() n_graphs = len(graphs_list_1) old_prim_path = "/World/PushGraph" old_prim = stage.GetPrimAtPath(old_prim_path) self.assertTrue(old_prim.IsValid()) new_prim_path = omni.usd.get_stage_next_free_path(stage, old_prim_path, False) omni.kit.commands.execute("CopyPrim", path_from=old_prim_path, path_to=new_prim_path, exclusive_select=False) await omni.kit.app.get_app().next_update_async() new_prim = stage.GetPrimAtPath(new_prim_path) self.assertTrue(new_prim.IsValid()) # Verify we have the expected number of graphs graphs_list_2 = og.get_all_graphs() self.assertGreater(len(graphs_list_2), n_graphs, f"{graphs_list_2}") # OM-43564: Temporarily comment out the test below # new_graph = next((g for g in graphs_list_2 if g.get_path_to_graph() == "/World/PushGraph_01")) # Verify that it is being evaluated # controller = og.Controller(og.Controller.attribute(f"{new_prim_path}/on_tick.outputs:timeSinceStart")) # t0 = controller.get() # await controller.evaluate(new_graph) # t1 = controller.get() # self.assertGreater(t1, t0) # ---------------------------------------------------------------------- async def test_delete_graphs(self): """OM-42006: Tests that ComputeGraph can be deleted""" (result, error) = await ogts.load_test_file("ReferencedGraph.usd", use_caller_subdirectory=True) context = omni.usd.get_context() stage = context.get_stage() self.assertTrue(result, f"{error}") graphs_list_1 = og.get_all_graphs() n_graphs = len(graphs_list_1) src_prim_path = "/World/PushGraph" self.assertTrue(stage.GetPrimAtPath(src_prim_path).IsValid()) new_prim_paths = [] # Make a bunch of copies of our graph and then delete them for _ in range(10): new_prim_paths.append(omni.usd.get_stage_next_free_path(stage, src_prim_path, False)) omni.kit.commands.execute( "CopyPrim", path_from=src_prim_path, path_to=new_prim_paths[-1], exclusive_select=False ) await omni.kit.app.get_app().next_update_async() new_graphs = [og.get_graph_by_path(p) for p in new_prim_paths] for g in new_graphs: self.assertTrue(g) graphs_list_2 = og.get_all_graphs() self.assertEqual(len(graphs_list_2), n_graphs + len(new_prim_paths), f"{graphs_list_2}") # Delete all but the last 2 copies omni.kit.commands.execute("DeletePrims", paths=new_prim_paths[0:-2]) # verify prims are gone and graphs have been invalidated for new_prim_path in new_prim_paths[0:-2]: self.assertFalse(stage.GetPrimAtPath(new_prim_path).IsValid()) for g in new_graphs[0:-2]: self.assertFalse(g) # Verify we have the expected number of graphs graphs_list_3 = og.get_all_graphs() self.assertEqual(len(graphs_list_3), n_graphs + 2, f"{graphs_list_3}") # Now delete nodes from within the last 2 nodes_to_delete = [p + "/write_prim_attribute" for p in new_prim_paths[-2:]] + [ p + "/on_tick" for p in new_prim_paths[-2:] ] omni.kit.commands.execute("DeletePrims", paths=nodes_to_delete) # Check they are gone for p in nodes_to_delete: self.assertFalse(stage.GetPrimAtPath(p).IsValid()) for p in new_prim_paths[-2:]: graph = og.get_graph_by_path(p) self.assertTrue(graph) self.assertFalse(graph.get_node("write_prim_attribute")) self.assertFalse(graph.get_node("on_tick")) # ---------------------------------------------------------------------- async def test_om_43741(self): """Unresolved optional extended attribute fails to run compute""" keys = og.Controller.Keys controller = og.Controller() (graph, (test_node, _, _), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("TestNode", "omni.graph.test.TestOptionalExtendedAttribute"), ("Input", "omni.graph.nodes.ConstantInt"), ("Output", "omni.graph.tutorials.SimpleData"), ], keys.SET_VALUES: [ ("Input.inputs:value", 5), ("Output.inputs:a_int", 11), ], }, ) await controller.evaluate(graph) result_other = og.Controller.attribute("outputs:other", test_node) result_optional = og.Controller.attribute("outputs:optional", test_node) # With nothing connected the node should run the compute on the "other" attributes self.assertEqual(3, result_other.get(), "No connections") with self.assertRaises(TypeError): result_optional.get() # With just the input connected neither output should be computed controller.edit(graph, {keys.CONNECT: ("Input.inputs:value", "TestNode.inputs:optional")}) await controller.evaluate(graph) self.assertEqual(10, result_other.get(), "Only input connected") with self.assertRaises(TypeError): result_optional.get() # With input and output connected the optional output should be computed controller.edit( graph, { keys.CONNECT: ("TestNode.outputs:optional", "Output.inputs:a_int"), }, ) await controller.evaluate(graph) self.assertEqual(10, result_other.get(), "Both input and output connected") self.assertEqual(5, result_optional.get(), "Both input and output connected") # ---------------------------------------------------------------------- async def test_delete_graphs_by_parent(self): """OM-45753: Tests that OmniGraphs are cleaned up when their parent is deleted""" context = omni.usd.get_context() stage = context.get_stage() cube_prim = stage.DefinePrim("/World/Cube", "Cube") cube2_prim = stage.DefinePrim("/World/Cube2", "Cube") graph1_path = "/World/Cube/TestGraph1" graph2_path = "/World/Cube/TestGraph2" keys = og.Controller.Keys controller1 = og.Controller() (graph1, nodes1, _, _) = controller1.edit( graph1_path, { keys.CREATE_NODES: [ ("Input", "omni.graph.nodes.ConstantInt"), ], keys.SET_VALUES: [ ("Input.inputs:value", 1), ], }, ) await controller1.evaluate(graph1) controller2 = og.Controller() (graph2, _, _, _) = controller2.edit( graph2_path, { keys.CREATE_NODES: [ ("Input", "omni.graph.nodes.ConstantInt"), ], keys.SET_VALUES: [ ("Input.inputs:value", 2), ], }, ) await controller2.evaluate(graph2) # verify we don't screw up when a sibling is deleted omni.kit.commands.execute("DeletePrims", paths=[cube2_prim.GetPath().pathString, nodes1[0].get_prim_path()]) self.assertTrue(graph1) graphs = og.get_all_graphs() self.assertEqual(2, len(graphs)) # delete the parent prim and verify OG graph is gone and our graph wrapper has been invalidated omni.kit.commands.execute("DeletePrims", paths=[cube_prim.GetPath().pathString]) self.assertFalse(stage.GetPrimAtPath(graph1_path).IsValid()) self.assertFalse(stage.GetPrimAtPath(graph2_path).IsValid()) graphs = og.get_all_graphs() self.assertEqual(0, len(graphs)) self.assertFalse(graph1) self.assertFalse(graph2) # ---------------------------------------------------------------------- async def test_graphs_in_sublayer_load(self): """OM-46106:Tests the graphs located in added sublayers are correct loaded""" self.assertEqual(len(og.get_all_graphs_and_subgraphs()), 0) # insert a new layer with a single graph await ogts.insert_sublayer("TestGraphVariables.usda", True) self.assertEqual(len(og.get_all_graphs_and_subgraphs()), 1) # insert another layer containing multiple graphs await ogts.insert_sublayer("TestObjectIdentification.usda", True) self.assertEqual(len(og.get_all_graphs_and_subgraphs()), 7) # ---------------------------------------------------------------------- async def test_om_70414(self): """ Regression tests that loading a file with a non-zero start time doesn't crash on load. This can cause a simulation update without a stage attached. """ (result, error) = await ogts.load_test_file("TestOM70414.usda", use_caller_subdirectory=True) self.assertTrue(result, f"{error}") # ---------------------------------------------------------------------- async def test_om_73311(self): """Test that validates a resolved string using omni:graph:attrValue is accessable through the API""" (result, error) = await ogts.load_test_file("TestResolvedString.usda", use_caller_subdirectory=True) self.assertTrue(result, f"{error}") self.assertTrue(og.get_graph_by_path("/World/Graph").is_valid()) self.assertTrue(og.Controller.node("/World/Graph/write_prim").is_valid()) attribute = og.Controller.attribute("/World/Graph/write_prim.inputs:value") self.assertEquals(og.Controller.get(attribute), "chocolateChip") # ---------------------------------------------------------------------- async def test_om_83905_token_array_crash(self): """Test that copying token array when restoring saved, unresolved values doesn't crash""" controller = og.Controller() keys = og.Controller.Keys (graph, (node,), _, _) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [("ToString", "omni.graph.nodes.ToString")], keys.CREATE_PRIMS: [("/Prim1", {}), ("/Prim2", {})], keys.SET_VALUES: [("ToString.inputs:value", {"type": "token[]", "value": ["/Prim1", "/Prim2"]})], }, ) await controller.evaluate(graph) attr = node.get_attribute("inputs:value") self.assertEqual(attr.get(), ["/Prim1", "/Prim2"]) # Save and reload this file with tempfile.TemporaryDirectory() as tmp_dir_name: tmp_file_path = os.path.join(tmp_dir_name, "tmp.usda") result = omni.usd.get_context().save_as_stage(tmp_file_path) self.assertTrue(result) # refresh the stage await omni.usd.get_context().new_stage_async() # reload (result, error) = await ogts.load_test_file(str(tmp_file_path)) self.assertTrue(result, error) node = og.get_node_by_path("/TestGraph/ToString") attr = node.get_attribute("inputs:value") self.assertEqual(attr.get(), ["/Prim1", "/Prim2"])
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_omnigraph_examples.py
import math import re import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.timeline import omni.usd from pxr import Gf, Sdf, UsdGeom def example_deformer1(input_point, width, height, freq): tx = freq * (input_point[0] - width) / width ty = 1.5 * freq * (input_point[1] - width) / width return Gf.Vec3f(input_point[0], input_point[1], input_point[2] + height * (math.sin(tx) + math.cos(ty))) def example_deformer2(input_point, threshold): return Gf.Vec3f(input_point[0], input_point[1], min(input_point[2], threshold)) class TestOmniGraphExamples(ogts.OmniGraphTestCase): async def verify_example_deformer(self, deformer_path: str = "/defaultPrim/testDeformer"): usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() input_grid = stage.GetPrimAtPath("/defaultPrim/inputGrid") self.assertEqual(input_grid.GetTypeName(), "Mesh") input_points_attr = input_grid.GetAttribute("points") self.assertIsNotNone(input_points_attr) output_grid = stage.GetPrimAtPath("/defaultPrim/outputGrid") self.assertEqual(output_grid.GetTypeName(), "Mesh") output_points_attr = output_grid.GetAttribute("points") self.assertIsNotNone(output_points_attr) test_deformer = stage.GetPrimAtPath(deformer_path) multiplier_attr = test_deformer.GetAttribute("inputs:multiplier") wavelength_attr = test_deformer.GetAttribute("inputs:wavelength") multiplier = multiplier_attr.Get() width = 310.0 if wavelength_attr: wavelength = wavelength_attr.Get() if wavelength: width = wavelength height = multiplier * 10.0 freq = 10.0 # check that the deformer applies the correct deformation input_points = input_points_attr.Get() output_points = output_points_attr.Get() for input_point, output_point in zip(input_points, output_points): point = example_deformer1(input_point, width, height, freq) self.assertEqual(point[0], output_point[0]) self.assertEqual(point[1], output_point[1]) # verify that the z-coordinates computed by the test and the deformer match to three decimal places self.assertAlmostEqual(point[2], output_point[2], 3) # need to wait for next update to propagate the attribute change from USD multiplier_attr_set = multiplier_attr.Set(0.0) self.assertTrue(multiplier_attr_set) await controller.evaluate() # check that the deformer with a zero multiplier leaves the grid undeformed input_points = input_points_attr.Get() output_points = output_points_attr.Get() for input_point, output_point in zip(input_points, output_points): self.assertEqual(input_point, output_point) # ---------------------------------------------------------------------- async def do_example_deformer(self, with_cuda): usd_context = omni.usd.get_context() stage = usd_context.get_stage() (input_grid, output_grid) = ogts.create_input_and_output_grid_meshes(stage) input_points_attr = input_grid.GetPointsAttr() output_points_attr = output_grid.GetPointsAttr() keys = og.Controller.Keys controller = og.Controller() (graph, _, _, _) = controller.edit( "/defaultPrim/PushGraph", { keys.CREATE_NODES: [ ("ReadPoints", "omni.graph.nodes.ReadPrimAttribute"), ("WritePoints", "omni.graph.nodes.WritePrimAttribute"), ("testDeformer", f"omni.graph.examples.cpp.{'Deformer1Gpu' if with_cuda else 'Deformer1'}"), ], keys.SET_VALUES: [ ("ReadPoints.inputs:name", input_points_attr.GetName()), ("ReadPoints.inputs:primPath", "/defaultPrim/inputGrid"), ("ReadPoints.inputs:usePath", True), ("WritePoints.inputs:name", output_points_attr.GetName()), ("WritePoints.inputs:primPath", "/defaultPrim/outputGrid"), ("WritePoints.inputs:usePath", True), ("testDeformer.inputs:multiplier", 3.0), ("testDeformer.inputs:wavelength", 310.0), ], }, ) controller.edit( "/defaultPrim/PushGraph", { keys.CONNECT: [ ("ReadPoints.outputs:value", "testDeformer.inputs:points"), ("testDeformer.outputs:points", "WritePoints.inputs:value"), ] }, ) # Wait for USD notice handler to construct the underlying compute graph. Calls it twice because on the first # pass the node additions will be deferred, to ensure that the graph is completely set up when they are added. await controller.evaluate(graph) await self.verify_example_deformer("/defaultPrim/PushGraph/testDeformer") # ---------------------------------------------------------------------- async def test_example_deformer_gpu(self): await self.do_example_deformer(True) # ---------------------------------------------------------------------- async def test_example_deformer(self): await self.do_example_deformer(False) # ---------------------------------------------------------------------- async def test_three_deformers_dirty_push(self): (result, error) = await og.load_example_file("ExampleThreeDeformersDirtyPush.usda") self.assertTrue(result, error) controller = og.Controller() graph_path = "/World/DirtyPushGraph" stage = omni.usd.get_context().get_stage() input_grid = stage.GetPrimAtPath("/World/inputGrid") self.assertEqual(input_grid.GetTypeName(), "Mesh") input_points_attr = input_grid.GetAttribute("points") self.assertIsNotNone(input_points_attr) output_grid = stage.GetPrimAtPath("/World/outputGrid") self.assertEqual(output_grid.GetTypeName(), "Mesh") output_points_attr = output_grid.GetAttribute("points") self.assertIsNotNone(output_points_attr) deformer1 = stage.GetPrimAtPath(f"{graph_path}/deformer1") multiplier_attr1 = deformer1.GetAttribute("inputs:multiplier") wavelength_attr1 = deformer1.GetAttribute("inputs:wavelength") multiplier1 = multiplier_attr1.Get() width1 = 1.0 if wavelength_attr1: wavelength1 = wavelength_attr1.Get() if wavelength1: width1 = wavelength1 height1 = multiplier1 * 10.0 deformer2 = stage.GetPrimAtPath(f"{graph_path}/deformer2") multiplier_attr2 = deformer2.GetAttribute("inputs:multiplier") wavelength_attr2 = deformer2.GetAttribute("inputs:wavelength") multiplier2 = multiplier_attr2.Get() width2 = 1.0 if wavelength_attr2: wavelength2 = wavelength_attr2.Get() if wavelength2: width2 = wavelength2 height2 = multiplier2 * 10.0 deformer3 = stage.GetPrimAtPath(f"{graph_path}/deformer3") threshold_attr3 = deformer3.GetAttribute("inputs:threshold") threshold3 = threshold_attr3.Get() freq = 10.0 # check that the chained deformers apply the correct deformation input_points = input_points_attr.Get() output_points = output_points_attr.Get() for input_point, output_point in zip(input_points, output_points): point = example_deformer1(input_point, width1, height1, freq) point = example_deformer1(point, width2, height2, freq) point = example_deformer2(point, threshold3) self.assertEqual(point[0], output_point[0]) self.assertEqual(point[1], output_point[1]) # verify that the z-coordinates computed by the test and the deformers match to four decimal places self.assertAlmostEqual(point[2], output_point[2], 4) # need to wait for next update to propagate the attribute change from USD multiplier_attr1.Set(0.0) multiplier_attr2.Set(0.0) threshold_attr3.Set(999.0) await controller.evaluate() await omni.kit.app.get_app().next_update_async() # check that the deformers leave the grid un-deformed input_points = input_points_attr.Get() output_points = output_points_attr.Get() for input_point, output_point in zip(input_points, output_points): self.assertEqual(input_point, output_point) async def verify_inverse_kinematics(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() ref_transform = Gf.Matrix4d() ref_transform.SetIdentity() # Verify initial configuration where the end effector is at the goal position goal_sphere = UsdGeom.Sphere(stage.GetPrimAtPath("/Goal")) goal_transform = goal_sphere.GetLocalTransformation() ref_transform.SetTranslate(Gf.Vec3d(0, 0, 2)) self.assertEqual(goal_transform, ref_transform) joint_paths = ["/Hip", "/Knee", "/Ankle"] for i, joint_path in enumerate(joint_paths): joint_cube = UsdGeom.Cube(stage.GetPrimAtPath(joint_path)) joint_transform = joint_cube.GetLocalTransformation() ref_transform.SetTranslate(Gf.Vec3d(0, 0, 6 - 2 * i)) self.assertEqual(joint_transform, ref_transform) # Move the goal outside of the reachable space of the end effector. Verify that the end effector # doesn't move. goal_translate_op = goal_sphere.AddTranslateOp() goal_translate_op_set = goal_translate_op.Set(Gf.Vec3d(0, 0, -2)) self.assertTrue(goal_translate_op_set) await controller.evaluate() for i, joint_path in enumerate(joint_paths): joint_cube = UsdGeom.Cube(stage.GetPrimAtPath(joint_path)) joint_transform = joint_cube.GetLocalTransformation() ref_transform.SetTranslate(Gf.Vec3d(0, 0, 6 - 2 * i)) self.assertEqual(joint_transform, ref_transform) async def test_inverse_kinematics(self): (result, error) = await og.load_example_file("ExampleIK.usda") self.assertTrue(result, error) await self.verify_inverse_kinematics() async def test_update_node_version(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() (input_grid, output_grid) = ogts.create_input_and_output_grid_meshes(stage) input_points_attr = input_grid.GetPointsAttr() output_points_attr = output_grid.GetPointsAttr() keys = og.Controller.Keys controller = og.Controller() (push_graph, _, _, _) = controller.edit( "/defaultPrim/pushGraph", { keys.CREATE_NODES: [ ("ReadPoints", "omni.graph.nodes.ReadPrimAttribute"), ("WritePoints", "omni.graph.nodes.WritePrimAttribute"), ], keys.SET_VALUES: [ ("ReadPoints.inputs:name", input_points_attr.GetName()), ("ReadPoints.inputs:primPath", "/defaultPrim/inputGrid"), ("ReadPoints.inputs:usePath", True), ("WritePoints.inputs:name", output_points_attr.GetName()), ("WritePoints.inputs:primPath", "/defaultPrim/outputGrid"), ("WritePoints.inputs:usePath", True), ], }, ) test_deformer = stage.DefinePrim("/defaultPrim/pushGraph/testVersionedDeformer", "OmniGraphNode") test_deformer.GetAttribute("node:type").Set("omni.graph.examples.cpp.VersionedDeformer") test_deformer.GetAttribute("node:typeVersion").Set(0) deformer_input_points = test_deformer.CreateAttribute("inputs:points", Sdf.ValueTypeNames.Point3fArray) deformer_input_points.Set([(0, 0, 0)] * 1024) deformer_output_points = test_deformer.CreateAttribute("outputs:points", Sdf.ValueTypeNames.Point3fArray) deformer_output_points.Set([(0, 0, 0)] * 1024) multiplier_attr = test_deformer.CreateAttribute("multiplier", Sdf.ValueTypeNames.Float) multiplier_attr.Set(3) await controller.evaluate() controller.edit( push_graph, { keys.CONNECT: [ ("ReadPoints.outputs:value", deformer_input_points.GetPath().pathString), (deformer_output_points.GetPath().pathString, "WritePoints.inputs:value"), ] }, ) # Wait for USD notice handler to construct the underlying compute graph await controller.evaluate() # Node version update happens as the nodes are constructed and checked against the node type multiplier_attr = test_deformer.GetAttribute("multiplier") self.assertFalse(multiplier_attr.IsValid()) wavelength_attr = test_deformer.GetAttribute("inputs:wavelength") self.assertIsNotNone(wavelength_attr) self.assertEqual(wavelength_attr.GetTypeName(), Sdf.ValueTypeNames.Float) # attrib value should be initialized to 50 og_attr = controller.node("/defaultPrim/pushGraph/testVersionedDeformer").get_attribute("inputs:wavelength") self.assertEqual(og_attr.get(), 50.0) async def test_multiple_deformers(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = controller.Keys push_graph = stage.DefinePrim("/defaultPrim/pushGraph", "OmniGraph") push_graph.CreateAttribute("graph:name", Sdf.ValueTypeNames.Token).Set("pushgraph") input_grid = ogts.create_grid_mesh( stage, "/defaultPrim/inputGrid", counts=(32, 32), display_color=(0.2784314, 0.64705884, 1) ) input_points_attr = input_grid.GetPointsAttr() output_grids = [ ogts.create_grid_mesh( stage, f"/defaultPrim/outputGrid{i}", counts=(32, 32), display_color=(0.784314, 0.64705884, 0.1) ) for i in range(4) ] prims_to_expose = [(og.Controller.PrimExposureType.AS_ATTRIBUTES, "/defaultPrim/inputGrid", "InputGrid")] + [ (og.Controller.PrimExposureType.AS_WRITABLE, f"/defaultPrim/outputGrid{i}", f"OutputGrid{i}") for i in range(4) ] (graph, _, _, _) = controller.edit( "/DeformerGraph", { keys.CREATE_NODES: [(f"deformer{i}", "omni.graph.examples.cpp.Deformer1") for i in range(4)], keys.EXPOSE_PRIMS: prims_to_expose, keys.SET_VALUES: [(f"deformer{i}.inputs:multiplier", i) for i in range(4)] + [(f"deformer{i}.inputs:wavelength", 310.0) for i in range(4)], }, ) # Wait for USD notice handler to construct the underlying compute graph and resolve the output types await controller.evaluate() await omni.kit.app.get_app().next_update_async() controller.edit( graph, { keys.CONNECT: [("InputGrid.outputs:points", f"deformer{i}.inputs:points") for i in range(4)] + [(f"deformer{i}.outputs:points", f"OutputGrid{i}.inputs:points") for i in range(4)] }, ) await controller.evaluate() width = 310.0 freq = 10.0 # # Check that the deformer applies the correct deformation input_points = input_points_attr.Get() for i, output_grid in enumerate(output_grids): height = 10.0 * i output_points = output_grid.GetPointsAttr().Get() for input_point, output_point in zip(input_points, output_points): point = example_deformer1(input_point, width, height, freq) self.assertEqual(point[0], output_point[0]) self.assertEqual(point[1], output_point[1]) # verify that the z-coordinates computed by the test and the deformer match to three decimal places self.assertAlmostEqual(point[2], output_point[2], 3) # ---------------------------------------------------------------------- async def test_create_all_builtins(self): """Test state after manually creating a graph with one of each builtin node type""" all_builtin_types = [ node_type_name for node_type_name in og.get_registered_nodes() if node_type_name.startswith("omni.graph") ] stage = omni.usd.get_context().get_stage() re_bare_name = re.compile(r"([^\.]*)$") def builtin_name(builtin_type): """Return a canonical node name for the builtin node type name""" builtin_match = re_bare_name.search(builtin_type) if builtin_match: return f"{builtin_match.group(1)[0].upper()}{builtin_match.group(1)[1:]}".replace(".", "") return f"{builtin_type.upper()}".replace(".", "") all_builtin_names = [builtin_name(name) for name in all_builtin_types] og.Controller.create_graph("/BuiltinsGraph") for node_name, node_type in zip(all_builtin_names, all_builtin_types): path = omni.usd.get_stage_next_free_path(stage, "/BuiltinsGraph/" + node_name, True) _ = og.GraphController.create_node(path, node_type) new_prim = stage.GetPrimAtPath(path) self.assertIsNotNone(new_prim) # Delete all of the nodes before the compute graph is created as some of the nodes # rely on more detailed initialization to avoid crashing. await omni.kit.stage_templates.new_stage_async() # ---------------------------------------------------------------------- async def test_registered_node_types(self): registered_nodes = og.get_registered_nodes() self.assertGreater(len(registered_nodes), 0) # Check for a known type to see we are returning a sensible list of registered types self.assertEqual("omni.graph.tutorials.SimpleData" in registered_nodes, True)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_gather_scatter.py
"""Basic tests of the compute graph""" import unittest import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd from pxr import Gf, UsdGeom # ====================================================================== class TestGatherScatter(ogts.OmniGraphTestCase): """Run tests that exercises gather / scatter functionality""" TEST_GRAPH_PATH = "/World/TestGraph" # ---------------------------------------------------------------------- @unittest.skip("Crashes on Linux") async def test_simple_gather_scatter(self): """ Basic idea of the test: we have two cubes in the scene. We gather their translation and velocity attributes, bounce them per frame, and then scatter the resulting position back to the cubes """ with og.Settings.temporary(og.USE_SCHEMA_PRIMS_SETTING, True): with og.Settings.temporary(og.ALLOW_IMPLICIT_GRAPH_SETTING, True): (result, error) = await ogts.load_test_file( "TestBounceGatherScatter.usda", use_caller_subdirectory=True ) self.assertTrue(result, str(error)) graph = omni.graph.core.get_current_graph() box0_node = graph.get_node("/Stage/box_0_0") translate_attr = box0_node.get_attribute("xformOp:translate") translate = og.Controller.get(translate_attr) # ! must cache the value as translate is a reference so will automatically be mutated by the next frame t0 = translate[2] await omni.kit.app.get_app().next_update_async() translate = og.Controller.get(translate_attr) diff = abs(translate[2] - t0) self.assertGreater(diff, 0.0) # ---------------------------------------------------------------------- async def test_gather_by_path(self): """ Basic idea of the test: we have three cubes in the scene. We use a node to query their paths by type, then we feed this to the gather by path node, which vectorizes the data. Finally the vectorized data is passed to a sample bounce node that does not use bundles. Instead it relies on the bucketId passed down to bounce the cubes. """ with og.Settings.temporary(og.Settings.UPDATE_TO_USD, True): (result, error) = await ogts.load_test_file("TestGatherByPath.usda", use_caller_subdirectory=True) self.assertTrue(result, str(error)) usd_context = omni.usd.get_context() stage = usd_context.get_stage() cube_prim = stage.GetPrimAtPath("/World/Cube_00") cube_translate_attr = cube_prim.GetAttribute("xformOp:translate") t0 = cube_translate_attr.Get()[2] await omni.kit.app.get_app().next_update_async() t1 = cube_translate_attr.Get()[2] diff = abs(t1 - t0) self.assertGreater(diff, 0.0) # ---------------------------------------------------------------------- async def test_gatherprototype_set_gathered_attribute(self): """Tests the SetGatheredAttribute node, part of GatherPrototype""" controller = og.Controller() keys = og.Controller.Keys (graph, (test_set_node, _, _, _), (_, xform1, xform2, xform_tagged1, _), _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("TestSet", "omni.graph.nodes.SetGatheredAttribute"), ("GatherByPath", "omni.graph.nodes.GatherByPath"), ], keys.CREATE_PRIMS: [ ("Empty", {}), ("Xform1", {"_translate": ("pointd[3]", [0, 0, 0])}), ("Xform2", {"_translate": ("pointd[3]", [0, 0, 0])}), ("XformTagged1", {"foo": ("token", ""), "_translate": ("pointd[3]", [0, 0, 0])}), ("Tagged1", {"foo": ("token", "")}), ], keys.EXPOSE_PRIMS: [ (og.Controller.PrimExposureType.AS_WRITABLE, "/Xform1", "Write1"), (og.Controller.PrimExposureType.AS_WRITABLE, "/Xform2", "Write2"), ], keys.CONNECT: ("GatherByPath.outputs:gatherId", "TestSet.inputs:gatherId"), keys.SET_VALUES: [ ("GatherByPath.inputs:primPaths", ["/Xform1", "/Xform2"]), ("GatherByPath.inputs:attributes", "_translate"), ("GatherByPath.inputs:allAttributes", False), ("GatherByPath.inputs:shouldWriteBack", True), ("TestSet.inputs:name", "_translate"), ("TestSet.inputs:value", [[1, 2, 3], [4, 5, 6]], "double[3][]"), ], }, ) await controller.evaluate(graph) self.assertEqual( Gf.Vec3d(*og.Controller.get(controller.attribute("inputs:value", test_set_node))[0]), Gf.Vec3d(1, 2, 3) ) self.assertEqual( Gf.Vec3d(*og.Controller.get(controller.attribute("inputs:value", test_set_node))[1]), Gf.Vec3d(4, 5, 6) ) self.assertEqual(Gf.Vec3d(*xform1.GetAttribute("_translate").Get()), Gf.Vec3d(1, 2, 3)) self.assertEqual(Gf.Vec3d(*xform2.GetAttribute("_translate").Get()), Gf.Vec3d(4, 5, 6)) self.assertEqual(Gf.Vec3d(*xform_tagged1.GetAttribute("_translate").Get()), Gf.Vec3d(0, 0, 0)) # Test write mask controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("TestSet.inputs:mask", [True, False]), ("TestSet.inputs:value", [[0, 0, 0], [0, 0, 0]], "double[3][]"), ] }, ) await controller.evaluate(graph) self.assertEqual(Gf.Vec3d(*xform1.GetAttribute("_translate").Get()), Gf.Vec3d(0, 0, 0)) self.assertEqual(Gf.Vec3d(*xform2.GetAttribute("_translate").Get()), Gf.Vec3d(4, 5, 6)) # Test scaler broadcast controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("TestSet.inputs:mask", [True, True]), ("TestSet.inputs:value", [1, 2, 3], "double[3]"), ] }, ) await controller.evaluate(graph) self.assertEqual(Gf.Vec3d(*xform1.GetAttribute("_translate").Get()), Gf.Vec3d(1, 2, 3)) self.assertEqual(Gf.Vec3d(*xform2.GetAttribute("_translate").Get()), Gf.Vec3d(1, 2, 3)) # Test scaler broadcast + mask controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("TestSet.inputs:mask", [False, True]), ("TestSet.inputs:value", [1, 1, 1], "double[3]"), ] }, ) await controller.evaluate(graph) self.assertEqual(Gf.Vec3d(*xform1.GetAttribute("_translate").Get()), Gf.Vec3d(1, 2, 3)) self.assertEqual(Gf.Vec3d(*xform2.GetAttribute("_translate").Get()), Gf.Vec3d(1, 1, 1)) # ---------------------------------------------------------------------- async def test_gatherprototype_performance(self): """Exercises the GatherPrototype for the purpose of performance measurement""" # Test will include test_dim^3 elements test_dim = 5 test_iterations = 10 controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("GetPrimPaths", "omni.graph.nodes.FindPrims"), ("GatherByPath", "omni.graph.nodes.GatherByPath"), ("Get", "omni.graph.nodes.GetGatheredAttribute"), ("Mult", "omni.graph.nodes.Multiply"), ("ConstV", "omni.graph.nodes.ConstantVec3d"), ("Set", "omni.graph.nodes.SetGatheredAttribute"), ], keys.CREATE_PRIMS: [ (f"Test_{x}_{y}_{z}", {"_translate": ("pointd[3]", [x * test_dim, y * test_dim, z * test_dim])}) for x in range(1, test_dim + 1) for y in range(1, test_dim + 1) for z in range(1, test_dim + 1) ], keys.EXPOSE_PRIMS: [ (og.Controller.PrimExposureType.AS_WRITABLE, f"/Test_{x}_{y}_{z}", f"Write_{x}_{y}_{z}") for x in range(1, test_dim + 1) for y in range(1, test_dim + 1) for z in range(1, test_dim + 1) ], keys.CONNECT: [ ("GetPrimPaths.outputs:primPaths", "GatherByPath.inputs:primPaths"), ("GatherByPath.outputs:gatherId", "Get.inputs:gatherId"), ("Get.outputs:value", "Mult.inputs:a"), ("ConstV.inputs:value", "Mult.inputs:b"), ("Mult.outputs:product", "Set.inputs:value"), ("GatherByPath.outputs:gatherId", "Set.inputs:gatherId"), ], keys.SET_VALUES: [ ("GetPrimPaths.inputs:namePrefix", "Test_"), ("GatherByPath.inputs:attributes", "_translate"), ("GatherByPath.inputs:allAttributes", False), ("GatherByPath.inputs:shouldWriteBack", True), ("Get.inputs:name", "_translate"), ("Set.inputs:name", "_translate"), ("ConstV.inputs:value", [10, 20, 30]), ], }, ) await controller.evaluate(graph) # Sanity check it did one and only one evaluation val = Gf.Vec3d(*controller.prim("/Test_2_1_1").GetAttribute("_translate").Get()) expected = Gf.Vec3d(test_dim * 2 * 10, test_dim * 20, test_dim * 30) self.assertEqual(val, expected) import time t0 = time.time() for _ in range(test_iterations): await controller.evaluate(graph) dt = time.time() - t0 print(f"{dt:3.2}s for {test_iterations} iterations of {test_dim**3} elements") # ---------------------------------------------------------------------- async def test_gatherprototype_hydra_fastpath(self): """Tests the Gather Prototype Hydra attribute creation feature""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys cube1 = UsdGeom.Xformable(ogts.create_cube(stage, "Test_Xform1", (1, 1, 1))) cube1.AddTranslateOp().Set(Gf.Vec3d(1, 2, 3)) cube1.AddRotateXYZOp().Set((90, 0, 0)) cube2 = UsdGeom.Xformable(ogts.create_cube(stage, "Test_Xform2", (1, 1, 1))) cube2.AddTranslateOp().Set(Gf.Vec3d(4, 5, 6)) cube2.AddRotateZOp().Set(90) (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("GatherByPath", "omni.graph.nodes.GatherByPath"), ("GetWorldPos", "omni.graph.nodes.GetGatheredAttribute"), ("GetWorldOrient", "omni.graph.nodes.GetGatheredAttribute"), ], keys.CONNECT: [ ("GatherByPath.outputs:gatherId", "GetWorldPos.inputs:gatherId"), ("GatherByPath.outputs:gatherId", "GetWorldOrient.inputs:gatherId"), ], keys.SET_VALUES: [ ("GatherByPath.inputs:primPaths", ["/Test_Xform1", "/Test_Xform2"]), ("GatherByPath.inputs:hydraFastPath", "World"), ("GetWorldPos.inputs:name", "_worldPosition"), ("GetWorldOrient.inputs:name", "_worldOrientation"), ], }, ) await controller.evaluate(graph) # Check that hydra attribs were added and that they match what we expect vals = og.Controller.get(controller.attribute("outputs:value", "GetWorldPos", graph)) self.assertEqual(len(vals), 2) self.assertEqual(Gf.Vec3d(*vals[1]), Gf.Vec3d([4, 5, 6])) vals = og.Controller.get(controller.attribute("outputs:value", "GetWorldOrient", graph)) self.assertEqual(len(vals), 2) val = vals[1].tolist() got = Gf.Quatd(val[2], val[0], val[1], val[2]) expected = Gf.Transform(cube2.GetLocalTransformation()).GetRotation().GetQuat() self.assertAlmostEqual(got.GetReal(), expected.GetReal()) for e, e2 in zip(got.GetImaginary(), expected.GetImaginary()): self.assertAlmostEqual(e, e2) # switch to Local mode controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: ("GetLocalMatrix", "omni.graph.nodes.GetGatheredAttribute"), keys.CONNECT: ("GatherByPath.outputs:gatherId", "GetLocalMatrix.inputs:gatherId"), keys.SET_VALUES: [ ("GatherByPath.inputs:hydraFastPath", "Local"), ("GetLocalMatrix.inputs:name", "_localMatrix"), ], }, ) await controller.evaluate(graph) vals = og.Controller.get(controller.attribute("outputs:value", "GetLocalMatrix", graph)) self.assertEqual(len(vals), 2) got = Gf.Matrix4d(*vals[1].tolist()) expected = cube2.GetLocalTransformation() self.assertEqual(got, expected) # ---------------------------------------------------------------------- async def test_gatherprototype_writeback(self): """Tests the Gather Prototype Writeback to USD feature Curently fails on linux only... Temporarily comment out during investigation... controller = og.Controller() keys = og.Controller.Keys ( graph, _, (writeback_prim, no_writeback_prim), _, ) = controller.edit(self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("GatherByPathWriteback", "omni.graph.nodes.GatherByPath"), ("GatherByPathNoWriteback", "omni.graph.nodes.GatherByPath"), ("SetWriteback", "omni.graph.nodes.SetGatheredAttribute"), ("SetNoWriteback", "omni.graph.nodes.SetGatheredAttribute") ], keys.CREATE_PRIMS: [ ("XformWriteback", {"_translate": ("pointd[3]", [0, 0, 0])}), ("XformNoWriteback", {"_translate": ("pointd[3]", [0, 0, 0])}), ], keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_WRITABLE, "/XformWriteback", "WritePrim"), keys.CONNECT: [ ("GatherByPathWriteback.outputs:gatherId", "SetWriteback.inputs:gatherId"), ("GatherByPathNoWriteback.outputs:gatherId", "SetNoWriteback.inputs:gatherId") ], keys.SET_VALUES: [ ("GatherByPathWriteback.inputs:primPaths", ["/XformWriteback"]), ("GatherByPathNoWriteback.inputs:primPaths", ["/XformNoWriteback"]), ("GatherByPathWriteback.inputs:attributes", "_translate"), ("GatherByPathWriteback.inputs:allAttributes", False), ("GatherByPathWriteback.inputs:shouldWriteBack", True), ("GatherByPathNoWriteback.inputs:attributes", "_translate"), ("GatherByPathNoWriteback.inputs:allAttributes", False), ("GatherByPathNoWriteback.inputs:shouldWriteBack", False), ("SetWriteback.inputs:name", "_translate"), ("SetWriteback.inputs:value", {"type": "double[3][]", "value": [[1, 2, 3]]}), ("SetNoWriteback.inputs:name", "_translate"), ("SetNoWriteback.inputs:value", {"type": "double[3][]", "value": [[1, 2, 3]]}) ], }) await controller.evaluate(graph) # Check that the attribs in USD were only changed for the specified prim write_back_attrib = writeback_prim.GetAttribute("_translate") no_write_back_attrib = no_writeback_prim.GetAttribute("_translate") self.assertEqual(write_back_attrib.Get(), Gf.Vec3d(1, 2, 3)) self.assertEqual(no_write_back_attrib.Get(), Gf.Vec3d(0, 0, 0)) """ # ---------------------------------------------------------------------- async def test_gatherprototype_repeated_paths(self): """Tests the Gather Prototype with repeated prim paths in the input""" controller = og.Controller() keys = og.Controller.Keys # Test the Getter. Getter should get two of the same data (graph, (_, get_attrib_node, _), (xform_prim,), _,) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("GatherByPath", "omni.graph.nodes.GatherByPath"), ("GetAttrib", "omni.graph.nodes.GetGatheredAttribute"), ], keys.CREATE_PRIMS: ("Xform", {"_translate": ["pointd[3]", [1, 2, 3]]}), keys.EXPOSE_PRIMS: (og.Controller.PrimExposureType.AS_WRITABLE, "/Xform", "WritePrim"), keys.CONNECT: [("GatherByPath.outputs:gatherId", "GetAttrib.inputs:gatherId")], keys.SET_VALUES: [ ("GatherByPath.inputs:primPaths", ["/Xform", "/Xform"]), ("GatherByPath.inputs:attributes", "_translate"), ("GatherByPath.inputs:allAttributes", False), ("GetAttrib.inputs:name", "_translate"), ], }, ) await controller.evaluate(graph) vals = og.Controller.get(controller.attribute("outputs:value", get_attrib_node)) self.assertEqual(len(vals), 2) self.assertEqual(Gf.Vec3d(*vals[0]), Gf.Vec3d([1, 2, 3])) self.assertEqual(Gf.Vec3d(*vals[1]), Gf.Vec3d([1, 2, 3])) self.assertEqual(Gf.Vec3d(*xform_prim.GetAttribute("_translate").Get()), Gf.Vec3d(1, 2, 3)) # Test the Setter. Both masks should change the same prim value controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: ("SetAttrib", "omni.graph.nodes.SetGatheredAttribute"), keys.CONNECT: ("GatherByPath.outputs:gatherId", "SetAttrib.inputs:gatherId"), keys.SET_VALUES: [ ("SetAttrib.inputs:name", "_translate"), ("SetAttrib.inputs:mask", [True, False]), ("SetAttrib.inputs:value", [[4, 5, 6], [7, 8, 9]], "double[3][]"), ("GatherByPath.inputs:shouldWriteBack", True), ], }, ) await controller.evaluate(graph) self.assertEqual(Gf.Vec3d(*xform_prim.GetAttribute("_translate").Get()), Gf.Vec3d(4, 5, 6)) controller.edit(self.TEST_GRAPH_PATH, {keys.SET_VALUES: ("SetAttrib.inputs:mask", [False, True])}) await controller.evaluate(graph) self.assertEqual(Gf.Vec3d(*xform_prim.GetAttribute("_translate").Get()), Gf.Vec3d(7, 8, 9))
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_actiongraph.py
"""Basic tests of the action graph""" import omni.client import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd from omni.kit.commands import execute from pxr import Gf, Sdf, Vt # ====================================================================== class TestActionGraphIntegration(ogts.OmniGraphTestCase): """Integration tests for Action Graph""" TEST_GRAPH_PATH = "/World/TestGraph" async def setUp(self): """Set up test environment, to be torn down when done""" self._var_index = 0 await super().setUp() og.Controller.edit({"graph_path": self.TEST_GRAPH_PATH, "evaluator_name": "execution"}) # ---------------------------------------------------------------------- async def test_path_attribute(self): """Check that AG properly handles USD prim paths being changed at runtime""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() (_, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { "create_nodes": [ ("OnTick", "omni.graph.action.OnTick"), ("Set", "omni.graph.action.SetPrimActive"), ("Query", "omni.graph.nodes.IsPrimActive"), ("PrimPath", "omni.graph.nodes.ConstantPath"), ("BoolNot", "omni.graph.nodes.BooleanNot"), ("Simple", "omni.graph.tutorials.SimpleData"), ], "create_prims": [("Test", {}), ("Test/Child", {}), ("Dummy", {}), ("Dummy/Child", {})], "connect": [ ("OnTick.outputs:tick", "Set.inputs:execIn"), ("Query.outputs:active", "BoolNot.inputs:valueIn"), ("BoolNot.outputs:valueOut", "Set.inputs:active"), ("PrimPath.inputs:value", "Simple.inputs:a_path"), ("Simple.outputs:a_path", "Query.inputs:prim"), ], "set_values": [ ("Set.inputs:prim", "/Test/Child"), ("PrimPath.inputs:value", "/Test"), ("OnTick.inputs:onlyPlayback", False), ], }, ) # Move the prim. execute("MovePrim", path_from="/Test", path_to="/Test1") test = stage.GetPrimAtPath("/Test1/Child") # Graph should still work. First run should deactivate the prim. await controller.evaluate() self.assertFalse(test.IsActive()) # Second run should make it active again. await controller.evaluate() self.assertTrue(test.IsActive()) # Make sure that if we change the value, it can reconnect correctly to the path. # First change to an unrelated target. controller.edit( self.TEST_GRAPH_PATH, {"set_values": [("Set.inputs:prim", "/Dummy"), ("PrimPath.inputs:value", "/Dummy")]} ) # Disconnected form the prim => evaluation shouldn't change a thing. self.assertTrue(test.IsActive()) await controller.evaluate() self.assertTrue(test.IsActive()) # Now reset to proper name. controller.edit( self.TEST_GRAPH_PATH, {"set_values": [("Set.inputs:prim", "/Test1/Child"), ("PrimPath.inputs:value", "/Test1")]}, ) # Graph should work. First run should deactivate the prim. await controller.evaluate() self.assertFalse(test.IsActive()) # Second run should make it active again. await controller.evaluate() self.assertTrue(test.IsActive()) # Move again the prim. execute("MovePrim", path_from="/Test1", path_to="/Test2") test = stage.GetPrimAtPath("/Test2/Child") # Graph should still work. First run should deactivate the prim. await controller.evaluate() self.assertFalse(test.IsActive()) # Second run should make it active again. await controller.evaluate() self.assertTrue(test.IsActive()) # ---------------------------------------------------------------------- async def test_path_on_property(self): """Another test to check AG properly handles USD prim paths being changed at runtime""" # Query--------->BoolNot-----+ # ^ | # | v # Simple----+ OnObjectChange-> Set # | ^ # +-------------------------------+ usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() (_, _, prims, _) = controller.edit( self.TEST_GRAPH_PATH, { "create_nodes": [ ("OnObjectChange", "omni.graph.action.OnObjectChange"), ("Set", "omni.graph.action.SetPrimActive"), ("Query", "omni.graph.nodes.IsPrimActive"), ("BoolNot", "omni.graph.nodes.BooleanNot"), ("Simple", "omni.graph.tutorials.SimpleData"), ], "create_prims": [("Test", {}), ("Test/Child", {"myfloat": ("float", 0)})], "connect": [ ("OnObjectChange.outputs:changed", "Set.inputs:execIn"), ("Simple.outputs:a_path", "Set.inputs:prim"), ("Simple.outputs:a_path", "Query.inputs:prim"), ("Query.outputs:active", "BoolNot.inputs:valueIn"), ("BoolNot.outputs:valueOut", "Set.inputs:active"), ], "set_values": [ ("Simple.inputs:a_path", "/Test"), ("OnObjectChange.inputs:onlyPlayback", False), ("OnObjectChange.inputs:path", "/Test/Child.myfloat"), ], }, ) test = prims[1] attr = test.GetAttribute("myfloat") # First evaluation should do nothing. self.assertTrue(test.IsActive()) await controller.evaluate() self.assertTrue(test.IsActive()) # Modify the trigger value, should activate the graph. attr.Set(1) self.assertTrue(test.IsActive()) await controller.evaluate() self.assertFalse(test.IsActive()) # Moving the parent prim should keep everything working. execute("MovePrim", path_from="/Test", path_to="/Test1") test = stage.GetPrimAtPath("/Test1/Child") attr = test.GetAttribute("myfloat") # => first, the move shouldn't have triggered a changed. self.assertFalse(test.IsActive()) await controller.evaluate() self.assertFalse(test.IsActive()) # => then, graph is executed again if value is changed. attr.Set(2) self.assertFalse(test.IsActive()) await controller.evaluate() self.assertTrue(test.IsActive()) # ---------------------------------------------------------------------- async def test_writeprimattribute_scaler(self): """Exercise WritePrimAttribute for scalar value""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() controller = og.Controller() keys = og.Controller.Keys (graph, _, prims, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("Set", "omni.graph.nodes.WritePrimAttribute"), ], keys.CREATE_PRIMS: ("/World/Float", {"myfloat": ("float", 0)}), keys.CONNECT: ("OnTick.outputs:tick", "Set.inputs:execIn"), keys.SET_VALUES: [ ("Set.inputs:name", "myfloat"), ("Set.inputs:primPath", "/World/Float"), ("Set.inputs:usePath", True), ("Set.inputs:value", 42.0, "float"), ("OnTick.inputs:onlyPlayback", False), ], }, ) await controller.evaluate(graph) self.assertEqual(prims[0].GetAttribute("myfloat").Get(), 42.0) # Same test but with bundle input stage.GetPrimAtPath(f"{self.TEST_GRAPH_PATH}/Set").GetRelationship("inputs:prim").SetTargets( [Sdf.Path("/World/Float")] ) controller.edit( self.TEST_GRAPH_PATH, { keys.SET_VALUES: [ ("Set.inputs:usePath", False), ("Set.inputs:value", 0.0, "float"), ] }, ) await controller.evaluate(graph) self.assertEqual(prims[0].GetAttribute("myfloat").Get(), 0.0) # ---------------------------------------------------------------------- async def test_writeprimattribute_noexist(self): """Test WritePrimAttribute can handle attribute that exists in USD but not in FC""" controller = og.Controller() keys = og.Controller.Keys (graph, _, prims, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("Set", "omni.graph.nodes.WritePrimAttribute"), ], keys.CREATE_PRIMS: ("/World/Cube", "Cube"), keys.CONNECT: ("OnTick.outputs:tick", "Set.inputs:execIn"), keys.SET_VALUES: [ ("Set.inputs:name", "visibility"), ("Set.inputs:primPath", "/World/Cube"), ("Set.inputs:usePath", True), ("Set.inputs:value", "invisible", "token"), ("OnTick.inputs:onlyPlayback", False), ], }, ) await controller.evaluate(graph) await controller.evaluate(graph) self.assertEqual(prims[0].GetAttribute("visibility").Get(), "invisible") # ---------------------------------------------------------------------- async def test_readwrite_primattribute_primvar(self): """Test WritePrimAttribute and ReadPrimAttribute can handle primvars""" # The idea is to Read the primvar that exists, but does not have a value. It should resolve to the correct type # of float[3][] because the primvar is defined. Then take that value and append a color and feed that into # WritePrimAttribute to write it to a different prim which requires authoring the primvar and copying the value. # controller = og.Controller() keys = og.Controller.Keys (graph, _, prims, _) = controller.edit( self.TEST_GRAPH_PATH, {keys.CREATE_PRIMS: [("/World/Cube1", "Cube"), ("/World/Cube2", "Cube")]} ) self.assertIsNone(prims[0].GetAttribute("primvars:displayColor").Get()) controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("Set", "omni.graph.nodes.WritePrimAttribute"), ("Get", "omni.graph.nodes.ReadPrimAttribute"), ("ArraySetIndex", "omni.graph.nodes.ArraySetIndex"), ], keys.CONNECT: [ ("OnTick.outputs:tick", "Set.inputs:execIn"), ("Get.outputs:value", "ArraySetIndex.inputs:array"), ("ArraySetIndex.outputs:array", "Set.inputs:value"), ], keys.SET_VALUES: [ ("Set.inputs:name", "primvars:displayColor"), ("Set.inputs:primPath", "/World/Cube2"), ("Set.inputs:usePath", True), ("Get.inputs:name", "primvars:displayColor"), ("Get.inputs:primPath", "/World/Cube1"), ("Get.inputs:usePath", True), ("ArraySetIndex.inputs:resizeToFit", True), ("ArraySetIndex.inputs:index", 0), ("ArraySetIndex.inputs:value", (1, 0, 0), "float[3]"), ("OnTick.inputs:onlyPlayback", False), ], }, ) await controller.evaluate(graph) await controller.evaluate(graph) self.assertEqual(list(prims[1].GetAttribute("primvars:displayColor").Get()), [(1, 0, 0)]) # ---------------------------------------------------------------------- async def _test_writeprimattribute_tuple(self): """Exercise WritePrimAttribute for a tuple value""" controller = og.Controller() keys = og.Controller.Keys (graph, _, prims, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("Set", "omni.graph.nodes.WritePrimAttribute"), ], keys.CREATE_PRIMS: ("/World/Double3", {"mydouble3": ("double[3]", Gf.Vec3d(0, 0, 0))}), keys.CONNECT: ("OnTick.outputs:tick", "Set.inputs:execIn"), keys.SET_VALUES: [ ("Set.inputs:name", "mydouble3"), ("Set.inputs:primPath", "/World/Double3"), ("Set.inputs:usePath", True), ("Set.inputs:value", Gf.Vec3d(42.0, 42.0, 42.0), "double[3]"), ("OnTick.inputs:onlyPlayback", False), ], }, ) await controller.evaluate(graph) self.assertEqual(prims[0].GetAttribute("mydouble3").Get(), Gf.Vec3d(42.0, 42.0, 42.0)) # ---------------------------------------------------------------------- async def test_writeprimattribute_array(self): """Exercise WritePrimAttribute for an array value""" controller = og.Controller() keys = og.Controller.Keys big_array = Vt.IntArray(1000, [0 for _ in range(1000)]) (graph, _, prims, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("Set", "omni.graph.nodes.WritePrimAttribute"), ], keys.CREATE_PRIMS: ("/World/IntArray", {"myintarray": ("int[]", [0xFF for _ in range(10)])}), keys.CONNECT: ("OnTick.outputs:tick", "Set.inputs:execIn"), keys.SET_VALUES: [ ("Set.inputs:name", "myintarray"), ("Set.inputs:primPath", "/World/IntArray"), ("Set.inputs:usePath", True), ("Set.inputs:value", big_array, "int[]"), ("OnTick.inputs:onlyPlayback", False), ], }, ) await controller.evaluate(graph) self.assertEqual(prims[0].GetAttribute("myintarray").Get(), big_array) async def test_resync_handling(self): """Test that resyncing a path only resets OG state when expected""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() cube = stage.DefinePrim("/World/scope1/cube", "Cube") controller = og.Controller() keys = og.Controller.Keys (graph, (on_impulse, _, counter, extra), _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("OnImpulse", "omni.graph.action.OnImpulseEvent"), ("TickN", "omni.graph.action.Countdown"), ("Counter0", "omni.graph.action.Counter"), ("OnImpulseExtra", "omni.graph.action.OnImpulseEvent"), ], keys.CONNECT: [ ("OnImpulse.outputs:execOut", "TickN.inputs:execIn"), ("TickN.outputs:finished", "Counter0.inputs:execIn"), ], keys.SET_VALUES: [ ("OnImpulse.inputs:onlyPlayback", False), ("TickN.inputs:duration", 3), ("OnImpulse.state:enableImpulse", True), ], }, ) count_attrib = og.Controller.attribute("outputs:count", counter) # tick 0 (setup) await controller.evaluate(graph) # tick 1 await controller.evaluate(graph) # Removing the prim will trigger resync handling, we will verify that this doesn't # interrupt the latent node stage.RemovePrim(cube.GetPath()) # tick 2 await omni.kit.app.get_app().next_update_async() self.assertEqual(og.Controller.get(count_attrib), 0) # tick 3 (last tick in duration) await controller.evaluate(graph) self.assertEqual(og.Controller.get(count_attrib), 0) # tick 5 (finished triggers counter) await controller.evaluate(graph) self.assertEqual(og.Controller.get(count_attrib), 1) # Now check that removing a node prim does reset the state og.Controller.set(og.Controller.attribute("state:enableImpulse", on_impulse), True) # tick 0 (setup) await controller.evaluate(graph) # tick 1 await controller.evaluate(graph) # Removing the prim will trigger resync handling, we will verify that this doesn't # interrupt the latent node stage.RemovePrim(extra.get_prim_path()) # tick ( nothing ) await omni.kit.app.get_app().next_update_async() self.assertEqual(og.Controller.get(count_attrib), 1) # tick 3 (nothing) await controller.evaluate(graph) self.assertEqual(og.Controller.get(count_attrib), 1) # tick 5 (nothing) await controller.evaluate(graph) self.assertEqual(og.Controller.get(count_attrib), 1)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_autonode.py
""" Contains support for testing methods in ../autonode/autonode.py """ import enum import random import sys import unittest from typing import Tuple import omni.graph.core as og import omni.graph.core.autonode as oga import omni.graph.core.tests as ogts # Test warp integration # Detect the testing environment and use the Kit Async testing framework if it is available try: import omni.kit.test TestBaseClass = omni.kit.test.AsyncTestCase except ImportError: TestBaseClass = unittest.TestCase @oga.AutoClass(module_name="__test__") class TestClass: """Simple AutoClass test with four attributes""" test_visible_str_property: str = "test visible str property" test_visible_int_property: int = 42 test_visible_float_property: float = 3.141 test_uninitialized_property: str _test_hidden_state = 0 def __init__(self): raise RuntimeError("This is a test singleton class") @classmethod def _get_instance(cls): if not hasattr(cls, "_instance") or cls._instance is None: cls._instance = cls.__new__(cls) return cls._instance def test_visible_method(self, is_input: bool = False) -> int: self._test_hidden_state ^= int(is_input) return self._test_hidden_state @oga.AutoFunc(module_name="__test__") def get_test_class_instance() -> TestClass: return TestClass._get_instance() # noqa: PLW0212 class TestEnum(enum.Enum): VAL0 = 0 VAL1 = 1 VAL2 = 2 def get_test_enum(input_value: int) -> TestEnum: i = input_value % 3 return TestEnum(i) @oga.AutoFunc(module_name="__test__", pure=True) def pack(v: og.Float3, c: og.Color3f) -> og.Bundle: bundle = og.Bundle("return", False) bundle.create_attribute("vec", og.Float3).value = v bundle.create_attribute("col", og.Color3f).value = c return bundle @oga.AutoFunc(module_name="__test__", pure=True) def unpack_vector(bundle: og.Bundle) -> og.Float3: vec = bundle.attribute_by_name("vec") if vec: return vec.value return (0, 0, 0) @oga.AutoFunc(module_name="__test__", pure=True) def identity_float3(input_value: og.Float3) -> og.Float3: return input_value @oga.AutoFunc(module_name="__test__", pure=True) def identity_tuple(input_value_1: str, input_value_2: int) -> Tuple[int, str]: return (input_value_1, input_value_2) def dbl_to_matd(input_value: og.Double3) -> og.Matrix4d: pass ################################################################################ class TestAutographNodes(ogts.OmniGraphTestCase): TEST_GRAPH_PATH = "/World/TestGraph" async def setUp(self): """Set up test environment, to be torn down when done""" await super().setUp() og.Controller.edit({"graph_path": self.TEST_GRAPH_PATH, "evaluator_name": "execution"}) # -------------------------------------------------------------------------------- async def _property_test(self, property_name, test_value, *, almost_equal=False): """exercise a basic network of execution nodes""" controller = og.Controller() keys = og.Controller.Keys gci_name = "GetClassInstance" getter_name = "Getter" setter_name = "Setter" (graph, nodes, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Ticker", "omni.graph.action.OnTick"), (f"{gci_name}01", "__test__.get_test_class_instance"), (getter_name, f"__test__.TestClass__PROP__{property_name}__GET"), ], keys.CONNECT: [ ("Ticker.outputs:tick", f"{gci_name}01.inputs:exec"), (f"{gci_name}01.outputs:exec", f"{getter_name}.inputs:exec"), (f"{gci_name}01.outputs:out_0", f"{getter_name}.inputs:target"), ], keys.SET_VALUES: [("Ticker.inputs:onlyPlayback", False)], }, ) await controller.evaluate(graph) (_, _, getter_node) = nodes if almost_equal: self.assertAlmostEqual( og.Controller.get(controller.attribute("outputs:out_0", getter_node)), getattr(TestClass._get_instance(), property_name), # noqa: PLW0212 places=3, ) else: self.assertEqual( og.Controller.get(controller.attribute("outputs:out_0", getter_node)), getattr(TestClass._get_instance(), property_name), # noqa: PLW0212 ) self.assertEqual( og.Controller.get(controller.attribute("outputs:exec", getter_node)), og.ExecutionAttributeState.ENABLED ) (graph, nodes, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ (f"{gci_name}02", "__test__.get_test_class_instance"), (setter_name, f"__test__.TestClass__PROP__{property_name}__SET"), ], keys.CONNECT: [ ("Ticker.outputs:tick", f"{gci_name}02.inputs:exec"), (f"{gci_name}02.outputs:exec", f"{setter_name}.inputs:exec"), (f"{gci_name}02.outputs:out_0", f"{setter_name}.inputs:target"), ], keys.DISCONNECT: ("Ticker.outputs:tick", f"{gci_name}01.inputs:exec"), keys.SET_VALUES: (f"{setter_name}.inputs:value", test_value), }, ) await controller.evaluate(graph) (_, setter_node) = nodes if almost_equal: self.assertAlmostEqual( getattr(TestClass._get_instance(), property_name), test_value, places=3 # noqa: PLW0212 ) else: self.assertEqual(getattr(TestClass._get_instance(), property_name), test_value) # noqa: PLW0212 self.assertEqual( og.Controller.get(controller.attribute("outputs:exec", setter_node)), og.ExecutionAttributeState.ENABLED ) # -------------------------------------------------------------------------------- async def test_property_string(self): """Test to see strings can be get and set""" property_name = "test_visible_str_property" test_value = "test_value!" await self._property_test(property_name, test_value) # -------------------------------------------------------------------------------- async def test_property_int(self): """Test to see ints can be get and set""" property_name = "test_visible_int_property" test_value = random.randint(0, sys.maxsize >> 32) await self._property_test(property_name, test_value) # -------------------------------------------------------------------------------- async def test_property_float(self): """Test to see floats can be get and set""" property_name = "test_visible_float_property" test_value = random.random() await self._property_test(property_name, test_value, almost_equal=True) # -------------------------------------------------------------------------------- async def test_enum(self): """Test switching on enums""" oga.AutoClass(module_name="__test__")(TestEnum) oga.AutoFunc(module_name="__test__")(get_test_enum) test_enum_sanitized_name = TestEnum.__qualname__.replace(".", "__NSP__") controller = og.Controller() keys = og.Controller.Keys (graph, nodes, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Ticker", "omni.graph.action.OnTick"), ("Generator", "__test__.get_test_enum"), ("Switch", f"__test__.{test_enum_sanitized_name}"), ], keys.CONNECT: [ ("Ticker.outputs:tick", "Generator.inputs:exec"), ("Generator.outputs:exec", "Switch.inputs:exec"), ("Generator.outputs:out_0", "Switch.inputs:enum"), ], keys.SET_VALUES: [("Ticker.inputs:onlyPlayback", False), ("Generator.inputs:input_value", 1)], }, ) await controller.evaluate(graph) (_, _, switch_node) = nodes self.assertEqual( og.Controller.get(controller.attribute("outputs:VAL0", switch_node)), og.ExecutionAttributeState.DISABLED ) self.assertEqual( og.Controller.get(controller.attribute("outputs:VAL1", switch_node)), og.ExecutionAttributeState.ENABLED ) self.assertEqual( og.Controller.get(controller.attribute("outputs:VAL2", switch_node)), og.ExecutionAttributeState.DISABLED ) controller.edit( self.TEST_GRAPH_PATH, {keys.SET_VALUES: [("Generator.inputs:input_value", 2), ("Switch.outputs:VAL1", False)]}, ) await controller.evaluate(graph) self.assertEqual( og.Controller.get(controller.attribute("outputs:VAL0", switch_node)), og.ExecutionAttributeState.DISABLED ) self.assertEqual( og.Controller.get(controller.attribute("outputs:VAL1", switch_node)), og.ExecutionAttributeState.DISABLED ) self.assertEqual( og.Controller.get(controller.attribute("outputs:VAL2", switch_node)), og.ExecutionAttributeState.ENABLED ) # -------------------------------------------------------------------------------- class TestAutographPureNodes(ogts.OmniGraphTestCase): TEST_GRAPH_PATH = "/World/TestGraph" # ---------------------------------------------------------------------- async def tuple_test(self): """Test multiple outputs""" def switch_io(input1: str, input2: int) -> Tuple[int, str]: return (input2, input1) oga.AutoFunc(module_name="__test__", pure=True)(switch_io) # ---------------------------------------------------------------------- async def test_tuple(self): """Test multiple outputs""" test_input1 = "test" test_input2 = 42 controller = og.Controller() keys = og.Controller.Keys (graph, nodes, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [("Identity1", "__test__.identity_tuple"), ("Identity2", "__test__.identity_tuple")], keys.CONNECT: [ ("Identity1.outputs:out_0", "Identity2.inputs:input_value_1"), ("Identity1.outputs:out_1", "Identity2.inputs:input_value_2"), ], keys.SET_VALUES: [ ("Identity1.inputs:input_value_1", test_input1), ("Identity1.inputs:input_value_2", test_input2), ], }, ) await controller.evaluate(graph) (identity1_node, _) = nodes self.assertEqual(og.Controller.get(controller.attribute("outputs:out_0", identity1_node)), test_input1) self.assertEqual(og.Controller.get(controller.attribute("outputs:out_1", identity1_node)), test_input2) # -------------------------------------------------------------------------------- async def test_bundle(self): """Test switching on bundles""" test_input_1 = (random.random(), random.random(), random.random()) test_input_2 = (0, 0.5, 1) oga.AutoFunc(module_name="__test__", pure=True)(unpack_vector) controller = og.Controller() keys = og.Controller.Keys (graph, nodes, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("Pack", "__test__.pack"), ("UnpackVector", "__test__.unpack_vector"), ("Id", "__test__.identity_float3"), ], keys.CONNECT: [ # outputs_out_0 instead of outputs:out_0 due to the way bundles are implemented ("Pack.outputs_out_0", "UnpackVector.inputs:bundle"), ("UnpackVector.outputs:out_0", "Id.inputs:input_value"), ], keys.SET_VALUES: [("Pack.inputs:v", test_input_1), ("Pack.inputs:c", test_input_2)], }, ) await controller.evaluate(graph) (_, unpack_vector_node, _) = nodes out_0 = og.Controller.get(controller.attribute("outputs:out_0", unpack_vector_node)) self.assertAlmostEqual(out_0[0], test_input_1[0], places=3) self.assertAlmostEqual(out_0[1], test_input_1[1], places=3) self.assertAlmostEqual(out_0[2], test_input_1[2], places=3) # -------------------------------------------------------------------------------- async def test_type(self): """Tests creating nodes based on functions from many types.""" oga.AutoFunc(module_name="__test__")(dbl_to_matd)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_omnigraph_general.py
# noqa: PLC0302 """Basic tests of the compute graph""" import os import tempfile import omni.graph.core as og import omni.graph.core._unstable as ogu import omni.graph.core.tests as ogts import omni.graph.tools.ogn as ogn import omni.kit.commands import omni.kit.test import omni.kit.undo import omni.usd import omni.usd.commands from pxr import Gf, OmniGraphSchemaTools, Sdf # ====================================================================== class SimpleGraph: def __init__(self): self.graph = None self.input_prim = None self.simple_node = None self.cube_prim = None # ====================================================================== def create_simple_graph(stage): """Create a scene containing an Xform prim, a Cube, and a PushGraph with a SimpleNode.""" scene = SimpleGraph() # create nodes path = omni.usd.get_stage_next_free_path(stage, "/" + "InputPrim", True) scene.input_prim = stage.DefinePrim(path, "Xform") scene.input_prim.CreateAttribute("value", Sdf.ValueTypeNames.Float).Set(0.5) (scene.graph, nodes, _, _) = og.Controller.edit( "/World/PushGraph", { og.Controller.Keys.CREATE_NODES: [("SimpleNode", "omni.graph.examples.cpp.Simple")], og.Controller.Keys.SET_VALUES: [("SimpleNode.inputs:multiplier", 3.0), ("SimpleNode.inputs:value", 1.0)], }, ) scene.simple_node = og.Controller.prim(nodes[0]) path = omni.usd.get_stage_next_free_path(stage, "/" + "Cube", True) scene.cube_prim = stage.DefinePrim(path, "Cube") scene.cube_prim.CreateAttribute("size", Sdf.ValueTypeNames.Double).Set(2.0) return scene class TestOmniGraphGeneral(ogts.OmniGraphTestCase): # ---------------------------------------------------------------------- async def test_graph_load(self): """Test state after a simple graph is loaded from a file""" await og.load_example_file("ExampleCube.usda") # These nodes are known to be in the file self.assertFalse(ogts.verify_node_existence(["/World/graph/NoOp"])) # ---------------------------------------------------------------------- async def test_graph_creation(self): """Test state after manually creating a simple graph""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() scene = create_simple_graph(stage) self.assertIsNotNone(scene, "Failed to create a simple graph") self.assertIsNotNone(scene.input_prim, "Failed to create input primitive in simple graph") self.assertIsNotNone(scene.simple_node, "Failed to create simple node in simple graph") self.assertIsNotNone(scene.cube_prim, "Failed to create cube primitive in simple graph") await omni.kit.app.get_app().next_update_async() ogts.dump_graph() # Verify that the simple_node prim belongs to an actual OG node in the graph. node_prims = [og.Controller.prim(node) for node in scene.graph.get_nodes()] self.assertTrue(scene.simple_node in node_prims) # ---------------------------------------------------------------------- async def test_graph_disable(self): """Exercise disabling a graph""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() scene = create_simple_graph(stage) controller = og.Controller() graph = scene.graph simple_node = og.get_node_by_path(scene.simple_node.GetPath().pathString) multiplier_attr = simple_node.get_attribute("inputs:multiplier") in_value_attr = simple_node.get_attribute("inputs:value") out_value_attr = simple_node.get_attribute("outputs:value") # set some values on simple node multiplier_attr.set(2) in_value_attr.set(3) # test the graph works await controller.evaluate() self.assertEqual(out_value_attr.get(), 6) # test the graph works with an update multiplier_attr.set(3) await controller.evaluate() self.assertEqual(out_value_attr.get(), 9) # disable the graph graph.set_disabled(True) # test the graph stopped taking into account updates multiplier_attr.set(4) await controller.evaluate() self.assertEqual(out_value_attr.get(), 9) # re-enable the graph graph.set_disabled(False) # value should now update await controller.evaluate() self.assertEqual(out_value_attr.get(), 12) # ---------------------------------------------------------------------- async def test_usd_update_settings(self): """ Basic idea of test: here we test the USD write back policy of OmniGraph under normal circumstances. We get the USD prim that is backing an intermediate node, and test all possible settings against it to make sure it is updating only when expected. """ (result, error) = await ogts.load_test_file("TestTranslatingCube.usda", use_caller_subdirectory=True) self.assertTrue(result, error) usd_context = omni.usd.get_context() stage = usd_context.get_stage() subtract_node_prim = stage.GetPrimAtPath("/World/moveX/subtract") output_usd_attr = subtract_node_prim.GetAttribute("outputs:out") # test that there is no change in the intermediate USD value: # ------------------------------------------ t0 = output_usd_attr.Get() await omni.kit.app.get_app().next_update_async() t1 = output_usd_attr.Get() diff = abs(t1 - t0) self.assertAlmostEqual(diff, 0.0, places=3) # ---------------------------------------------------------------------- async def test_reload_from_stage(self): # The basic idea of the test is as follows: # We load up the TestTranslatingCube.usda file, which has a cube # that continually moves in X. We make sure first the # node is working, and then we reload the graph from the stage. Once we do # that, we make sure that the graph is still working - make sure the cube still moves (result, error) = await ogts.load_test_file("TestTranslatingCube.usda", use_caller_subdirectory=True) self.assertTrue(result, error) usd_context = omni.usd.get_context() stage = usd_context.get_stage() # make sure the box and the attribute we expect are there. graph = og.get_graph_by_path("/World/moveX") cube_prim = stage.GetPrimAtPath("/World/Cube") translate_attr = cube_prim.GetAttribute("xformOp:translate") self.assertTrue(translate_attr.IsValid()) # get the initial position of the cube translate = translate_attr.Get() t0 = translate[0] # wait 1 frame await omni.kit.app.get_app().next_update_async() # get the updated cube position and make sure it moved translate = translate_attr.Get() t1 = translate[0] diff = abs(t1 - t0) self.assertGreater(diff, 0.1) # subtract_node = graph.get_node("/World/moveX/subtract") # node_handle = subtract_node.get_handle() # now reload the graph and make sure the node has a new handle (showing that it's been deleted and recreated) # and that everything still works. graph.reload_from_stage() # Note that we have to re-fetch a lot of the constructs, as those would have been destroyed and recreated during # the graph reload process: # subtract_node = graph.get_node("/World/moveX/subtract") # new_node_handle = subtract_node.get_handle() # Almost certainly the new handle will not be the same as the old one, but we're not doing the check here # because it possibly could be the same, and that could lead to flaky test. # self.assertTrue(new_node_handle != node_handle) cube_prim = stage.GetPrimAtPath("/World/Cube") translate_attr = cube_prim.GetAttribute("xformOp:translate") self.assertTrue(translate_attr.IsValid()) # get the initial position of the cube translate = translate_attr.Get() t0 = translate[0] # wait 1 frame await omni.kit.app.get_app().next_update_async() # get the updated cube position and make sure it moved translate = translate_attr.Get() t1 = translate[0] diff = abs(t1 - t0) self.assertGreater(diff, 0.1) # ---------------------------------------------------------------------- async def test_reload_from_stage_retains_instances(self): """Validates that the reload from stage call will retain any instances that may be referencing the node""" graph_path = "/World/Graph" num_instances = 3 controller = og.Controller(update_usd=True) keys = controller.Keys # Simple graph that increments a counter attribute on the graph target # [ReadPrim]->[Add 1]->[WritePrim] (graph, _, _, nodes) = controller.edit( graph_path, { keys.CREATE_NODES: [ ("ReadPrim", "omni.graph.nodes.ReadPrimAttribute"), ("WritePrim", "omni.graph.nodes.WritePrimAttribute"), ("Add", "omni.graph.nodes.Add"), ("Constant", "omni.graph.nodes.ConstantDouble"), ("GraphTarget", "omni.graph.nodes.GetGraphTargetPrim"), ], keys.SET_VALUES: [ ("Constant.inputs:value", 1.0), ("ReadPrim.inputs:name", "counter"), ("WritePrim.inputs:name", "counter"), ], keys.CONNECT: [ ("GraphTarget.outputs:prim", "ReadPrim.inputs:prim"), ("GraphTarget.outputs:prim", "WritePrim.inputs:prim"), ("ReadPrim.outputs:value", "Add.inputs:a"), ("Constant.inputs:value", "Add.inputs:b"), ("Add.outputs:sum", "WritePrim.inputs:value"), ], }, ) # create instances for i in range(0, num_instances): prim_name = f"/World/Prim_{i}" prim = omni.usd.get_context().get_stage().DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(omni.usd.get_context().get_stage(), prim_name, graph_path) prim.CreateAttribute("counter", Sdf.ValueTypeNames.Int).Set(0) await controller.evaluate() await omni.kit.app.get_app().next_update_async() # capture the existing values attr = nodes["Add"].get_attribute("outputs:sum") values = [] for i in range(0, num_instances): values.append(attr.get(instance=i)) attr_path = attr.get_path() # reload the graph here. Note this will invalidate any handles to og objects (except the graph) graph.reload_from_stage() # reevaluate await controller.evaluate() await omni.kit.app.get_app().next_update_async() attr = og.Controller.attribute(attr_path) # validate the values have been updated for i in range(0, num_instances): self.assertGreater(attr.get(instance=i), values[i]) # ---------------------------------------------------------------------- async def test_invalid_graph_objects(self): # The basic idea of the test is as follows: # Often the graph constructs like node, attribute, graph etc. will outlive their python wrapers. # Accessing these deleted things will lead to a crash. We have put in measures to prevent things # from crashing, even if the underlying objects have been destroyed. This test tries out these # scenarios. This test also tests the deletion of global graphs, by deleting the corresponding # wrapper node in the orchestration graph (result, error) = await ogts.load_test_file("TestTranslatingCube.usda", use_caller_subdirectory=True) self.assertTrue(result, error) graph = og.Controller.graph("/World/moveX") # make sure the box and the attribute we expect are there. context = graph.get_default_graph_context() subtract_node = graph.get_node("/World/moveX/subtract") output_attr = subtract_node.get_attribute("outputs:out") self.assertTrue(output_attr.is_valid()) self.assertTrue(subtract_node.is_valid()) graph.destroy_node("/World/moveX/subtract", True) self.assertFalse(subtract_node.is_valid()) self.assertFalse(output_attr.is_valid()) self.assertTrue(context.is_valid()) self.assertTrue(graph.is_valid()) orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage( og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION ) self.assertEqual(len(orchestration_graphs), 1) orchestration_graph = orchestration_graphs[0] global_graph_nodes = orchestration_graph.get_nodes() self.assertTrue(len(global_graph_nodes) == 1) global_implicit_graph_node = global_graph_nodes[0] orchestration_graph.destroy_node(global_graph_nodes[0].get_prim_path(), False) self.assertFalse(global_implicit_graph_node.is_valid()) self.assertFalse(context.is_valid()) self.assertFalse(graph.is_valid()) # Do not use something like new stage to destroy the objects and assert invalidity. This can cause # a race condition where the destruction of the existing stuff on the stage is not complete when # the new stage is ready # await omni.usd.get_context().new_stage_async() # self.assertFalse(context.is_valid()) # self.assertFalse(graph.is_valid()) # self.assertFalse(output_attr.is_valid()) # ---------------------------------------------------------------------- async def test_memory_type_and_optional_keywords(self): """Test the persistence of the memoryType and optional keyword values in .ogn nodes""" controller = og.Controller() keys = og.Controller.Keys # Create some nodes with known memoryType and optional values # # C++ Nodes # omni.graph.tutorials.CpuGpuData # node memory type = any # inputs:is_gpu memory type = cpu # inputs:a memory type = any (inherited from node) # omni.graph.tutorials.CudaData # node memory type = cuda # inputs:a memory type = cuda (inherited from node) # inputs:multiplier memory type = cpu # omni.graph.nodes.CopyAttr # inputs:fullData optional = false # inputs:partialData optional = true # # Python Nodes # omni.graph.tutorials.CpuGpuExtendedPy # node memory type = cpu # inputs:cpuData memory type = any # inputs:gpu memory type = cpu (inherited from node) # omni.graph.test.PerturbPointsGpu # node memory type = cuda # inputs:percentModified memory type = cpu # inputs:minimum memory type = cuda (inherited from node) # omni.graph.tutorials.TutorialSimpleDataPy # inputs:a_bool optional = true # inputs:a_half optional = false ( _, ( cpu_gpu_node, cuda_node, optional_node, cpu_gpu_py_node, cuda_py_node, optional_py_node, ), _, _, ) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("CpuGpu", "omni.graph.tutorials.CpuGpuData"), ("Cuda", "omni.graph.tutorials.CudaData"), ("Optional", "omni.graph.nodes.CopyAttribute"), ("CpuGpuPy", "omni.graph.tutorials.CpuGpuBundlesPy"), ("CudaPy", "omni.graph.test.PerturbPointsGpu"), ("OptionalPy", "omni.graph.tutorials.SimpleDataPy"), ] }, ) memory_type_key = ogn.MetadataKeys.MEMORY_TYPE self.assertEqual(cpu_gpu_node.get_node_type().get_metadata(memory_type_key), ogn.MemoryTypeValues.ANY) is_gpu_attr = cpu_gpu_node.get_attribute("inputs:is_gpu") self.assertEqual(is_gpu_attr.get_metadata(memory_type_key), ogn.MemoryTypeValues.CPU) a_attr = cpu_gpu_node.get_attribute("inputs:a") self.assertEqual(a_attr.get_metadata(memory_type_key), None) self.assertEqual(cuda_node.get_node_type().get_metadata(memory_type_key), ogn.MemoryTypeValues.CUDA) multiplier_attr = cuda_node.get_attribute("inputs:multiplier") self.assertEqual(multiplier_attr.get_metadata(memory_type_key), ogn.MemoryTypeValues.CPU) a_attr = cuda_node.get_attribute("inputs:a") self.assertEqual(a_attr.get_metadata(memory_type_key), None) self.assertEqual(optional_node.get_node_type().get_metadata(memory_type_key), None) full_data_attr = optional_node.get_attribute("inputs:fullData") self.assertFalse(full_data_attr.is_optional_for_compute) partial_data_attr = optional_node.get_attribute("inputs:partialData") self.assertTrue(partial_data_attr.is_optional_for_compute) self.assertEqual(cpu_gpu_py_node.get_node_type().get_metadata(memory_type_key), None) gpu_attr = cpu_gpu_py_node.get_attribute("inputs:cpuBundle") self.assertEqual(gpu_attr.get_metadata(memory_type_key), None) cpu_data_attr = cpu_gpu_py_node.get_attribute("inputs:gpuBundle") self.assertEqual(cpu_data_attr.get_metadata(memory_type_key), ogn.MemoryTypeValues.CUDA) cpu_data_attr = cpu_gpu_py_node.get_attribute("outputs_cpuGpuBundle") self.assertEqual(cpu_data_attr.get_metadata(memory_type_key), ogn.MemoryTypeValues.ANY) self.assertEqual(cuda_py_node.get_node_type().get_metadata(memory_type_key), ogn.MemoryTypeValues.CUDA) percent_attr = cuda_py_node.get_attribute("inputs:percentModified") self.assertEqual(percent_attr.get_metadata(memory_type_key), ogn.MemoryTypeValues.CPU) minimum_attr = cuda_py_node.get_attribute("inputs:minimum") self.assertEqual(minimum_attr.get_metadata(memory_type_key), None) self.assertEqual(optional_py_node.get_node_type().get_metadata(memory_type_key), None) a_half_attr = optional_py_node.get_attribute("inputs:a_half") self.assertEqual(a_half_attr.is_optional_for_compute, False) a_bool_attr = optional_py_node.get_attribute("inputs:a_bool") self.assertEqual(a_bool_attr.is_optional_for_compute, True) # Check that the three methods of getting Cpu pointers to Gpu data give the same answer # Method 1: Directly from the attribute value helper data_view = og.AttributeValueHelper(cuda_node.get_attribute("outputs:points")) data_view.gpu_ptr_kind = og.PtrToPtrKind.CPU data_view_data = data_view.get(on_gpu=True) # Method 2: From the controller class get() method controller_data = og.Controller.get( cuda_node.get_attribute("outputs:points"), on_gpu=True, gpu_ptr_kind=og.PtrToPtrKind.CPU ) self.assertEqual(data_view_data.memory, controller_data.memory) # Method 3: From the controller object get() method controller = og.Controller(cuda_node.get_attribute("outputs:points")) controller.gpu_ptr_kind = og.PtrToPtrKind.CPU controller_data = controller.get(on_gpu=True) self.assertEqual(data_view_data.memory, controller_data.memory) # ---------------------------------------------------------------------- async def test_equality_comparisons(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() scene = create_simple_graph(stage) graph = scene.graph # Nodes simple_node = og.get_node_by_path(scene.simple_node.GetPath().pathString) self.assertEqual(simple_node, simple_node) self.assertNotEqual(simple_node, None) simple_node2 = graph.get_node(simple_node.get_prim_path()) self.assertEqual(simple_node, simple_node2) cube_node = og.get_node_by_path(scene.cube_prim.GetPath().pathString) self.assertNotEqual(simple_node, cube_node) # TODO: These emit intentional error messages which the build # framework picks up as test failures. Need to find another # way to test this. # # bad_node = graph.get_node('bad_node') # bad_node2 = graph.get_node('bad_node2') # self.assertNotEqual(simple_node, bad_node) # self.assertEqual(bad_node, bad_node2) # Graphs self.assertEqual(graph, graph) self.assertNotEqual(graph, None) graph2 = simple_node.get_graph() self.assertEqual(graph, graph2) # TODO: These emit intentional error messages which the build # framework picks up as test failures. Need to find another # way to test this. # # bad_graph = bad_node.get_graph() # bad_graph2 = bad_node2.get_graph() # self.assertNotEqual(graph, bad_graph) # self.assertEqual(bad_graph, bad_graph2) # Attributes multiplier_attr = simple_node.get_attribute("inputs:multiplier") self.assertEqual(multiplier_attr, multiplier_attr) self.assertNotEqual(multiplier_attr, None) multiplier_attr2 = simple_node.get_attribute("inputs:multiplier") self.assertEqual(multiplier_attr, multiplier_attr2) value_attr = simple_node.get_attribute("inputs:value") self.assertNotEqual(multiplier_attr, value_attr) # TODO: These emit intentional error messages which the build # framework picks up as test failures. Need to find another # way to test this. # # bad_attr = bad_node.get_attribute('bad_attr') # bad_attr2 = bad_node.get_attribute('bad_attr2') # self.assertNotEqual(multiplier_attr, bad_attr) # self.assertEqual(bad_attr, bad_attr2) # AttributeData mult_data = multiplier_attr.get_attribute_data() self.assertEqual(mult_data, mult_data) self.assertNotEqual(mult_data, None) mult_data2 = multiplier_attr.get_attribute_data() self.assertEqual(mult_data, mult_data2) value_data = value_attr.get_attribute_data() self.assertNotEqual(mult_data, value_data) # Types t1 = og.Type(og.INT, 2, 1, og.COLOR) same_as_t1 = og.Type(og.INT, 2, 1, og.COLOR) t2 = og.Type(og.FLOAT, 2, 1, og.COLOR) t3 = og.Type(og.INT, 3, 1, og.COLOR) t4 = og.Type(og.INT, 2, 0, og.COLOR) t5 = og.Type(og.INT, 2, 1, og.POSITION) self.assertEqual(t1, t1) self.assertNotEqual(t1, None) self.assertEqual(t1, same_as_t1) self.assertNotEqual(t1, t2) self.assertNotEqual(t1, t3) self.assertNotEqual(t1, t4) self.assertNotEqual(t1, t5) # ---------------------------------------------------------------------- async def test_hashability(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() scene = create_simple_graph(stage) graph = scene.graph # Nodes simple_node = og.get_node_by_path(scene.simple_node.GetPath().pathString) simple_node2 = graph.get_node(simple_node.get_prim_path()) cube_node = og.get_node_by_path(scene.cube_prim.GetPath().pathString) d = {simple_node: 1, cube_node: 2, simple_node2: 3} self.assertEqual(len(d), 2) self.assertEqual(d[simple_node], 3) # Graphs graph2 = simple_node.get_graph() d = {graph: -3, graph2: -17} self.assertEqual(len(d), 1) self.assertEqual(d[graph], -17) # Attributes multiplier_attr = simple_node.get_attribute("inputs:multiplier") multiplier_attr2 = simple_node.get_attribute("inputs:multiplier") value_attr = simple_node.get_attribute("inputs:value") d = {multiplier_attr: 5, value_attr: 6, multiplier_attr2: 7} self.assertEqual(len(d), 2) self.assertEqual(d[multiplier_attr], 7) # AttributeData mult_data = multiplier_attr.get_attribute_data() mult_data2 = multiplier_attr.get_attribute_data() value_data = value_attr.get_attribute_data() d = {mult_data: 8, value_data: 9, mult_data2: 10} self.assertEqual(len(d), 2) self.assertEqual(d[mult_data], 10) # Types t1 = og.Type(og.INT, 2, 1, og.COLOR) same_as_t1 = og.Type(og.INT, 2, 1, og.COLOR) t2 = og.Type(og.FLOAT, 2, 1, og.COLOR) t3 = og.Type(og.INT, 3, 1, og.COLOR) t4 = og.Type(og.INT, 2, 0, og.COLOR) t5 = og.Type(og.INT, 2, 1, og.POSITION) d = {t1: 1, t2: 2, t3: 3, t4: 5, t5: 6, same_as_t1: 4} self.assertEqual(len(d), 5) self.assertEqual(d[t1], 4) # ---------------------------------------------------------------------- async def test_dirty_push_time_change(self): """Test that dirty_push evaluator dirties the time node when time changes""" controller = og.Controller() (_, (read_time, sub), _, _) = controller.edit( {"graph_path": "/World/TestGraph", "evaluator_name": "dirty_push"}, { og.Controller.Keys.CREATE_NODES: [ ("ReadTime", "omni.graph.nodes.ReadTime"), ("Sub", "omni.graph.test.SubtractDoubleC"), ], og.Controller.Keys.CONNECT: [ ("ReadTime.outputs:frame", "Sub.inputs:a"), ("ReadTime.outputs:frame", "Sub.inputs:b"), ], }, ) await controller.evaluate() # Verify when anim time does not change, the downstream node does not compute cc_0 = sub.get_compute_count() await omni.kit.app.get_app().next_update_async() cc_1 = sub.get_compute_count() # FIXME: OM-45551: Assert fails due to a bug in the lazy evaluator # self.assertEqual(cc_0, cc_1) # Verify when anim time DOES change, the downstream node DOES compute time_out = controller.attribute("outputs:time", read_time) # Start playback timeline = omni.timeline.get_timeline_interface() timeline.set_start_time(1.0) timeline.set_end_time(10.0) timeline.set_target_framerate(timeline.get_time_codes_per_seconds()) timeline.play() # One update and record start values await omni.kit.app.get_app().next_update_async() cc_0 = sub.get_compute_count() t_0 = og.Controller.get(time_out) self.assertAlmostEqual(t_0, 1.0, places=1) # One update and compare values await omni.kit.app.get_app().next_update_async() cc_1 = sub.get_compute_count() t_1 = og.Controller.get(time_out) self.assertGreater(t_1, t_0) self.assertEqual(cc_1, cc_0 + 1) # ---------------------------------------------------------------------- async def test_attribute_deprecation(self): """Test the attribute deprecation API.""" controller = og.Controller() (_, nodes, _, _) = controller.edit( {"graph_path": "/World/TestGraph", "evaluator_name": "dirty_push"}, { og.Controller.Keys.CREATE_NODES: [ ("cpp_node1", "omni.graph.test.ComputeErrorCpp"), ("cpp_node2", "omni.graph.test.ComputeErrorCpp"), ("py_node1", "omni.graph.test.ComputeErrorPy"), ("py_node2", "omni.graph.test.ComputeErrorPy"), ] }, ) for node in nodes: deprecated_in_ogn = node.get_attribute("inputs:deprecatedInOgn") self.assertTrue(deprecated_in_ogn.is_deprecated()) self.assertEqual(deprecated_in_ogn.deprecation_message(), "Use 'dummyIn' instead.") deprecated_in_init = node.get_attribute("inputs:deprecatedInInit") self.assertTrue(deprecated_in_init.is_deprecated()) self.assertEqual(deprecated_in_init.deprecation_message(), "Use 'dummyIn' instead.") dummy_in = node.get_attribute("inputs:dummyIn") self.assertFalse(dummy_in.is_deprecated()) self.assertEqual(dummy_in.deprecation_message(), "") # Deprecate the dummyIn attr. og._internal.deprecate_attribute(dummy_in, "Deprecated on the fly.") # noqa: PLW0212 self.assertTrue(dummy_in.is_deprecated()) self.assertEqual(dummy_in.deprecation_message(), "Deprecated on the fly.") # ---------------------------------------------------------------------- async def test_minimal_population(self): """Test that when fabric minimal population is enabled, that we still initialize graphs properly. See OM-108844 for more details""" controller = og.Controller() (_, nodes, _, _) = controller.edit( {"graph_path": "/World/TestGraph"}, { og.Controller.Keys.CREATE_NODES: [ ("find_prims", "omni.graph.nodes.FindPrims"), ] }, ) await controller.evaluate() self.assertEqual(nodes[0].get_attribute("inputs:type").get(), "*") with tempfile.TemporaryDirectory() as test_directory: # Need to set the default prim, otherwise creating a reference/payload to this file will cause an error stage = omni.usd.get_context().get_stage() stage.SetDefaultPrim(stage.GetPrimAtPath("/World")) tmp_file_path = os.path.join(test_directory, "tmp_test_minimal_population.usda") await omni.usd.get_context().save_as_stage_async(tmp_file_path) # Run a usdrt query to ensure that fabric minimal population is enabled from usdrt import Usd as UsdRtUsd usdrt_stage = UsdRtUsd.Stage.Attach(omni.usd.get_context().get_stage_id()) self.assertEqual(usdrt_stage.GetPrimsWithTypeName("OmniGraph"), ["/World/TestGraph"]) # Test adding as payload await omni.usd.get_context().new_stage_async() await omni.kit.app.get_app().next_update_async() # Run a usdrt query to ensure that fabric minimal population is enabled from usdrt import Usd as UsdRtUsd usdrt_stage = UsdRtUsd.Stage.Attach(omni.usd.get_context().get_stage_id()) self.assertEqual(usdrt_stage.GetPrimsWithTypeName("OmniGraph"), []) stage = omni.usd.get_context().get_stage() payload = stage.DefinePrim("/payload") payload.GetPayloads().AddPayload(tmp_file_path) await omni.kit.app.get_app().next_update_async() node = controller.node("/payload/TestGraph/find_prims") self.assertEqual(node.get_attribute("inputs:type").get(), "*") # Test adding as reference await omni.usd.get_context().new_stage_async() await omni.kit.app.get_app().next_update_async() stage = omni.usd.get_context().get_stage() ref = stage.DefinePrim("/ref") ref.GetReferences().AddReference(tmp_file_path) await omni.kit.app.get_app().next_update_async() node = controller.node("/ref/TestGraph/find_prims") self.assertEqual(node.get_attribute("inputs:type").get(), "*") # =================================================================== class TestOmniGraphSimpleMisc(ogts.OmniGraphTestCase): """Misc tests that issue expected errors functionality""" def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.__cb_count = 0 self.__error_node = None async def test_compute_messages(self): usd_context = omni.usd.get_context() stage = usd_context.get_stage() scene = create_simple_graph(stage) graph = scene.graph graph.set_disabled(True) # to ensure "compute" messages are managed only by hand in the first tests node = og.get_node_by_path(scene.simple_node.GetPath().pathString) # A new node should start with no messages. self.assertEqual(len(node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(node.get_compute_messages(og.WARNING)), 0) self.assertEqual(len(node.get_compute_messages(og.ERROR)), 0) # Check counts. msg1 = "Ignore this error/warning message #1" msg2 = "Ignore this error/warning message #2" msg3 = "Ignore this error/warning message #3" node.log_compute_message(og.INFO, msg1) node.log_compute_message(og.WARNING, msg1) node.log_compute_message(og.WARNING, msg2) self.assertEqual(len(node.get_compute_messages(og.INFO)), 1) self.assertEqual(len(node.get_compute_messages(og.WARNING)), 2) # Check that logging detects duplicates. self.assertFalse(node.log_compute_message(og.ERROR, msg2)) self.assertFalse(node.log_compute_message(og.ERROR, msg1)) self.assertTrue(node.log_compute_message(og.ERROR, msg2)) # Check that duplicates are only recorded once per severity level. msgs = node.get_compute_messages(og.ERROR) self.assertEqual(len(msgs), 2) # Check message retrieval. Note that while the current implementation # does preserve the order in which the messages were issued, that's # not a requirement, so we only test that we get each message back once. counts = {msg1: 0, msg2: 0} for msg in msgs: # The logging ABI adds context information to the message so we can't # do an exact comparison with our original, only that the logged message # contains our original. if msg.find(msg1) != -1: counts[msg1] += 1 elif msg.find(msg2) != -1: counts[msg2] += 1 self.assertEqual(list(counts.values()).count(1), 2) # Repeat a message at a new compute count and make sure the message # count hasn't changed. await omni.kit.app.get_app().next_update_async() self.assertTrue(node.log_compute_message(og.ERROR, msg1)) self.assertEqual(len(node.get_compute_messages(og.ERROR)), 2) # Add a new (non-repeated) message at the new compute count. self.assertFalse(node.log_compute_message(og.ERROR, msg3)) # If we clear old messages all but the one we just repeated and # the one just added should be removed. self.assertEqual(node.clear_old_compute_messages(), 4) self.assertEqual(len(node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(node.get_compute_messages(og.WARNING)), 0) self.assertEqual(len(node.get_compute_messages(og.ERROR)), 2) # Clear everything. await omni.kit.app.get_app().next_update_async() self.assertEqual(node.clear_old_compute_messages(), 2) self.assertEqual(len(node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(node.get_compute_messages(og.WARNING)), 0) self.assertEqual(len(node.get_compute_messages(og.ERROR)), 0) # Ensure it still all works after clearing. self.assertFalse(node.log_compute_message(og.ERROR, msg1)) self.assertEqual(len(node.get_compute_messages(og.ERROR)), 1) self.assertTrue(node.get_compute_messages(og.ERROR)[0].find(msg1) != -1) # Test with nodes which will generate messages during compute. graph.set_disabled(False) for node_name, node_type in [ ("CppErrorNode", "omni.graph.test.ComputeErrorCpp"), ("PyErrorNode", "omni.graph.test.ComputeErrorPy"), ]: (_, nodes, _, _) = og.Controller.edit(graph, {og.Controller.Keys.CREATE_NODES: [(node_name, node_type)]}) self.assertEqual(len(nodes), 1) self.__error_node = nodes[0] # It should start with no messages. self.assertEqual(len(self.__error_node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.WARNING)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.ERROR)), 0) # Set it to generate a warning. severity_attr = self.__error_node.get_attribute("inputs:severity") message_attr = self.__error_node.get_attribute("inputs:message") msg4 = "Ignore this error/warning message #4" message_attr.set(msg4) severity_attr.set("warning") # There should be no warning yet since the node has not evaluated. self.assertEqual(len(self.__error_node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.WARNING)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.ERROR)), 0) # Evaluate the graph and check again. await omni.kit.app.get_app().next_update_async() self.assertEqual(len(self.__error_node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.ERROR)), 0) msgs = self.__error_node.get_compute_messages(og.WARNING) self.assertEqual(len(msgs), 1) self.assertTrue(msgs[0].find(msg4) != -1) # Have it issue a different error message. After evaluation we should only # have the error not the warning. msg5 = "Ignore this error/warning message #5" message_attr.set(msg5) severity_attr.set("error") await omni.kit.app.get_app().next_update_async() self.assertEqual(len(self.__error_node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.WARNING)), 0) msgs = self.__error_node.get_compute_messages(og.ERROR) self.assertEqual(len(msgs), 1) self.assertTrue(msgs[0].find(msg5) != -1) # Stop the node generating errors. After the next evaluate there # should be no messages. severity_attr.set("none") await omni.kit.app.get_app().next_update_async() self.assertEqual(len(self.__error_node.get_compute_messages(og.INFO)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.WARNING)), 0) self.assertEqual(len(self.__error_node.get_compute_messages(og.ERROR)), 0) # Set up a callback for changes in the node's error status. self.__cb_count = 0 def error_status_changed(nodes, graph): self.assertEqual(len(nodes), 1) self.assertEqual(nodes[0], self.__error_node) self.__cb_count += 1 cb = graph.register_error_status_change_callback(error_status_changed) # There are currently no errors so the callback should not get # called. await omni.kit.app.get_app().next_update_async() self.assertEqual(self.__cb_count, 0) # Setting a warning message should call the callback. message_attr.set(msg4) severity_attr.set("warning") await omni.kit.app.get_app().next_update_async() self.assertEqual(self.__cb_count, 1) # Converting the warning to an error should call the callback. severity_attr.set("error") await omni.kit.app.get_app().next_update_async() self.assertEqual(self.__cb_count, 2) # Setting the same message again should not call the callback. await omni.kit.app.get_app().next_update_async() self.assertEqual(self.__cb_count, 2) # A clean compute should clear the message and call the callback. severity_attr.set("none") await omni.kit.app.get_app().next_update_async() self.assertEqual(self.__cb_count, 3) # No more messages so further evaluations should not call the callback. await omni.kit.app.get_app().next_update_async() self.assertEqual(self.__cb_count, 3) graph.deregister_error_status_change_callback(cb) async def test_write_to_backing(self): """Test the GraphContext.write_to_backing functionality""" usd_context = omni.usd.get_context() stage = usd_context.get_stage() (graph, (constant_string,), _, path_to_object_map) = og.Controller.edit( "/Root", { og.Controller.Keys.CREATE_NODES: [ ("ConstantString", "omni.graph.nodes.ConstantString"), ], }, ) controller = og.Controller(path_to_object_map=path_to_object_map, update_usd=False) (graph, _, _, _) = controller.edit( graph, { og.Controller.Keys.SET_VALUES: [ ("ConstantString.inputs:value", "foo"), ], }, ) string_attrib = controller.attribute("inputs:value", constant_string) string_usd_attrib = stage.GetAttributeAtPath(string_attrib.get_path()) self.assertEqual("foo", controller.get(string_attrib)) self.assertEqual(None, string_usd_attrib.Get()) # flush to USD and verify the USD attrib value has changed bucket_id = constant_string.get_backing_bucket_id() graph.get_default_graph_context().write_bucket_to_backing(bucket_id) self.assertEqual("foo", string_usd_attrib.Get()) # Verify changing OG attribute does not change USD attrib string_attrib.set("bar") await controller.evaluate() self.assertEqual("bar", controller.get(string_attrib)) self.assertEqual("foo", string_usd_attrib.Get()) # flush to USD and verify the USD attrib value has changed graph.get_default_graph_context().write_bucket_to_backing(bucket_id) self.assertEqual("bar", controller.get(string_attrib)) self.assertEqual("bar", string_usd_attrib.Get()) # verify invalid bucket raises # FC issues: getNamesAndTypes, bucketId 42 not found with ogts.ExpectedError(): with self.assertRaises(ValueError): bad_bucket_id = og.BucketId(42) graph.get_default_graph_context().write_bucket_to_backing(bad_bucket_id) controller.edit("/Root", {og.Controller.Keys.DELETE_NODES: "ConstantString"}) with self.assertRaises(ValueError): constant_string.get_backing_bucket_id() async def test_ogn_defaults(self): # tests that overriden attributes values persists after serialization # tests that non-overriden attributes values are set to OGN defaults, even after serialization stage = omni.usd.get_context().get_stage() (_, (data_node), _, _) = og.Controller.edit( "/World/Graph", {og.Controller.Keys.CREATE_NODES: [("TupleData", "omni.tutorials.TupleData")]} ) self.assertTrue((data_node[0].get_attribute("inputs:a_double3").get() == [1.1, 2.2, 3.3]).all()) # we don't have any value in USD node_prim = stage.GetPrimAtPath("/World/Graph/TupleData") usd_attrib = node_prim.GetAttribute("inputs:a_double3").Get() self.assertTrue(usd_attrib is None) # set runtime only data_node[0].get_attribute("inputs:a_double3").set([16.0, 17.0, 18.0]) self.assertTrue((data_node[0].get_attribute("inputs:a_double3").get() == [16.0, 17.0, 18.0]).all()) # does not affect USD usd_attrib = node_prim.GetAttribute("inputs:a_double3").Get() self.assertTrue(usd_attrib is None) # save and reload with tempfile.TemporaryDirectory() as test_directory: tmp_file_path = os.path.join(test_directory, "tmp_test_ogn_defaults.usda") (result, error, _) = await omni.usd.get_context().save_as_stage_async(str(tmp_file_path)) self.assertTrue(result, error) (result, error) = await omni.usd.get_context().open_stage_async(tmp_file_path) self.assertTrue(result, error) stage = omni.usd.get_context().get_stage() node_prim = stage.GetPrimAtPath("/World/Graph/TupleData") # still no usd value usd_attrib = node_prim.GetAttribute("inputs:a_double3").Get() self.assertTrue(usd_attrib is None) # we have the default OGN values in OG attr = og.Controller.attribute("/World/Graph/TupleData/inputs:a_double3") self.assertTrue((attr.get() == [1.1, 2.2, 3.3]).all()) # replace the node with something else in order to test a different default interface = ogu.get_node_type_forwarding_interface() try: self.assertTrue( interface.define_forward( "omni.tutorials.TupleData", 1, "omni.tests.FakeTupleData", 1, "omni.graph.test" ) ) # save and reload with tempfile.TemporaryDirectory() as test_directory: tmp_file_path = os.path.join(test_directory, "tmp_test_ogn_defaults.usda") (result, error, _) = await omni.usd.get_context().save_as_stage_async(str(tmp_file_path)) self.assertTrue(result, error) (result, error) = await omni.usd.get_context().open_stage_async(tmp_file_path) self.assertTrue(result, error) stage = omni.usd.get_context().get_stage() node_prim = stage.GetPrimAtPath("/World/Graph/TupleData") # still no usd value usd_attrib = node_prim.GetAttribute("inputs:a_double3").Get() self.assertTrue(usd_attrib is None) # we have now the new "fake" default OGN values in OG attr = og.Controller.attribute("/World/Graph/TupleData/inputs:a_double3") self.assertTrue((attr.get() == [4.5, 6.7, 8.9]).all()) # set USD node_prim.GetAttribute("inputs:a_double3").Set(Gf.Vec3f(6.0, 7.0, 8.0)) self.assertTrue((attr.get() == [6.0, 7.0, 8.0]).all()) # save and reload with tempfile.TemporaryDirectory() as test_directory: tmp_file_path = os.path.join(test_directory, "tmp_test_ogn_defaults.usda") (result, error, _) = await omni.usd.get_context().save_as_stage_async(str(tmp_file_path)) self.assertTrue(result, error) (result, error) = await omni.usd.get_context().open_stage_async(tmp_file_path) self.assertTrue(result, error) # it should has now persisted stage = omni.usd.get_context().get_stage() node_prim = stage.GetPrimAtPath("/World/Graph/TupleData") self.assertTrue(node_prim.GetAttribute("inputs:a_double3").Get() == [6.0, 7.0, 8.0]) # ...and proper OG values attr = og.Controller.attribute("/World/Graph/TupleData/inputs:a_double3") self.assertTrue((attr.get() == [6.0, 7.0, 8.0]).all()) finally: interface.remove_forwarded_type("omni.tests.FakeTupleData", 1) # ====================================================================== class TestOmniGraphSimpleSchema(ogts.OmniGraphTestCaseNoClear): """Test basic schema-based graph functionality""" # ---------------------------------------------------------------------- async def test_node_duplication(self): """Test that duplication of an OmniGraph node copies the values correctly""" controller = og.Controller() (_, (node, py_node), _, _) = controller.edit( "/TestGraph", { og.Controller.Keys.CREATE_NODES: [ ("SimpleData", "omni.graph.tutorials.SimpleData"), ("SimpleDataPy", "omni.graph.tutorials.SimpleDataPy"), ], og.Controller.Keys.SET_VALUES: [ ("SimpleData.inputs:a_string", "Not The Default"), ("SimpleData.inputs:a_constant_input", 17), ("SimpleData.inputs:a_double", 3.25), ("SimpleDataPy.inputs:a_string", "Not The Default"), ("SimpleDataPy.inputs:a_constant_input", 17), ("SimpleDataPy.inputs:a_double", 3.25), ], }, ) await controller.evaluate() # Confirm that the value being set made it to USD stage = omni.usd.get_context().get_stage() original_prim = stage.GetPrimAtPath("/TestGraph/SimpleData") value = original_prim.GetAttribute("inputs:a_string").Get() self.assertEqual(value, og.Controller(("inputs:a_string", node)).get()) # Check that the original nodes have their values set properly self.assertEqual("Not The Default", og.Controller(("inputs:a_string", node)).get()) self.assertEqual(17, og.Controller(("inputs:a_constant_input", node)).get()) self.assertEqual(3.25, og.Controller(("inputs:a_double", node)).get()) self.assertEqual(True, og.Controller(("inputs:a_bool", node)).get()) self.assertEqual(0, og.Controller(("inputs:a_int", node)).get()) self.assertEqual("Not The Default", og.Controller(("inputs:a_string", py_node)).get()) self.assertEqual(17, og.Controller(("inputs:a_constant_input", py_node)).get()) self.assertEqual(3.25, og.Controller(("inputs:a_double", py_node)).get()) self.assertEqual(True, og.Controller(("inputs:a_bool", py_node)).get()) self.assertEqual(0, og.Controller(("inputs:a_int", py_node)).get()) # Duplicate the node omni.kit.commands.execute( "CopyPrims", paths_from=[str(node.get_prim_path()), str(py_node.get_prim_path())], paths_to=["/TestGraph/Duplicate", "/TestGraph/DuplicatePy"], ) await omni.kit.app.get_app().next_update_async() # Check that the duplicate has its values set to the ones supplied by the original node duplicate_node = controller.node("/TestGraph/Duplicate") self.assertIsNotNone(duplicate_node) self.assertTrue(duplicate_node.is_valid()) self.assertEqual("Not The Default", og.Controller(("inputs:a_string", duplicate_node)).get()) self.assertEqual(17, og.Controller(("inputs:a_constant_input", duplicate_node)).get()) self.assertEqual(3.25, og.Controller(("inputs:a_double", duplicate_node)).get()) self.assertEqual(True, og.Controller(("inputs:a_bool", duplicate_node)).get()) self.assertEqual(0, og.Controller(("inputs:a_int", duplicate_node)).get()) duplicate_py_node = controller.node("/TestGraph/DuplicatePy") self.assertIsNotNone(duplicate_py_node) self.assertTrue(duplicate_py_node.is_valid()) self.assertEqual("Not The Default", og.Controller(("inputs:a_string", duplicate_py_node)).get()) self.assertEqual(17, og.Controller(("inputs:a_constant_input", duplicate_py_node)).get()) self.assertEqual(3.25, og.Controller(("inputs:a_double", duplicate_py_node)).get()) self.assertEqual(True, og.Controller(("inputs:a_bool", duplicate_py_node)).get()) self.assertEqual(0, og.Controller(("inputs:a_int", duplicate_py_node)).get())
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_instancing.py
""" Tests for omnigraph instancing """ import os import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd from pxr import OmniGraphSchemaTools, Sdf # ====================================================================== class TestInstancing(ogts.OmniGraphTestCase): _graph_path = "/World/TestGraph" async def setUp(self): await super().setUp() timeline = omni.timeline.get_timeline_interface() timeline.set_fast_mode(True) # ---------------------------------------------------------------------- async def tick(self): timeline = omni.timeline.get_timeline_interface() timeline.play() await og.Controller.evaluate() timeline.stop() # ---------------------------------------------------------------------- async def test_instances_read_variables_from_instances(self): """Tests that variable instances are correctly read from the graph when evaluate_targets is called""" controller = og.Controller() keys = og.Controller.Keys # +---------------+ # | WritePrimAttr | # +------------+ | | # |ReadVariable|=======>|value | # +------------+ | | # | | # +------------+ | | # |ReadVariable|=======>|primPath | # +------------+ +---------------+ (_, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ("ReadPrimName", "omni.graph.core.ReadVariable"), ("WritePrimAttr", "omni.graph.nodes.WritePrimAttribute"), ], keys.CONNECT: [ ("ReadVariable.outputs:value", "WritePrimAttr.inputs:value"), ("ReadPrimName.outputs:value", "WritePrimAttr.inputs:primPath"), ], keys.CREATE_VARIABLES: [ ("float_var", og.Type(og.BaseDataType.FLOAT)), ("prim_name", og.Type(og.BaseDataType.TOKEN)), ], keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", "float_var"), ("ReadPrimName.inputs:variableName", "prim_name"), ("WritePrimAttr.inputs:usePath", True), ("WritePrimAttr.inputs:name", "graph_output"), ], }, ) int_range = range(1, 100) stage = omni.usd.get_context().get_stage() for i in int_range: prim_name = f"/World/Prim_{i}" prim = stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, self._graph_path) prim.CreateAttribute("graph:variable:float_var", Sdf.ValueTypeNames.Float).Set(float(i)) prim.CreateAttribute("graph_output", Sdf.ValueTypeNames.Float).Set(float(0)) prim.CreateAttribute("graph:variable:prim_name", Sdf.ValueTypeNames.Token).Set(prim_name) await self.tick() for i in int_range: prim_path = f"/World/Prim_{i}" val = stage.GetPrimAtPath(prim_path).GetAttribute("graph_output").Get() self.assertEqual(val, i) # ---------------------------------------------------------------------- async def test_instancing_reports_graph_target(self): """Tests that graphs containing a node that uses the graph target reports the correct value """ controller = og.Controller() keys = og.Controller.Keys stage = omni.usd.get_context().get_stage() prims = [stage.DefinePrim(f"/prim_{i}") for i in range(1, 100)] for prim in prims: prim.CreateAttribute("graph_output", Sdf.ValueTypeNames.Token) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim.GetPath(), self._graph_path) # +----------------+ # +--------+===>|primPath | # | self | | writePrimAttr | # +--------+===>|value | # +----------------+ (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("GraphTarget", "omni.graph.nodes.GraphTarget"), ("WritePrimAttr", "omni.graph.nodes.WritePrimAttribute"), ], keys.CONNECT: [ ("GraphTarget.outputs:primPath", "WritePrimAttr.inputs:value"), ("GraphTarget.outputs:primPath", "WritePrimAttr.inputs:primPath"), ], keys.SET_VALUES: [ ("WritePrimAttr.inputs:usePath", True), ("WritePrimAttr.inputs:name", "graph_output"), ], }, ) graph_prim = stage.GetPrimAtPath(self._graph_path) graph_prim.CreateAttribute("graph_output", Sdf.ValueTypeNames.Token) # validate calling get_graph_target outside of execution gives the graph path self.assertEqual(graph.get_default_graph_context().get_graph_target(), self._graph_path) # evaluate the graph, validate it returns the correct prim graph.evaluate() # evaluate the prims, validate the output write their own prim path await self.tick() for prim in prims: self.assertEqual(prim.GetAttribute("graph_output").Get(), str(prim.GetPath())) # ---------------------------------------------------------------------- async def test_instances_edits_apply(self): """Tests that changes to variable instances (USD) are applied to the graph immediately""" controller = og.Controller() keys = og.Controller.Keys int_range = range(1, 100) # +---------------+ # | WritePrimAttr | # +------------+ | | # |ReadVariable|=======>|value | # +------------+ | | # | | # +------------+ | | # |GraphTarget |=======>|primPath | # +------------+ +---------------+ with ogts.ExpectedError(): (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ("GraphTarget", "omni.graph.nodes.GraphTarget"), ("WritePrimAttr", "omni.graph.nodes.WritePrimAttribute"), ], keys.CONNECT: [ ("ReadVariable.outputs:value", "WritePrimAttr.inputs:value"), ("GraphTarget.outputs:primPath", "WritePrimAttr.inputs:primPath"), ], keys.CREATE_VARIABLES: [ ("float_var", og.Type(og.BaseDataType.FLOAT)), ], keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", "float_var"), ("WritePrimAttr.inputs:usePath", True), ("WritePrimAttr.inputs:name", "graph_output"), ], }, ) stage = omni.usd.get_context().get_stage() # avoid an error because the graph gets run as well stage.GetPrimAtPath(self._graph_path).CreateAttribute("graph_output", Sdf.ValueTypeNames.Float).Set(float(0)) # create the instances, avoid the override for i in int_range: prim_name = f"/World/Prim_{i}" prim = stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, self._graph_path) prim.CreateAttribute("graph_output", Sdf.ValueTypeNames.Float).Set(float(0)) # set the variable default value var = graph.find_variable("float_var") og.Controller.set_variable_default_value(var, 10.0) await self.tick() # validate all prims read the default value for i in int_range: prim = stage.GetPrimAtPath(f"/World/Prim_{i}") self.assertEqual(prim.GetAttribute("graph_output").Get(), 10.0) # create an override attribute on each prim, set it with an unique value for i in int_range: prim = stage.GetPrimAtPath(f"/World/Prim_{i}") prim.CreateAttribute("graph:variable:float_var", Sdf.ValueTypeNames.Float).Set(float(i)) await self.tick() # update the attribute for i in int_range: stage.GetPrimAtPath(f"/World/Prim_{i}").GetAttribute("graph:variable:float_var").Set(float(i * i)) await self.tick() # validate the updated output was read in the graph for i in int_range: prim_path = f"/World/Prim_{i}" val = stage.GetPrimAtPath(prim_path).GetAttribute("graph_output").Get() self.assertEqual(val, float(i * i)) async def test_instances_run_from_references(self): """OM-48547 - tests instances run when added as references""" num_prims = 4 for frame_rate in [24, 25, 30]: with self.subTest(frame_rate=frame_rate): timeline = omni.timeline.get_timeline_interface() timeline.set_time_codes_per_second(frame_rate) file_path = os.path.join(os.path.dirname(__file__), "data", "TestReferenceInstance.usda") stage = omni.usd.get_context().get_stage() # Add references to a file that contains a graph and a graph instance. # The graph increments an attribute on the instance called 'count' each frame for i in range(0, num_prims): prim = stage.DefinePrim(f"/World/Root{i}") prim.GetReferences().AddReference(file_path) await omni.kit.app.get_app().next_update_async() counts = [] for i in range(0, num_prims): # validate a graph was properly created attr = stage.GetAttributeAtPath(f"/World/Root{i}/Instance.count") self.assertTrue(attr.IsValid()) counts.append(attr.Get()) timeline.play() await omni.kit.app.get_app().next_update_async() # validate that every graph instance was executed for i in range(0, num_prims): attr = stage.GetAttributeAtPath(f"/World/Root{i}/Instance.count") self.assertGreater(attr.Get(), counts[i]) counts[i] = attr.Get() # remove a prim along with its instances. Validates no errors are thrown # with the next update stage.RemovePrim(f"/World/Root{num_prims-1}") await omni.kit.app.get_app().next_update_async() # validate the remaining update for i in range(0, num_prims - 1): attr = stage.GetAttributeAtPath(f"/World/Root{i}/Instance.count") self.assertGreater(attr.Get(), counts[i]) timeline.stop() await omni.usd.get_context().new_stage_async() # ---------------------------------------------------------------------- async def test_instances_can_be_duplicated(self): """Test that valdiates that an OmniGraph instance can be duplicated""" controller = og.Controller() keys = og.Controller.Keys # +------------+ +---------------+ # |GraphTarget |=======>|WriteVariable | # +------------+ +---------------+ (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("GraphTarget", "omni.graph.nodes.GraphTarget"), ("WriteVar", "omni.graph.core.WriteVariable"), ], keys.CONNECT: [ ("GraphTarget.outputs:primPath", "WriteVar.inputs:value"), ], keys.CREATE_VARIABLES: [ ("path", og.Type(og.BaseDataType.TOKEN)), ], keys.SET_VALUES: [ ("WriteVar.inputs:variableName", "path"), ], }, ) # create an instance, and duplicate it stage = omni.usd.get_context().get_stage() prim0 = stage.DefinePrim("/World/Prim0") OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim0.GetPath(), self._graph_path) omni.kit.commands.execute("CopyPrim", path_from=prim0.GetPath(), path_to="/World/Prim1", exclusive_select=False) await omni.kit.app.get_app().next_update_async() # validate both instances ran by checking the variable was written variable = graph.find_variable("path") context = graph.get_default_graph_context() self.assertEquals(variable.get(context, "/World/Prim0"), "/World/Prim0") self.assertEquals(variable.get(context, "/World/Prim1"), "/World/Prim1") # ---------------------------------------------------------------------- async def test_instances_python(self): """ Tests that python nodes reads correctly their internal state when used in instantiated graphs The test creates 2 instances, the first one that use override, the other not We check that the 2 instances behaves differently. Then we swith instances "override", and we check that each has its own internal state """ controller = og.Controller() keys = og.Controller.Keys override_value = -1 # +--------------------+ # | OgnTutorialStatePy | # +------------+ | | +---------------+ # |Constant |=======>|overrideValue | | WritePrimAttr | # +------------+ | | | | # | monotonic |=======>|value | # +------------+ | | | | # |ReadVariable|=======>|override | | | # +------------+ +--------------------+ | | # +------------+ | | # |GraphTarget |=======>|primPath | # +------------+ +---------------+ # (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_PRIMS: [ ("/World/Inst1", {"graph_output": ("Int64", -2)}), ("/World/Inst2", {"graph_output": ("Int64", -2)}), ], keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ("OgnTutorialStatePy", "omni.graph.tutorials.StatePy"), ("Const", "omni.graph.nodes.ConstantInt64"), ("GraphTarget", "omni.graph.nodes.GraphTarget"), ("WritePrimAttr", "omni.graph.nodes.WritePrimAttribute"), ], keys.CONNECT: [ ("ReadVariable.outputs:value", "OgnTutorialStatePy.inputs:override"), ("Const.inputs:value", "OgnTutorialStatePy.inputs:overrideValue"), ("GraphTarget.outputs:primPath", "WritePrimAttr.inputs:primPath"), ("OgnTutorialStatePy.outputs:monotonic", "WritePrimAttr.inputs:value"), ], keys.CREATE_VARIABLES: [ ("var_override", og.Type(og.BaseDataType.BOOL)), ], keys.SET_VALUES: [ ("Const.inputs:value", override_value), ("ReadVariable.inputs:variableName", "var_override"), ("WritePrimAttr.inputs:usePath", True), ("WritePrimAttr.inputs:name", "graph_output"), ], }, ) # create the instances stage = omni.usd.get_context().get_stage() prim1 = stage.GetPrimAtPath("/World/Inst1") OmniGraphSchemaTools.applyOmniGraphAPI(stage, "/World/Inst1", self._graph_path) prim2 = stage.GetPrimAtPath("/World/Inst2") OmniGraphSchemaTools.applyOmniGraphAPI(stage, "/World/Inst2", self._graph_path) # set the variable default value var = graph.find_variable("var_override") og.Controller.set_variable_default_value(var, False) # change the value of the variable on prim1 prim1.CreateAttribute("graph:variable:var_override", Sdf.ValueTypeNames.Bool).Set(True) # run a frame await self.tick() prim1_out = prim1.GetAttribute("graph_output") prim2_out = prim2.GetAttribute("graph_output") # prim1 should have the overriden value self.assertEqual(prim1_out.Get(), override_value) # prim2 should have the internal initial state value self.assertEqual(prim2_out.Get(), 0) # run a frame await self.tick() # prim1 should still have the overriden value self.assertEqual(prim1_out.Get(), override_value) # prim2 should have the internal state value incremented step2 = prim2_out.Get() self.assertNotEqual(step2, override_value) # turn off override on prim 1 prim1.GetAttribute("graph:variable:var_override").Set(False) # run a frame await self.tick() # prim1 should now have a fresh internal state initial value self.assertEqual(prim1_out.Get(), 0) # prim2 should have the internal state value incremented self.assertEqual(prim2_out.Get(), 2 * step2) # run a frame await self.tick() # prim1 should have the internal state value incremented step1 = prim1_out.Get() self.assertNotEqual(step1, override_value) # the new step should be an increment of the previous one self.assertEqual(step1, step2 + 1) # prim2 should have the internal state value incremented self.assertEqual(prim2_out.Get(), 3 * step2) # change the value of the variable on prim2 prim2.CreateAttribute("graph:variable:var_override", Sdf.ValueTypeNames.Bool).Set(True) # run a frame await self.tick() # prim1 should have the internal state value incremented self.assertEqual(prim1_out.Get(), 2 * step1) # prim2 should have overriden value self.assertEqual(prim2_out.Get(), override_value) # now check that deleting an instance deletes as well its internal state stage.RemovePrim("/World/Inst1") # run a frame to apply the removal await self.tick() # re-create a fresh prim prim1 = stage.DefinePrim("/World/Inst1") OmniGraphSchemaTools.applyOmniGraphAPI(stage, "/World/Inst1", self._graph_path) prim1.CreateAttribute("graph_output", Sdf.ValueTypeNames.Int64).Set(-2) prim1_out = prim1.GetAttribute("graph_output") # run a frame await self.tick() # prim1 should be back to the initial state self.assertEqual(prim1_out.Get(), 0) # prim2 should have overriden value self.assertEqual(prim2_out.Get(), override_value) # run a frame await self.tick() # prim1 should have the internal state value incremented new_step = prim1_out.Get() self.assertNotEqual(new_step, override_value) self.assertEqual(new_step, step1 + 1) # prim2 should have overriden value self.assertEqual(prim2_out.Get(), override_value) # run a frame await self.tick() # prim1 should have the internal state value incremented self.assertEqual(prim1_out.Get(), 2 * new_step) # ------------------------------------------------------------------------- async def test_instance_variables_values_persist(self): """ Tests that instance variables value persist even if the backing values are removed from fabric """ controller = og.Controller() keys = og.Controller.Keys # Create a simple graph that reads a variable and passes it through the graph (graph, (read_var, to_str), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ("ToString", "omni.graph.nodes.ToString"), ], keys.CONNECT: [ ("ReadVariable.outputs:value", "ToString.inputs:value"), ], keys.CREATE_VARIABLES: [ ("var_str", og.Type(og.BaseDataType.UCHAR, 1, 1, og.AttributeRole.TEXT)), ], keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", "var_str"), ], }, ) # Create instances with unique values per instance num_prims = 3 stage = omni.usd.get_context().get_stage() variable = graph.find_variable("var_str") output_attr = to_str.get_attribute("outputs:converted") context = graph.get_default_graph_context() for i in range(0, num_prims): prim_name = f"/World/Prim_{i}" stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, self._graph_path) attr = stage.GetPrimAtPath(f"/World/Prim_{i}").CreateAttribute( "graph:variable:var_str", Sdf.ValueTypeNames.String ) attr.Set(str(i)) await self.tick() read_var_count = read_var.get_compute_count() to_str_count = to_str.get_compute_count() for i in range(0, num_prims): expected_value = str(i) self.assertEqual(variable.get(context, instance_path=f"/World/Prim_{i}"), expected_value) self.assertEqual(output_attr.get(instance=i), expected_value) # if USDRT is available use that to remove the backing properties from Fabric. # otherwise, use USD. usdrt_stage = stage try: import usdrt usdrt_stage = usdrt.Usd.Stage.Attach(omni.usd.get_context().get_stage_id()) except ImportError: pass # Update the values in Fabric for i in range(0, num_prims): variable.set(context, str(i + 10), instance_path=f"/World/Prim_{i}") await self.tick() # validate the nodes updated self.assertGreater(read_var.get_compute_count(), read_var_count) self.assertGreater(to_str.get_compute_count(), to_str_count) read_var_count = read_var.get_compute_count() to_str_count = to_str.get_compute_count() # Remove the backing properties for i in range(0, num_prims): prim = usdrt_stage.GetPrimAtPath(f"/World/Prim_{i}") prim.RemoveProperty("graph:variable:var_str") await self.tick() self.assertGreater(read_var.get_compute_count(), read_var_count) self.assertGreater(to_str.get_compute_count(), to_str_count) # validate the values still exist as expected for i in range(0, num_prims): expected_value = str(i + 10) self.assertEqual(variable.get(context, instance_path=f"/World/Prim_{i}"), expected_value) self.assertEqual(output_attr.get(instance=i), expected_value) # ------------------------------------------------------------------------- async def test_instance_author_existing_graph(self): """ Tests that an instanced graph can be authored """ controller = og.Controller() keys = og.Controller.Keys # Create a simple graph that reads a variable and passes it through the graph # we need an action graph here to prevent vectorization and exercise the one-by-one code path # this can be revisited with a push graph when we'll be able to controll the instance batch size per node # (and removing the artificially added action node that forces execution) controller.create_graph({"graph_path": self._graph_path, "evaluator_name": "execution"}) (graph, (_, to_str, _, _), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ("ToString", "omni.graph.nodes.ToString"), ("ForceExec", "omni.graph.test.TestAllDataTypes"), ("OnTick", "omni.graph.action.OnTick"), ], keys.CONNECT: [ ("ReadVariable.outputs:value", "ToString.inputs:value"), ("OnTick.outputs:tick", "ForceExec.inputs:a_execution"), ("ToString.outputs:converted", "ForceExec.inputs:a_string"), ], keys.CREATE_VARIABLES: [ ("var_str", og.Type(og.BaseDataType.UCHAR, 1, 1, og.AttributeRole.TEXT)), ], keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", "var_str"), ("OnTick.inputs:onlyPlayback", False), ], }, ) # Create instances with unique values per instance num_prims = 3 stage = omni.usd.get_context().get_stage() variable = graph.find_variable("var_str") output_attr = to_str.get_attribute("outputs:converted") context = graph.get_default_graph_context() for i in range(0, num_prims): prim_name = f"/World/Prim_{i}" stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, self._graph_path) attr = stage.GetPrimAtPath(f"/World/Prim_{i}").CreateAttribute( "graph:variable:var_str", Sdf.ValueTypeNames.String ) attr.Set(str(i)) await self.tick() for i in range(0, num_prims): expected_value = str(i) self.assertEqual(variable.get(context, instance_path=f"/World/Prim_{i}"), expected_value) self.assertEqual(output_attr.get(instance=i), expected_value) (_, (append), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [("Append", "omni.graph.nodes.AppendString")], keys.CONNECT: [ ("ToString.outputs:converted", "Append.inputs:value"), ("Append.outputs:value", "ForceExec.inputs:a_string"), ], keys.SET_VALUES: [ ("Append.inputs:suffix", {"value": "_suffix", "type": "string"}), ], }, ) await self.tick() output_attr = append[0].get_attribute("outputs:value") for i in range(0, num_prims): expected_value = str(i) + "_suffix" self.assertEqual(output_attr.get(instance=i), expected_value)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_compound_node_type_api.py
"""Tests related to the CompoundNodeType python APIs""" import carb import omni.graph.core as og import omni.graph.core._unstable as ogu import omni.graph.core.tests as ogts import omni.kit.test import omni.usd class TestCompoundNodesAPI(ogts.OmniGraphTestCase): """Tests that validate the ICompoundNodeType + python wrapper""" @classmethod def setUpClass(cls): # this is required when running a single test to make expectedError work correctly...not sure why carb.log_warn("This class expects error. This preflushes to avoid problems with ExpectedError") async def test_default_compound_node_type_folder(self): """Tests the default folder commmand of the compound node type""" # with no default prim, "/World" is used await omni.usd.get_context().new_stage_async() self.assertEquals(ogu.get_default_compound_node_type_folder(), "/World/Compounds") # if there is a default set, the compounds folder is off of that. stage = omni.usd.get_context().get_stage() prim = stage.DefinePrim("/MyDefault") stage.SetDefaultPrim(prim) self.assertEquals(ogu.get_default_compound_node_type_folder(), "/MyDefault/Compounds") async def test_compound_nodes_cannot_add_state(self): """API test for compound nodes that verifies set state calls have no effect.""" compound = ogu.create_compound_node_type("TestType", "Graph", "test.nodes") with ogts.ExpectedError(): compound.node_type.add_state("state", "int", True) with ogts.ExpectedError(): compound.node_type.add_extended_state( "extended", "numerics", True, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_UNION ) self.assertFalse(compound.node_type.has_state()) async def test_get_compound_node_type(self): """API test for get_compound_node_type""" (result, error) = await ogts.load_test_file("TestCompoundGraph.usda", use_caller_subdirectory=True) self.assertTrue(result, error) compound_type = og.get_node_type("local.nodes.Compounds") self.assertFalse(ogu.get_compound_node_type(compound_type).is_valid()) non_compound_type = og.get_node_type("omni.graph.nodes.Add") self.assertFalse(ogu.get_compound_node_type(non_compound_type).is_valid()) async def test_find_compound_node_type_by_path(self): """API test for find_compound_node_type_by_path""" self.assertFalse(ogu.find_compound_node_type_by_path("/World/Compounds/Compound").is_valid()) (result, error) = await ogts.load_test_file("TestCompoundGraph.usda", use_caller_subdirectory=True) self.assertTrue(result, error) self.assertTrue(ogu.find_compound_node_type_by_path("/World/Compounds/Compound").is_valid()) self.assertFalse(ogu.find_compound_node_type_by_path("/World/Compounds/Compound1").is_valid()) self.assertFalse(ogu.find_compound_node_type_by_path("").is_valid()) async def test_create_compound_node_type(self): """API test for create compound node type""" def expect_fail(compound_name, graph_name, namespace=None, folder=None): with ogts.ExpectedError(): self.assertFalse(ogu.create_compound_node_type(compound_name, graph_name, namespace, folder).is_valid()) self.assertTrue(ogu.create_compound_node_type("ValidCompound_01", "Graph").is_valid()) self.assertTrue(ogu.create_compound_node_type("ValidCompound_02", "Graph", "other.namespace").is_valid()) self.assertTrue( ogu.create_compound_node_type( "ValidCompound_03", "Graph", "other.namespace", "/World/OtherCompounds" ).is_valid() ) expect_fail("/INVALID_COMPOUND_NAME", "ValidGraphName") expect_fail("ValidCompoundName", "//!@#INVALID_GRAPH_NAME") expect_fail("ValidCompoundName", "ValidGraphName", "valid.namespace", "#@#$#$#INVALID_FOLDER##$@!#$") expect_fail("ValidCompound_01", "Graph") # same namespace & path expect_fail("ValidCompound_01", "Graph", "local.nodes", "/World/Compounds2") async def test_as_node_type(self): """Test conversion between compound node type and node type""" ogu.create_compound_node_type("TestType", "Graph", "test.nodes") node_type = og.get_node_type("test.nodes.TestType") self.assertTrue(node_type.is_valid()) compound_node_type = ogu.get_compound_node_type(node_type) self.assertTrue(compound_node_type.is_valid()) add_type = og.get_node_type("omni.graph.nodes.Add") self.assertTrue(add_type.is_valid()) self.assertFalse(ogu.get_compound_node_type(add_type).is_valid()) async def test_node_type_add_attributes(self): """Tests that attributes added through the INodeType ABI update compound node types correctly""" stage = omni.usd.get_context().get_stage() # create the compound compound_node_type = ogu.create_compound_node_type("TestType", "Graph", "test.nodes") self.assertTrue(compound_node_type.is_valid()) prim = stage.GetPrimAtPath("/World/Compounds/TestType") self.assertTrue(prim.IsValid()) # downcast to the given node type node_type = compound_node_type.node_type self.assertTrue(node_type.is_valid()) def validate_input(input_name, type_name, expect_typed_data): input_attr = compound_node_type.find_input(input_name) self.assertTrue(input_attr.is_valid()) self.assertEqual(input_attr.name, f"inputs:{input_name}") self.assertEqual(input_attr.type_name, type_name) path = prim.GetPath().AppendProperty(f"omni:graph:input:{input_name}") rel = stage.GetRelationshipAtPath(path) self.assertTrue(rel.IsValid(), f"Failed to get input at {path}") if expect_typed_data: self.assertIsNotNone(rel.GetCustomDataByKey("omni:graph:type")) # add regular input node_type.add_input("input_a", "int", True) validate_input("input_a", "int", True) # add an any input node_type.add_extended_input("input_b", None, True, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_ANY) validate_input("input_b", "token", False) # add a union input node_type.add_extended_input("input_c", "int, int2", True, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_UNION) validate_input("input_c", "token", True) def validate_output(output_name, type_name, expect_typed_data): output = compound_node_type.find_output(output_name) self.assertTrue(output.is_valid()) self.assertEqual(output.name, f"outputs:{output_name}") self.assertEqual(output.type_name, type_name) path = prim.GetPath().AppendProperty(f"omni:graph:output:{output_name}") rel = stage.GetRelationshipAtPath(path) self.assertTrue(rel.IsValid(), f"Failed to get output at {path}") if expect_typed_data: self.assertIsNotNone(rel.GetCustomDataByKey("omni:graph:type")) # add regular output node_type.add_output("output_a", "int", True) validate_output("output_a", "int", True) # add an any output node_type.add_extended_output("output_b", None, True, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_ANY) validate_output("output_b", "token", False) # add a union output node_type.add_extended_output("output_c", "int, int2", True, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_UNION) validate_output("output_c", "token", True) async def test_add_attributes_with_default_data(self): """Tests that compound nodes can handle adding attributes that use default data""" stage = omni.usd.get_context().get_stage() compound_node_type = ogu.create_compound_node_type("TestType", "Graph", "test.nodes") self.assertTrue(compound_node_type.is_valid()) prim = stage.GetPrimAtPath("/World/Compounds/TestType") self.assertTrue(prim.IsValid()) prim_path = prim.GetPath() def validate_typed_attributes(attr_name, attr_type, is_required, var_value): compound_node_type.add_input(attr_name, attr_type, is_required, var_value) compound_node_type.add_output(attr_name, attr_type, is_required, var_value) input_rel = stage.GetRelationshipAtPath(prim_path.AppendProperty(f"omni:graph:input:{attr_name}")) output_rel = stage.GetRelationshipAtPath(prim_path.AppendProperty(f"omni:graph:output:{attr_name}")) self.assertTrue(input_rel.IsValid()) self.assertTrue(output_rel.IsValid()) input_data = input_rel.GetCustomDataByKey("omni:graph:default") self.assertIsNotNone(input_data) output_data = output_rel.GetCustomDataByKey("omni:graph:default") self.assertIsNotNone(output_data) # token[] rearranges quotes and quat4 is out of order (input takes w first) if attr_type != "token[]" and "quat" not in attr_type: var_value_as_string = str(var_value).replace(" ", "") input_data_as_string = str(input_data).replace(" ", "") output_data_as_string = str(output_data).replace(" ", "") self.assertEqual(var_value_as_string, input_data_as_string) self.assertEqual(var_value_as_string, output_data_as_string) validate_typed_attributes("a_bool", "bool", True, True) validate_typed_attributes("a_bool_array", "bool[]", True, [0, 1]) validate_typed_attributes("a_colord_3", "colord[3]", True, (0.01625, 0.14125, 0.26625)) validate_typed_attributes( "a_colord_3_array", "colord[3][]", True, [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] ) validate_typed_attributes("a_colord_4", "colord[4]", True, (0.01625, 0.14125, 0.26625, 0.39125)) validate_typed_attributes( "a_colord_4_array", "colord[4][]", True, [(0.01625, 0.14125, 0.26625, 0.39125), (0.39125, 0.26625, 0.14125, 0.01625)], ) validate_typed_attributes("a_colorf_3", "colorf[3]", True, (0.125, 0.25, 0.375)) validate_typed_attributes("a_colorf_3_array", "colorf[3][]", True, [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)]) validate_typed_attributes("a_colorf_4", "colorf[4]", True, (0.125, 0.25, 0.375, 0.5)) validate_typed_attributes( "a_colorf_4_array", "colorf[4][]", True, [(0.125, 0.25, 0.375, 0.5), (0.5, 0.375, 0.25, 0.125)] ) validate_typed_attributes("a_colorh_3", "colorh[3]", True, (0.5, 0.625, 0.75)) validate_typed_attributes("a_colorh_3_array", "colorh[3][]", True, [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)]) validate_typed_attributes("a_colorh_4", "colorh[4]", True, (0.5, 0.625, 0.75, 0.875)) validate_typed_attributes( "a_colorh_4_array", "colorh[4][]", True, [(0.5, 0.625, 0.75, 0.875), (0.875, 0.75, 0.625, 0.5)] ) validate_typed_attributes("a_double", "double", True, 4.125) validate_typed_attributes("a_double_2", "double[2]", True, (4.125, 4.25)) validate_typed_attributes("a_double_2_array", "double[2][]", True, [(4.125, 4.25), (2.125, 2.25)]) validate_typed_attributes("a_double_3", "double[3]", True, (4.125, 4.25, 4.375)) validate_typed_attributes("a_double_3_array", "double[3][]", True, [(4.125, 4.25, 4.375), (2.125, 2.25, 2.375)]) validate_typed_attributes("a_double_4", "double[4]", True, (4.125, 4.25, 4.375, 4.5)) validate_typed_attributes( "a_double_4_array", "double[4][]", True, [(4.125, 4.25, 4.375, 4.5), (2.125, 2.25, 2.375, 2.5)] ) validate_typed_attributes("a_double_array", "double[]", True, [4.125, 2.125]) validate_typed_attributes("a_execution", "execution", True, 0) validate_typed_attributes("a_float", "float", True, 4.5) validate_typed_attributes("a_float_2", "float[2]", True, (4.5, 4.625)) validate_typed_attributes("a_float_2_array", "float[2][]", True, [(4.5, 4.625), (2.5, 2.625)]) validate_typed_attributes("a_float_3", "float[3]", True, (4.5, 4.625, 4.75)) validate_typed_attributes("a_float_3_array", "float[3][]", True, [(4.5, 4.625, 4.75), (2.5, 2.625, 2.75)]) validate_typed_attributes("a_float_4", "float[4]", True, (4.5, 4.625, 4.75, 4.875)) validate_typed_attributes( "a_float_4_array", "float[4][]", True, [(4.5, 4.625, 4.75, 4.875), (2.5, 2.625, 2.75, 2.875)] ) validate_typed_attributes("a_float_array", "float[]", True, [4.5, 2.5]) validate_typed_attributes( "a_frame_4", "frame[4]", True, ((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)) ) validate_typed_attributes( "a_frame_4_array", "frame[4][]", True, [ ((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)), ((2, 3, 3, 3), (3, 2, 3, 3), (3, 3, 2, 3), (3, 3, 3, 2)), ], ) validate_typed_attributes("a_half", "half", True, 2.5) validate_typed_attributes("a_half_2", "half[2]", True, (2.5, 2.625)) validate_typed_attributes("a_half_2_array", "half[2][]", True, [(2.5, 2.625), (4.5, 4.625)]) validate_typed_attributes("a_half_3", "half[3]", True, (2.5, 2.625, 2.75)) validate_typed_attributes("a_half_3_array", "half[3][]", True, [(2.5, 2.625, 2.75), (4.5, 4.625, 4.75)]) validate_typed_attributes("a_half_4", "half[4]", True, (2.5, 2.625, 2.75, 2.875)) validate_typed_attributes( "a_half_4_array", "half[4][]", True, [(2.5, 2.625, 2.75, 2.875), (4.5, 4.625, 4.75, 4.875)] ) validate_typed_attributes("a_half_array", "half[]", True, [2.5, 4.5]) validate_typed_attributes("a_int", "int", True, -32) validate_typed_attributes("a_int64", "int64", True, -46) validate_typed_attributes("a_int64_array", "int64[]", True, [-46, -64]) validate_typed_attributes("a_int_2", "int[2]", True, (-32, -31)) validate_typed_attributes("a_int_2_array", "int[2][]", True, [(-32, -31), (-23, -22)]) validate_typed_attributes("a_int_3", "int[3]", True, (-32, -31, -30)) validate_typed_attributes("a_int_3_array", "int[3][]", True, [(-32, -31, -30), (-23, -22, -21)]) validate_typed_attributes("a_int_4", "int[4]", True, (-32, -31, -30, -29)) validate_typed_attributes("a_int_4_array", "int[4][]", True, [(-32, -31, -30, -29), (-23, -22, -21, -20)]) validate_typed_attributes("a_int_array", "int[]", True, [-32, -23]) validate_typed_attributes("a_matrixd_2", "matrixd[2]", True, ((1, 0), (0, 1))) validate_typed_attributes("a_matrixd_2_array", "matrixd[2][]", True, [((1, 0), (0, 1)), ((2, 3), (3, 2))]) validate_typed_attributes("a_matrixd_3", "matrixd[3]", True, ((1, 0, 0), (0, 1, 0), (0, 0, 1))) validate_typed_attributes( "a_matrixd_3_array", "matrixd[3][]", True, [((1, 0, 0), (0, 1, 0), (0, 0, 1)), ((2, 3, 3), (3, 2, 3), (3, 3, 2))], ) validate_typed_attributes( "a_matrixd_4", "matrixd[4]", True, ((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)) ) validate_typed_attributes( "a_matrixd_4_array", "matrixd[4][]", True, [ ((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1)), ((2, 3, 3, 3), (3, 2, 3, 3), (3, 3, 2, 3), (3, 3, 3, 2)), ], ) validate_typed_attributes("a_normald_3", "normald[3]", True, (0.01625, 0.14125, 0.26625)) validate_typed_attributes( "a_normald_3_array", "normald[3][]", True, [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] ) validate_typed_attributes("a_normalf_3", "normalf[3]", True, (0.125, 0.25, 0.375)) validate_typed_attributes( "a_normalf_3_array", "normalf[3][]", True, [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] ) validate_typed_attributes("a_normalh_3", "normalh[3]", True, (0.5, 0.625, 0.75)) validate_typed_attributes("a_normalh_3_array", "normalh[3][]", True, [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)]) validate_typed_attributes("a_objectId", "objectId", True, 46) validate_typed_attributes("a_objectId_array", "objectId[]", True, [46, 64]) validate_typed_attributes("a_path", "path", True, "/This/Is") validate_typed_attributes("a_pointd_3", "pointd[3]", True, (0.01625, 0.14125, 0.26625)) validate_typed_attributes( "a_pointd_3_array", "pointd[3][]", True, [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] ) validate_typed_attributes("a_pointf_3", "pointf[3]", True, (0.125, 0.25, 0.375)) validate_typed_attributes("a_pointf_3_array", "pointf[3][]", True, [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)]) validate_typed_attributes("a_pointh_3", "pointh[3]", True, (0.5, 0.625, 0.75)) validate_typed_attributes("a_pointh_3_array", "pointh[3][]", True, [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)]) validate_typed_attributes("a_quatd_4", "quatd[4]", True, (0.78, 0.01625, 0.14125, 0.26625)) validate_typed_attributes( "a_quatd_4_array", "quatd[4][]", True, [(0.78, 0.01625, 0.14125, 0.26625), (0.51625, 0.14125, 0.26625, 0.39125)], ) validate_typed_attributes("a_quatf_4", "quatf[4]", True, (0.5, 0.125, 0.25, 0.375)) validate_typed_attributes( "a_quatf_4_array", "quatf[4][]", True, [(0.5, 0.125, 0.25, 0.375), (0.625, 0.25, 0.375, 0.5)] ) validate_typed_attributes("a_quath_4", "quath[4]", True, (0.75, 0, 0.25, 0.5)) validate_typed_attributes( "a_quath_4_array", "quath[4][]", True, [(0.75, 0, 0.25, 0.5), (0.875, 0.125, 0.375, 0.625)] ) validate_typed_attributes("a_string", "string", True, "Anakin") validate_typed_attributes("a_texcoordd_2", "texcoordd[2]", True, (0.01625, 0.14125)) validate_typed_attributes( "a_texcoordd_2_array", "texcoordd[2][]", True, [(0.01625, 0.14125), (0.14125, 0.01625)] ) validate_typed_attributes("a_texcoordd_3", "texcoordd[3]", True, (0.01625, 0.14125, 0.26625)) validate_typed_attributes( "a_texcoordd_3_array", "texcoordd[3][]", True, [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] ) validate_typed_attributes("a_texcoordf_2", "texcoordf[2]", True, (0.125, 0.25)) validate_typed_attributes("a_texcoordf_2_array", "texcoordf[2][]", True, [(0.125, 0.25), (0.25, 0.125)]) validate_typed_attributes("a_texcoordf_3", "texcoordf[3]", True, (0.125, 0.25, 0.375)) validate_typed_attributes( "a_texcoordf_3_array", "texcoordf[3][]", True, [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] ) validate_typed_attributes("a_texcoordh_2", "texcoordh[2]", True, (0.5, 0.625)) validate_typed_attributes("a_texcoordh_2_array", "texcoordh[2][]", True, [(0.5, 0.625), (0.625, 0.5)]) validate_typed_attributes("a_texcoordh_3", "texcoordh[3]", True, (0.5, 0.625, 0.75)) validate_typed_attributes( "a_texcoordh_3_array", "texcoordh[3][]", True, [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)] ) validate_typed_attributes("a_timecode", "timecode", True, 5) validate_typed_attributes("a_timecode_array", "timecode[]", True, [5, 6]) validate_typed_attributes("a_token", "token", True, "Ahsoka") validate_typed_attributes("a_token_array", "token[]", True, ["Ahsoka", "Tano"]) validate_typed_attributes("a_uchar", "uchar", True, 12) validate_typed_attributes("a_uchar_array", "uchar[]", True, [12, 8]) validate_typed_attributes("a_uint", "uint", True, 32) validate_typed_attributes("a_uint64", "uint64", True, 46) validate_typed_attributes("a_uint64_array", "uint64[]", True, [46, 64]) validate_typed_attributes("a_uint_array", "uint[]", True, [32, 23]) validate_typed_attributes("a_vectord_3", "vectord[3]", True, (0.01625, 0.14125, 0.26625)) validate_typed_attributes( "a_vectord_3_array", "vectord[3][]", True, [(0.01625, 0.14125, 0.26625), (0.26625, 0.14125, 0.01625)] ) validate_typed_attributes("a_vectorf_3", "vectorf[3]", True, (0.125, 0.25, 0.375)) validate_typed_attributes( "a_vectorf_3_array", "vectorf[3][]", True, [(0.125, 0.25, 0.375), (0.375, 0.25, 0.125)] ) validate_typed_attributes("a_vectorh_3", "vectorh[3]", True, (0.5, 0.625, 0.75)) validate_typed_attributes("a_vectorh_3_array", "vectorh[3][]", True, [(0.5, 0.625, 0.75), (0.75, 0.625, 0.5)]) async def test_remove_attribute_commands(self): """Validates the API/ABI commands to remove attributes function as expected""" stage = omni.usd.get_context().get_stage() compound_node_type = ogu.create_compound_node_type("TestType", "Graph", "test.nodes") self.assertTrue(compound_node_type.is_valid()) prim = stage.GetPrimAtPath("/World/Compounds/TestType") self.assertTrue(prim.IsValid()) for i in range(1, 20): compound_node_type.add_input(f"input_{i}", "int", True) compound_node_type.add_output(f"output_{i}", "float", True) self.assertTrue(prim.GetRelationship(f"omni:graph:input:input_{i}").IsValid()) self.assertTrue(prim.GetRelationship(f"omni:graph:output:output_{i}").IsValid()) for i in range(1, 20, 2): compound_node_type.remove_input_by_name(f"input_{i}") compound_node_type.remove_output_by_name(f"output_{i}") for i in range(1, 20): input_attr = compound_node_type.find_input(f"input_{i}") output_attr = compound_node_type.find_output(f"output_{i}") valid = (i % 2) == 0 self.assertEqual(input_attr.is_valid(), valid) self.assertEqual(output_attr.is_valid(), valid) self.assertEqual(prim.GetRelationship(f"omni:graph:input:input_{i}").IsValid(), valid) self.assertEqual(prim.GetRelationship(f"omni:graph:output:output_{i}").IsValid(), valid) async def test_get_attributes_commands(self): """Validates the methods to get inputs and outputs""" compound_node_type = ogu.create_compound_node_type("TestType", "Graph", "test.nodes") for i in range(1, 20): compound_node_type.add_input(f"input_{i}", "int", True) compound_node_type.add_output(f"output_{i}", "float", True) compound_node_type.add_output("output_20", "bool", True) self.assertEquals(compound_node_type.input_count, 19) self.assertEquals(compound_node_type.output_count, 20) inputs = compound_node_type.get_inputs() input_names = [input_attr.name for input_attr in inputs] outputs = compound_node_type.get_outputs() output_names = [output.name for output in outputs] for i in range(1, 20): self.assertTrue(f"inputs:input_{i}" in input_names) for i in range(1, 21): self.assertTrue(f"outputs:output_{i}" in output_names) async def test_find_attribute_commands(self): """Validates the find input and find output commands""" compound_node_type = ogu.create_compound_node_type("TestType", "Graph", "test.nodes") # create some without prefix for i in range(1, 20): compound_node_type.add_input(f"input_{i}", "int", True) compound_node_type.add_output(f"output_{i}", "float", True) # some with prefix for i in range(20, 40): compound_node_type.add_input(f"inputs:input_{i}", "int", True) compound_node_type.add_output(f"outputs:output_{i}", "float", True) # validate that the prefix is optional for i in range(1, 40): self.assertTrue(compound_node_type.find_input(f"inputs:input_{i}").is_valid()) self.assertTrue(compound_node_type.find_input(f"input_{i}").is_valid()) self.assertEqual( compound_node_type.find_input(f"inputs:input_{i}"), compound_node_type.find_input(f"input_{i}") ) self.assertTrue(compound_node_type.find_output(f"outputs:output_{i}").is_valid()) self.assertTrue(compound_node_type.find_output(f"output_{i}").is_valid()) self.assertEqual( compound_node_type.find_output(f"outputs:output_{i}"), compound_node_type.find_output(f"output_{i}") )
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_scheduling_types.py
"""Tests related to the scheduling information feature""" import omni.graph.core as og import omni.graph.core.tests as og_tests # ============================================================================================================== class TestSchedulingHints(og_tests.OmniGraphTestCase): """Testing to ensure scheduling information work""" # ---------------------------------------------------------------------- async def test_scheduling_hints(self): """Test the scheduling information embedded in .ogn files""" controller = og.Controller() keys = og.Controller.Keys (_, (list_node, string_node), _, _,) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("AsList", "omni.graph.test.TestSchedulingHintsList"), ("AsString", "omni.graph.test.TestSchedulingHintsString"), ] }, ) scheduling_hints = list_node.get_node_type().get_scheduling_hints() scheduling_hints_2 = og.ISchedulingHints2(scheduling_hints) self.assertEqual(og.eThreadSafety.E_SAFE, scheduling_hints.thread_safety) self.assertEqual(og.eAccessType.E_NONE, scheduling_hints.get_data_access(og.eAccessLocation.E_GLOBAL)) self.assertEqual(og.eAccessType.E_NONE, scheduling_hints.get_data_access(og.eAccessLocation.E_STATIC)) self.assertEqual(og.eAccessType.E_NONE, scheduling_hints.get_data_access(og.eAccessLocation.E_TOPOLOGY)) self.assertEqual(og.eAccessType.E_NONE, scheduling_hints.get_data_access(og.eAccessLocation.E_USD)) self.assertEqual(og.eComputeRule.E_DEFAULT, scheduling_hints.compute_rule) if scheduling_hints_2: self.assertEqual(og.ePurityStatus.E_IMPURE, scheduling_hints_2.purity_status) scheduling_hints.thread_safety = og.eThreadSafety.E_UNKNOWN list_node.get_node_type().set_scheduling_hints(scheduling_hints) self.assertEqual(og.eThreadSafety.E_UNKNOWN, scheduling_hints.thread_safety) scheduling_hints.compute_rule = og.eComputeRule.E_ON_REQUEST list_node.get_node_type().set_scheduling_hints(scheduling_hints) self.assertEqual(og.eComputeRule.E_ON_REQUEST, scheduling_hints.compute_rule) # restore the node to its default values scheduling_hints.thread_safety = og.eThreadSafety.E_SAFE scheduling_hints.compute_rule = og.eComputeRule.E_DEFAULT list_node.get_node_type().set_scheduling_hints(scheduling_hints) scheduling_hints = string_node.get_node_type().get_scheduling_hints() scheduling_hints_2 = og.ISchedulingHints2(scheduling_hints) self.assertEqual(og.eThreadSafety.E_UNSAFE, scheduling_hints.thread_safety) self.assertEqual(og.eAccessType.E_READ, scheduling_hints.get_data_access(og.eAccessLocation.E_GLOBAL)) self.assertEqual(og.eAccessType.E_READ_WRITE, scheduling_hints.get_data_access(og.eAccessLocation.E_STATIC)) self.assertEqual(og.eAccessType.E_WRITE, scheduling_hints.get_data_access(og.eAccessLocation.E_TOPOLOGY)) self.assertEqual(og.eAccessType.E_READ_WRITE, scheduling_hints.get_data_access(og.eAccessLocation.E_USD)) self.assertEqual(og.eComputeRule.E_ON_REQUEST, scheduling_hints.compute_rule) if scheduling_hints_2: self.assertEqual(og.ePurityStatus.E_IMPURE, scheduling_hints_2.purity_status) scheduling_hints.set_data_access(og.eAccessLocation.E_GLOBAL, og.eAccessType.E_WRITE) scheduling_hints.set_data_access(og.eAccessLocation.E_STATIC, og.eAccessType.E_NONE) scheduling_hints.set_data_access(og.eAccessLocation.E_TOPOLOGY, og.eAccessType.E_READ_WRITE) scheduling_hints.set_data_access(og.eAccessLocation.E_USD, og.eAccessType.E_READ) scheduling_hints.compute_rule = og.eComputeRule.E_DEFAULT if scheduling_hints_2: scheduling_hints_2.purity_status = og.ePurityStatus.E_PURE string_node.get_node_type().set_scheduling_hints(scheduling_hints) self.assertEqual(og.eAccessType.E_WRITE, scheduling_hints.get_data_access(og.eAccessLocation.E_GLOBAL)) self.assertEqual(og.eAccessType.E_NONE, scheduling_hints.get_data_access(og.eAccessLocation.E_STATIC)) self.assertEqual(og.eAccessType.E_READ_WRITE, scheduling_hints.get_data_access(og.eAccessLocation.E_TOPOLOGY)) self.assertEqual(og.eAccessType.E_READ, scheduling_hints.get_data_access(og.eAccessLocation.E_USD)) self.assertEqual(og.eComputeRule.E_DEFAULT, scheduling_hints.compute_rule) if scheduling_hints_2: self.assertEqual(og.ePurityStatus.E_PURE, scheduling_hints_2.purity_status) # restore to default values scheduling_hints.set_data_access(og.eAccessLocation.E_GLOBAL, og.eAccessType.E_READ) scheduling_hints.set_data_access(og.eAccessLocation.E_STATIC, og.eAccessType.E_READ_WRITE) scheduling_hints.set_data_access(og.eAccessLocation.E_TOPOLOGY, og.eAccessType.E_WRITE) scheduling_hints.set_data_access(og.eAccessLocation.E_USD, og.eAccessType.E_READ_WRITE) scheduling_hints.compute_rule = og.eComputeRule.E_ON_REQUEST if scheduling_hints_2: scheduling_hints_2.purity_status = og.ePurityStatus.E_IMPURE string_node.get_node_type().set_scheduling_hints(scheduling_hints)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_target_type.py
import omni.graph.core as og import omni.graph.core.tests as ogts import omni.usd from pxr import OmniGraphSchemaTools GRAPH_TARGET_PRIM = og.INSTANCING_GRAPH_TARGET_PATH class TestTargetType(ogts.OmniGraphTestCase): """Tests related to using the target attribute type""" _graph_path = "/World/TestGraph" # ------------------------------------------------------------------------- async def test_target_path_substitution(self): """Test that the target accepts target path substitutions""" # Create the graph controller = og.Controller() keys = og.Controller.Keys (graph, (prim_node,), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [("GetPrimsPaths", "omni.graph.nodes.GetPrimPaths")], keys.SET_VALUES: [("GetPrimsPaths.inputs:prims", [GRAPH_TARGET_PRIM])], }, ) await og.Controller.evaluate(graph) actual_result = controller.get(("outputs:primPaths", prim_node)) self.assertEqual(self._graph_path, actual_result[0]) # Change the graph path and verify the changes get picked up correctly controller.edit( self._graph_path, {keys.SET_VALUES: [("GetPrimsPaths.inputs:prims", f"{GRAPH_TARGET_PRIM}/Child")]} ) await og.Controller.evaluate(graph) actual_result = controller.get(("outputs:primPaths", prim_node)) self.assertEqual(f"{self._graph_path}/Child", actual_result[0]) # ------------------------------------------------------------------------- async def test_target_path_substitution_on_instances(self): """Tests that target paths substitution works as expected on instances""" controller = og.Controller() keys = og.Controller.Keys (graph, (prim_node,), prims, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [("GetPrimsPaths", "omni.graph.nodes.GetPrimPaths")], keys.SET_VALUES: [("GetPrimsPaths.inputs:prims", GRAPH_TARGET_PRIM)], keys.CREATE_PRIMS: [ ("/World/Instance1", "Xform"), ("/World/Instance2", "Xform"), ("/World/Instance3", "Xform"), ("/World/Instance4", "Xform"), ("/World/Instance5", "Xform"), ], }, ) context = graph.get_default_graph_context() # Create the instances stage = omni.usd.get_context().get_stage() for p in prims: OmniGraphSchemaTools.applyOmniGraphAPI(stage, p.GetPath(), self._graph_path) await og.Controller.evaluate(graph) for i in range(0, len(prims)): actual_result = controller.get(("outputs:primPaths", prim_node), instance=i) self.assertEqual(str(actual_result[0]), str(context.get_graph_target(i))) # Change the path and verify the changes propagate correctly controller.edit( self._graph_path, {keys.SET_VALUES: [("GetPrimsPaths.inputs:prims", f"{GRAPH_TARGET_PRIM}/Child")]} ) await og.Controller.evaluate(graph) for i in range(0, len(prims)): actual_result = controller.get(("outputs:primPaths", prim_node), instance=i) self.assertEqual(str(actual_result[0]), f"{context.get_graph_target(i)}/Child") # ------------------------------------------------------------------------- async def test_target_types_substitution_with_multiple_target_paths(self): """Test that the target accepts multiple target path substitutions""" # Create the graph controller = og.Controller() keys = og.Controller.Keys (graph, (prim_node,), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [("GetPrimsPaths", "omni.graph.nodes.GetPrimPaths")], keys.SET_VALUES: [ ("GetPrimsPaths.inputs:prims", [GRAPH_TARGET_PRIM, "/World/Other", f"{GRAPH_TARGET_PRIM}/Child"]) ], }, ) await og.Controller.evaluate(graph) actual_result = controller.get(("outputs:primPaths", prim_node)) expected_result = [self._graph_path, "/World/Other", f"{self._graph_path}/Child"] self.assertEqual(expected_result, actual_result) # ------------------------------------------------------------------------- async def test_target_types_substitution_in_connected_graphs(self): """Tests that the graph target replacements propagate through the graph""" # Create the graph controller = og.Controller() keys = og.Controller.Keys (graph, (_const_node, prim_node,), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ConstantPrims", "omni.graph.nodes.ConstantPrims"), ("GetPrimPaths", "omni.graph.nodes.GetPrimPaths"), ], keys.SET_VALUES: [("ConstantPrims.inputs:value", [GRAPH_TARGET_PRIM])], keys.CONNECT: [("ConstantPrims.inputs:value", "GetPrimPaths.inputs:prims")], }, ) # test the single evaluation case await og.Controller.evaluate(graph) actual_result = controller.get(("outputs:primPaths", prim_node)) self.assertEqual(self._graph_path, actual_result[0]) # create and instances and test the instanced case num_instances = 5 stage = omni.usd.get_context().get_stage() for i in range(0, num_instances): p = stage.DefinePrim(f"/World/Instance{i}", "Xform") OmniGraphSchemaTools.applyOmniGraphAPI(stage, p.GetPath(), self._graph_path) await og.Controller.evaluate(graph) context = graph.get_default_graph_context() for i in range(0, num_instances): actual_result = controller.get(("outputs:primPaths", prim_node), instance=i) self.assertEqual(str(actual_result[0]), context.get_graph_target(i)) # ------------------------------------------------------------------------- async def test_target_types_substitution_in_referenced_graphs(self): # Create the graph controller = og.Controller() keys = og.Controller.Keys (_, (_, _,), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ConstantPrims", "omni.graph.nodes.ConstantPrims"), ("GetPrimPaths", "omni.graph.nodes.GetPrimPaths"), ], keys.SET_VALUES: [("ConstantPrims.inputs:value", [GRAPH_TARGET_PRIM])], keys.CONNECT: [("ConstantPrims.inputs:value", "GetPrimPaths.inputs:prims")], }, ) instance_path = "/World/Instance" stage = omni.usd.get_context().get_stage() prim = stage.DefinePrim(instance_path) prim.GetReferences().AddInternalReference(self._graph_path) await og.Controller.evaluate() instance_graph = og.Controller.graph(instance_path) self.assertTrue(instance_graph.is_valid()) await og.Controller.evaluate(instance_graph) attr = og.Controller.attribute(f"{instance_path}/GetPrimPaths.outputs:primPaths") self.assertTrue(attr.is_valid()) self.assertEqual([instance_path], og.Controller.get(attr))
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_variables.py
# pylint: disable=too-many-lines """ Tests for omnigraph variables """ import os import string import tempfile from typing import List, Optional, Set import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.test import omni.usd from omni.kit.usd.layers import LayerUtils from pxr import OmniGraphSchemaTools ALL_USD_TYPES = ogts.DataTypeHelper.all_attribute_types() # ===================================================================== # Helper method to create a flat list item, list, tuples, for easy comparison def flatten(item): def _internal_flatten(item, flattened_list): if hasattr(item, "__iter__") and not isinstance(item, str): for i in item: flattened_list = _internal_flatten(i, flattened_list) else: flattened_list.append(item) return flattened_list return _internal_flatten(item, []) # ====================================================================== class TestVariables(ogts.OmniGraphTestCase): _graph_path = "/World/TestGraph" async def setUp(self): self._var_index = 0 await super().setUp() # ---------------------------------------------------------------------- def create_variable( self, graph, name, var_type, display_name: Optional[str] = None, category: Optional[str] = None, tooltip: Optional[str] = None, scope: Optional[og.eVariableScope] = None, ): """Helper method to create and validate a variable in a graph""" var = graph.create_variable(name, var_type) self.assertNotEquals(var, None) self.assertEquals(var.source_path, self._graph_path + ".graph:variable:" + name) self.assertEquals(var.name, name) self.assertEquals(var.type, var_type) if display_name: var.display_name = display_name self.assertEquals(var.display_name, display_name) if category: var.category = category self.assertEquals(var.category, category) if tooltip: var.tooltip = tooltip self.assertEquals(var.tooltip, tooltip) if scope: var.scope = scope self.assertEquals(var.scope, scope) return var # ---------------------------------------------------------------------- def create_simple_graph(self): (graph, _, _, _) = og.Controller.edit( self._graph_path, { og.Controller.Keys.CREATE_NODES: [("SimpleNode", "omni.graph.examples.cpp.Simple")], }, ) return graph # ---------------------------------------------------------------------- def next_variable_name(self): """Returns a unique variable name each time it is called""" variable_name = "variable" index = self._var_index while index >= 0: variable_name += chr(ord("a") + index % 26) index -= 26 self._var_index += 1 return variable_name # ---------------------------------------------------------------------- def get_variables_from_types(self): """Returns a list of variables of all supported types in the form (name, Og.Type, data) """ return [ ( self.next_variable_name(), og.AttributeType.type_from_sdf_type_name(entry), ogts.DataTypeHelper.test_input_value(entry), ) for entry in ALL_USD_TYPES ] # ------------------------------------------------------------------------- async def test_graph_variables_return_expected_value(self): """ Simple test that checks the API returns expected values from a loaded file """ # load the graph (result, error) = await ogts.load_test_file("TestGraphVariables.usda", use_caller_subdirectory=True) self.assertTrue(result, error) graph = omni.graph.core.get_graph_by_path("/World/ComputeGraph") # put the variables in a dictionary variables = {var.source_path: var for var in graph.get_variables()} self.assertEquals(len(variables), 103) # walk through the usd types and validate they all load as variables # and return expected values for usd_type in ALL_USD_TYPES: var_name = usd_type.lower().replace("[]", "_array") key = "/World/ComputeGraph.graph:variable:var_" + var_name self.assertTrue(key in variables, key) self.assertEquals(variables[key].name, "var_" + var_name) is_array = "_array" in key or usd_type == "string" var_type = variables[key].type if is_array: self.assertNotEqual(var_type.array_depth, 0, key) else: self.assertEqual(var_type.array_depth, 0, key) async def test_variables_get_and_set_oncontext(self): """ Validates variable values can be written and retrieved through the API """ # turn off global graphs, as the test file doesn't use them (result, error) = await ogts.load_test_file("TestGraphVariables.usda", use_caller_subdirectory=True) self.assertTrue(result, error) graph = omni.graph.core.get_graph_by_path("/World/ComputeGraph") context = graph.get_default_graph_context() variables = {var.source_path: var for var in graph.get_variables()} for entry in ogts.DataTypeHelper.all_attribute_types(): var_name = entry.lower().replace("[]", "_array") key = "/World/ComputeGraph.graph:variable:var_" + var_name variable = variables[key] # grab the reference value, set it, read it back and validate they are the same ref_value = ogts.DataTypeHelper.test_input_value(entry) variable.set(context, ref_value) if "_array" in key: value = variable.get_array(context, False, 0) else: value = variable.get(context) # use almostEqual to deal with numerical imprecision # that occurs with some floating point precisions for a, b in zip(flatten(value), flatten(ref_value)): self.assertAlmostEqual(a, b, places=1) async def test_variables_can_be_created_and_removed(self): """Validates variables are correctly created and removed""" graph = self.create_simple_graph() # validate variables can be created var1 = self.create_variable(graph, "var_float", og.Type(og.BaseDataType.FLOAT)) var2 = self.create_variable(graph, "var_int", og.Type(og.BaseDataType.INT)) var3 = self.create_variable(graph, "var_float_array", og.Type(og.BaseDataType.FLOAT, 3, 0)) var4 = self.create_variable(graph, "var_int_tuple", og.Type(og.BaseDataType.INT, 2, 0)) # check they are all valid, using both valid property and __bool__ override self.assertTrue(var1.valid) self.assertTrue(var2.valid) self.assertTrue(var3.valid) self.assertTrue(var4.valid) self.assertTrue(bool(var1)) self.assertTrue(bool(var2)) self.assertTrue(bool(var3)) self.assertTrue(bool(var4)) # check that the list is created as expected variables = graph.get_variables() self.assertEquals(len(variables), 4) self.assertIn(var1, variables) self.assertIn(var2, variables) self.assertIn(var3, variables) self.assertIn(var4, variables) # validate nodes that already exist (same type, different type) are ignored with ogts.ExpectedError(): var_x = graph.create_variable("var_float", og.Type(og.BaseDataType.FLOAT)) self.assertEquals(var_x, None) with ogts.ExpectedError(): var_x = graph.create_variable("var_float", og.Type(og.BaseDataType.INT)) self.assertEquals(var_x, None) # remove a variable, then again to verify it fails self.assertTrue(graph.remove_variable(var3)) with ogts.ExpectedError(): self.assertFalse(graph.remove_variable(var3)) self.assertEquals(len(graph.get_variables()), 3) self.assertNotIn(var3, graph.get_variables()) self.assertFalse(var3.valid) self.assertFalse(bool(var3)) async def test_find_variable(self): """Tests that variables can be correctly searched for by name""" graph = self.create_simple_graph() # create a set of variables for a in string.ascii_lowercase: self.create_variable(graph, "var_" + a, og.Type(og.BaseDataType.FLOAT)) # validate they are correctly found for a in string.ascii_lowercase: var = graph.find_variable("var_" + a) self.assertIsNotNone(var) self.assertEquals(var.name, "var_" + a) self.assertIsNone(graph.find_variable("not_var_" + a)) async def test_variable_metadata(self): """Validates the metadata for the variables can and retreived as expected.""" graph = self.create_simple_graph() var = graph.create_variable("var", og.Type(og.BaseDataType.FLOAT)) self.assertTrue(var.valid) # validate default values self.assertEquals(var.display_name, "var") self.assertEquals(var.category, "") self.assertEquals(var.tooltip, "") self.assertEquals(var.scope, og.eVariableScope.E_PRIVATE) # set valid values var.display_name = "VAR1" var.category = "New Category" var.tooltip = "Tooltip" var.scope = og.eVariableScope.E_READ_ONLY self.assertEquals(var.display_name, "VAR1") self.assertEquals(var.category, "New Category") self.assertEquals(var.tooltip, "Tooltip") self.assertEquals(var.scope, og.eVariableScope.E_READ_ONLY) # set special and/or secondary values var.display_name = "" var.category = "" var.tooltip = "" var.scope = og.eVariableScope.E_PUBLIC self.assertEquals(var.display_name, "var") # "" resets to default value self.assertEquals(var.category, "") self.assertEquals(var.tooltip, "") self.assertEquals(var.scope, og.eVariableScope.E_PUBLIC) var.category = "New Category" var.tooltip = "Tooltip" # validate that removed attribute specify empty/default values graph.remove_variable(var) self.assertFalse(var.valid) self.assertEquals(var.display_name, "") self.assertEquals(var.category, "") self.assertEquals(var.tooltip, "") self.assertEquals(var.scope, og.eVariableScope.E_PRIVATE) async def test_variables_save_and_load(self): """Verifies that variables are correctly saved and restored from serialization""" type_list = [og.BaseDataType.FLOAT, og.BaseDataType.INT, og.BaseDataType.HALF] graph = self.create_simple_graph() for x in type_list: type_name = str(x).replace(".", "_") self.create_variable( graph, str(type_name).lower(), og.Type(x), display_name=str(type_name).upper(), category=str(type_name).swapcase(), scope=og.eVariableScope.E_PUBLIC, tooltip=str(type_name).title(), ) with tempfile.TemporaryDirectory() as tmpdirname: # save the file tmp_file_path = os.path.join(tmpdirname, "tmp.usda") result = omni.usd.get_context().save_as_stage(tmp_file_path) self.assertTrue(result) # refresh the stage await omni.usd.get_context().new_stage_async() # reload the file back (result, error) = await ogts.load_test_file(tmp_file_path) self.assertTrue(result, error) graph = omni.graph.core.get_graph_by_path(self._graph_path) self.assertTrue(graph.is_valid) self.assertEquals(len(graph.get_variables()), len(type_list)) for x in type_list: type_name = str(x).replace(".", "_") var = graph.find_variable(str(type_name).lower()) self.assertEquals(var.type, og.Type(x)) self.assertEquals(var.scope, og.eVariableScope.E_PUBLIC) self.assertEquals(var.display_name, str(type_name).upper()) self.assertEquals(var.category, str(type_name).swapcase()) self.assertEquals(var.tooltip, str(type_name).title()) # ---------------------------------------------------------------------- async def test_write_variable_node(self): """Tests WriteVariable Nodes that variable data is correctly written for all variable types""" # +-------+ +-------------+ # |OnTick |-->|WriteVariable| # +-------+ +-------------+ # C++ node, Python equivalent for write_node in ["omni.graph.core.WriteVariable", "omni.graph.test.TestWriteVariablePy"]: with self.subTest(write_node=write_node): controller = og.Controller() keys = og.Controller.Keys variables = self.get_variables_from_types() # Create a graph that writes the give variable (graph, (_, write_variable_node), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("WriteVariable", write_node), ], keys.CONNECT: [ ("OnTick.outputs:tick", "WriteVariable.inputs:execIn"), ], keys.CREATE_VARIABLES: [(var_name, var_type) for (var_name, var_type, _) in variables], keys.SET_VALUES: [ ("OnTick.inputs:onlyPlayback", False), ], }, ) for (var_name, og_type, ref_value) in variables: variable = graph.find_variable(var_name) # First write the variable type, then the value. The value field needs to resolve first, # based on the type of variable that is set variable_name_attr = write_variable_node.get_attribute("inputs:variableName") variable_value_attr = write_variable_node.get_attribute("inputs:value") og.Controller.set(variable_name_attr, var_name) og.Controller.set(variable_value_attr, ref_value) # Evaluate the graph, which writes the value await controller.evaluate(graph) # fetch the data from variable node variable_output_attr = write_variable_node.get_attribute("outputs:value") # retrieve the value from the graph variable, and the output port if og_type.array_depth >= 1: value = variable.get_array(graph.get_default_graph_context(), False, 0) output_value = variable_output_attr.get_array(False, False, 0) else: value = variable.get(graph.get_default_graph_context()) output_value = variable_output_attr.get() # unpack and compare the elements for a, b, c in zip(flatten(value), flatten(ref_value), flatten(output_value)): self.assertAlmostEqual(a, b, places=1, msg=f"{var_name} {og_type}") self.assertAlmostEqual(a, c, places=1, msg=f"{var_name} {og_type}") # reset the stage, so the next iteration starts clean await omni.usd.get_context().new_stage_async() await omni.kit.app.get_app().next_update_async() # ---------------------------------------------------------------------- async def test_variable_graph_type_resolution(self): """Tests output port resolution for built""" controller = og.Controller() keys = og.Controller.Keys # [ReadVariable]->+------------+ # [ConstantString]->[WriteVariable]->|AppendString|->[WriteVariable] # +------------+ (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ("WriteVariable", "omni.graph.core.WriteVariable"), ("AppendString", "omni.graph.nodes.AppendString"), ("WriteVariable2", "omni.graph.core.WriteVariable"), ("ConstantToken", "omni.graph.nodes.ConstantToken"), ], keys.CREATE_VARIABLES: [ ("var_float", og.Type(og.BaseDataType.FLOAT)), ("var_str", og.Type(og.BaseDataType.TOKEN)), ], keys.CONNECT: [ ("ReadVariable.outputs:value", "AppendString.inputs:value"), ("WriteVariable.outputs:value", "AppendString.inputs:suffix"), ("AppendString.outputs:value", "WriteVariable2.inputs:value"), ("ConstantToken.inputs:value", "WriteVariable.inputs:value"), ], keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", "var_str"), ("WriteVariable.inputs:variableName", "var_str"), ("WriteVariable2.inputs:variableName", "var_str"), ("ConstantToken.inputs:value", "_A_"), ], }, ) await omni.kit.app.get_app().next_update_async() # Helper to verify the base data type of an attribute def assert_attrib_is(attrib, node, base_type): attrib = controller.attribute(attrib, node, graph) self.assertEqual(attrib.get_resolved_type().base_type, base_type) # validate the output types assert_attrib_is("outputs:value", "ReadVariable", og.BaseDataType.TOKEN) assert_attrib_is("outputs:value", "WriteVariable", og.BaseDataType.TOKEN) assert_attrib_is("inputs:value", "WriteVariable", og.BaseDataType.TOKEN) assert_attrib_is("inputs:value", "WriteVariable2", og.BaseDataType.TOKEN) # disconnect the input controller.edit( graph, { keys.DISCONNECT: [ ("ReadVariable.outputs:value", "AppendString.inputs:value"), ("WriteVariable.outputs:value", "AppendString.inputs:suffix"), ("ConstantToken.inputs:value", "WriteVariable.inputs:value"), ] }, ) await omni.kit.app.get_app().next_update_async() # resolution types assert_attrib_is("outputs:value", "ReadVariable", og.BaseDataType.TOKEN) assert_attrib_is("outputs:value", "WriteVariable", og.BaseDataType.TOKEN) assert_attrib_is("inputs:value", "WriteVariable", og.BaseDataType.TOKEN) assert_attrib_is("inputs:value", "AppendString", og.BaseDataType.UNKNOWN) assert_attrib_is("inputs:suffix", "AppendString", og.BaseDataType.UNKNOWN) # change the variable type one at a time controller.edit( graph, { keys.SET_VALUES: [ ("WriteVariable.inputs:variableName", "var_float"), ("ReadVariable.inputs:variableName", "var_float"), ], }, ) await omni.kit.app.get_app().next_update_async() # validate the updated resolution - outputs change, inputs unresolve assert_attrib_is("outputs:value", "ReadVariable", og.BaseDataType.FLOAT) assert_attrib_is("outputs:value", "WriteVariable", og.BaseDataType.FLOAT) assert_attrib_is("inputs:value", "WriteVariable", og.BaseDataType.FLOAT) # 'unset' the variable name controller.edit( graph, { keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", ""), ("WriteVariable.inputs:variableName", ""), ] }, ) await omni.kit.app.get_app().next_update_async() assert_attrib_is("outputs:value", "ReadVariable", og.BaseDataType.UNKNOWN) assert_attrib_is("outputs:value", "WriteVariable", og.BaseDataType.UNKNOWN) assert_attrib_is("inputs:value", "WriteVariable", og.BaseDataType.UNKNOWN) # ---------------------------------------------------------------------- async def test_read_variable_node(self): """Tests ReadVariable Nodes that variable data is properly read for all variable types""" # C++ node, Python equivalent for read_node in ["omni.graph.core.ReadVariable", "omni.graph.test.TestReadVariablePy"]: with self.subTest(read_node=read_node): controller = og.Controller() keys = og.Controller.Keys variables = self.get_variables_from_types() # Create a graph that writes the give variable (graph, nodes, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", read_node), ], keys.CREATE_VARIABLES: [(var_name, var_type) for (var_name, var_type, _) in variables], }, ) context = graph.get_default_graph_context() for (var_name, var_type, ref_value) in variables: # set the value on the variable variable = graph.find_variable(var_name) variable.set(context, ref_value) # set the node to use the appropriate variable variable_name_attr = nodes[0].get_attribute("inputs:variableName") og.Controller.set(variable_name_attr, var_name) # Evaluate the graph and read the output of the node await controller.evaluate(graph) value = og.Controller.get(nodes[0].get_attribute("outputs:value")) # unpack and compare the elements for a, b in zip(flatten(value), flatten(ref_value)): self.assertAlmostEqual(a, b, places=1, msg=f"{var_name} : {var_type}") # reset the stage, so the next iteration starts clean await omni.usd.get_context().new_stage_async() await omni.kit.app.get_app().next_update_async() # ---------------------------------------------------------------------- async def test_variable_graph_events(self): """Tests that variable related graph events trigger and are caught by built-in variable nodes""" controller = og.Controller() keys = og.Controller.Keys (graph, (read_var_node, write_var_node), _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ("WriteVariable", "omni.graph.core.WriteVariable"), ], keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", "test_var"), ("WriteVariable.inputs:variableName", "test_var"), ], }, ) create_counter = 0 remove_counter = 0 last_var_name = "" def on_graph_event(event): nonlocal create_counter nonlocal remove_counter nonlocal last_var_name if event.type == int(og.GraphEvent.CREATE_VARIABLE): create_counter += 1 if event.type == int(og.GraphEvent.REMOVE_VARIABLE): remove_counter += 1 last_var_name = event.payload["variable"] sub = graph.get_event_stream().create_subscription_to_pop(on_graph_event) var = graph.create_variable("test_var", og.Type(og.BaseDataType.FLOAT)) # check the callback has been hit, and that the resolved type has been updated self.assertEquals(create_counter, 1) self.assertEquals( read_var_node.get_attribute("outputs:value").get_resolved_type(), og.Type(og.BaseDataType.FLOAT) ) self.assertEquals( write_var_node.get_attribute("inputs:value").get_resolved_type(), og.Type(og.BaseDataType.FLOAT) ) self.assertEquals(last_var_name, "test_var") last_var_name = "" # remove the variable, it should unresolve graph.remove_variable(var) self.assertEquals(remove_counter, 1) self.assertEquals( read_var_node.get_attribute("outputs:value").get_resolved_type(), og.Type(og.BaseDataType.UNKNOWN) ) self.assertEquals( write_var_node.get_attribute("inputs:value").get_resolved_type(), og.Type(og.BaseDataType.UNKNOWN) ) self.assertEquals(last_var_name, "test_var") # add, remove a variety of variables, including the listened one (with a different type) graph.create_variable("test_var", og.Type(og.BaseDataType.BOOL)) for i in range(1, 10): var_n = graph.create_variable(f"test_var{i}", og.Type(og.BaseDataType.INT)) self.assertEquals(last_var_name, f"test_var{i}") if i % 2 == 0: graph.remove_variable(var_n) self.assertEquals(create_counter, 11) self.assertEquals(remove_counter, 5) self.assertEquals( read_var_node.get_attribute("outputs:value").get_resolved_type(), og.Type(og.BaseDataType.BOOL) ) self.assertEquals( write_var_node.get_attribute("inputs:value").get_resolved_type(), og.Type(og.BaseDataType.BOOL) ) del sub def assert_almost_equal(self, a_val, b_val): flat_a = flatten(a_val) flat_b = flatten(b_val) self.assertEqual(len(flat_a), len(flat_b)) for a, b in zip(flatten(a_val), flatten(b_val)): self.assertAlmostEqual(a, b, places=1, msg=f"{a_val} != {b_val}") # ---------------------------------------------------------------------- async def test_variables_load_default_values(self): """Tests variables are initialized with attribute default values""" (result, error) = await ogts.load_test_file("TestGraphVariables.usda", use_caller_subdirectory=True) self.assertTrue(result, error) graph = omni.graph.core.get_graph_by_path("/World/ComputeGraph") ctxt = graph.get_default_graph_context() self.assert_almost_equal(graph.find_variable("var_bool").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_bool_array").get_array(ctxt), [1, 0, 1]) self.assert_almost_equal(graph.find_variable("var_color3d").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_color3d_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_color3f").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_color3f_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_color3h").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_color3h_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_color4d").get(ctxt), (1, 2, 3, 4)) self.assert_almost_equal( graph.find_variable("var_color4d_array").get_array(ctxt), [(1, 2, 3, 4), (11, 12, 13, 14)] ) self.assert_almost_equal(graph.find_variable("var_color4f").get(ctxt), (1, 2, 3, 4)) self.assert_almost_equal( graph.find_variable("var_color4f_array").get_array(ctxt), [(1, 2, 3, 4), (11, 12, 13, 14)] ) self.assert_almost_equal(graph.find_variable("var_color4h").get(ctxt), (1, 2, 3, 4)) self.assert_almost_equal( graph.find_variable("var_color4h_array").get_array(ctxt), [(1, 2, 3, 4), (11, 12, 13, 14)] ) self.assert_almost_equal(graph.find_variable("var_double").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_double2").get(ctxt), (1, 2)) self.assert_almost_equal(graph.find_variable("var_double2_array").get_array(ctxt), [(1, 2), (11, 12)]) self.assert_almost_equal(graph.find_variable("var_double3").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_double3_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_double4").get(ctxt), (1, 2, 3, 4)) self.assert_almost_equal( graph.find_variable("var_double4_array").get_array(ctxt), [(1, 2, 3, 4), (11, 12, 13, 14)] ) self.assert_almost_equal(graph.find_variable("var_double_array").get_array(ctxt), [1, 2]) self.assert_almost_equal(graph.find_variable("var_float").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_float2").get(ctxt), (1, 2)) self.assert_almost_equal(graph.find_variable("var_float2_array").get_array(ctxt), [(1, 2), (11, 12)]) self.assert_almost_equal(graph.find_variable("var_float3").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_float3_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_float4").get(ctxt), (1, 2, 3, 4)) self.assert_almost_equal( graph.find_variable("var_float4_array").get_array(ctxt), [(1, 2, 3, 4), (11, 12, 13, 14)] ) self.assert_almost_equal(graph.find_variable("var_float_array").get_array(ctxt), [1, 2]) self.assert_almost_equal( graph.find_variable("var_frame4d").get(ctxt), ((1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12), (13, 14, 15, 16)), ) self.assert_almost_equal( graph.find_variable("var_frame4d_array").get_array(ctxt), [ ((1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12), (13, 14, 15, 16)), ((11, 12, 13, 14), (15, 16, 17, 18), (19, 20, 21, 22), (23, 24, 25, 26)), ], ) self.assert_almost_equal(graph.find_variable("var_half").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_half2").get(ctxt), (1, 2)) self.assert_almost_equal(graph.find_variable("var_half2_array").get_array(ctxt), [(1, 2), (11, 12)]) self.assert_almost_equal(graph.find_variable("var_half3").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_half3_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_half4").get(ctxt), (1, 2, 3, 4)) self.assert_almost_equal( graph.find_variable("var_half4_array").get_array(ctxt), [(1, 2, 3, 4), (11, 12, 13, 14)] ) self.assert_almost_equal(graph.find_variable("var_half_array").get_array(ctxt), [1, 2]) self.assert_almost_equal(graph.find_variable("var_int").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_int2").get(ctxt), (1, 2)) self.assert_almost_equal(graph.find_variable("var_int2_array").get_array(ctxt), [(1, 2), (3, 4)]) self.assert_almost_equal(graph.find_variable("var_int3").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_int3_array").get_array(ctxt), [(1, 2, 3), (4, 5, 6)]) self.assert_almost_equal(graph.find_variable("var_int4").get(ctxt), (1, 2, 3, 4)) self.assert_almost_equal(graph.find_variable("var_int4_array").get_array(ctxt), [(1, 2, 3, 4), (5, 6, 7, 8)]) self.assert_almost_equal(graph.find_variable("var_int64").get(ctxt), 12345) self.assert_almost_equal(graph.find_variable("var_int64_array").get_array(ctxt), [12345, 23456]) self.assert_almost_equal(graph.find_variable("var_int_array").get_array(ctxt), [1, 2]) self.assert_almost_equal(graph.find_variable("var_matrix2d").get(ctxt), ((1, 2), (3, 4))) self.assert_almost_equal( graph.find_variable("var_matrix2d_array").get_array(ctxt), [((1, 2), (3, 4)), ((11, 12), (13, 14))] ) self.assert_almost_equal(graph.find_variable("var_matrix3d").get(ctxt), ((1, 2, 3), (4, 5, 6), (7, 8, 9))) self.assert_almost_equal( graph.find_variable("var_matrix3d_array").get_array(ctxt), [((1, 2, 3), (4, 5, 6), (7, 8, 9)), ((11, 12, 13), (14, 15, 16), (17, 18, 19))], ) self.assert_almost_equal( graph.find_variable("var_matrix4d").get(ctxt), ((1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12), (13, 14, 15, 16)), ) self.assert_almost_equal( graph.find_variable("var_matrix4d_array").get_array(ctxt), [ ((1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12), (13, 14, 15, 16)), ((11, 12, 13, 14), (15, 16, 17, 18), (19, 20, 21, 22), (23, 24, 25, 26)), ], ) self.assert_almost_equal(graph.find_variable("var_normal3d").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_normal3d_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_normal3f").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_normal3f_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_normal3h").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_normal3h_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_point3d").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_point3d_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_point3f").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_point3f_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_point3h").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_point3h_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) # note the reordering of the quaternion layout self.assert_almost_equal(graph.find_variable("var_quatd").get(ctxt), (2, 3, 4, 1)) self.assert_almost_equal( graph.find_variable("var_quatd_array").get_array(ctxt), [(2, 3, 4, 1), (12, 13, 14, 11)] ) self.assert_almost_equal(graph.find_variable("var_quatf").get(ctxt), (2, 3, 4, 1)) self.assert_almost_equal( graph.find_variable("var_quatf_array").get_array(ctxt), [(2, 3, 4, 1), (12, 13, 14, 11)] ) self.assert_almost_equal(graph.find_variable("var_quath").get(ctxt), (2, 3, 4, 1)) self.assert_almost_equal( graph.find_variable("var_quath_array").get_array(ctxt), [(2, 3, 4, 1), (12, 13, 14, 11)] ) # strings use get_array, not get self.assertEqual(graph.find_variable("var_string").get_array(ctxt), "Rey") self.assert_almost_equal(graph.find_variable("var_texcoord2d").get(ctxt), (1, 2)) self.assert_almost_equal(graph.find_variable("var_texcoord2d_array").get_array(ctxt), [(1, 2), (11, 12)]) self.assert_almost_equal(graph.find_variable("var_texcoord2f").get(ctxt), (1, 2)) self.assert_almost_equal(graph.find_variable("var_texcoord2f_array").get_array(ctxt), [(1, 2), (11, 12)]) self.assert_almost_equal(graph.find_variable("var_texcoord2h").get(ctxt), (1, 2)) self.assert_almost_equal(graph.find_variable("var_texcoord2h_array").get_array(ctxt), [(1, 2), (11, 12)]) self.assert_almost_equal(graph.find_variable("var_texcoord3d").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_texcoord3d_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_texcoord3f").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_texcoord3f_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_texcoord3h").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_texcoord3h_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_timecode").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_timecode_array").get_array(ctxt), [1, 2]) self.assert_almost_equal(graph.find_variable("var_token").get(ctxt), "Sith") self.assert_almost_equal(graph.find_variable("var_token_array").get_array(ctxt), ["Kylo", "Ren"]) self.assert_almost_equal(graph.find_variable("var_uchar").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_uchar_array").get_array(ctxt), [1, 2]) self.assert_almost_equal(graph.find_variable("var_uint").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_uint64").get(ctxt), 1) self.assert_almost_equal(graph.find_variable("var_uint64_array").get_array(ctxt), [1, 2]) self.assert_almost_equal(graph.find_variable("var_uint_array").get_array(ctxt), [1, 2]) self.assert_almost_equal(graph.find_variable("var_vector3d").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_vector3d_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_vector3f").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_vector3f_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) self.assert_almost_equal(graph.find_variable("var_vector3h").get(ctxt), (1, 2, 3)) self.assert_almost_equal(graph.find_variable("var_vector3h_array").get_array(ctxt), [(1, 2, 3), (11, 12, 13)]) # ------------------------------------------------------------------------- async def test_variables_create_remove_stress_test(self): """Stress test the creation, removal and query of variables""" controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ], }, ) context = graph.get_default_graph_context() # get/set the active variable (FC) def active_set(var, val): nonlocal context var.set(context, val) def active_get(var): nonlocal context return var.get(context) # get/set the default value def default_set(var, val): og.Controller.set_variable_default_value(var, val) def default_get(var): return og.Controller.get_variable_default_value(var) # include setting the default value and getting the active value func_list = [(active_get, active_set), (default_get, default_set), (active_get, default_set)] # loop through default and active get, set values methods for (getter, setter) in func_list: for i in range(1, 10): variable = graph.create_variable("TestVariable", og.Type(og.BaseDataType.FLOAT)) setter(variable, float(i)) self.assertEqual(getter(variable), float(i)) graph.remove_variable(variable) self.assertFalse(bool(variable)) self.assertIsNone(graph.find_variable("TestVariable")) # ------------------------------------------------------------------------- async def test_variables_write_update_on_graph(self): """Tests that the updating of variables occurs as expected""" # Create a graph that writes the give variable controller = og.Controller() keys = og.Controller.Keys # [OnTick] --> [WriteVariable(2)] (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("WriteVariable", "omni.graph.core.WriteVariable"), ("ConstInt", "omni.graph.nodes.ConstantInt"), ], keys.CONNECT: [ ("OnTick.outputs:tick", "WriteVariable.inputs:execIn"), ("ConstInt.inputs:value", "WriteVariable.inputs:value"), ], keys.CREATE_VARIABLES: [("TestVariable", og.Type(og.BaseDataType.INT))], keys.SET_VALUES: [ ("OnTick.inputs:onlyPlayback", False), ("ConstInt.inputs:value", 2), ("WriteVariable.inputs:variableName", "TestVariable"), ], }, ) variable = graph.find_variable("TestVariable") og.Controller.set_variable_default_value(variable, 1) await controller.evaluate(graph) # USD value remains at 1 self.assertEqual(og.Controller.get_variable_default_value(variable), 1) # Fabric value remains at 2 self.assertEqual(variable.get(graph.get_default_graph_context()), 2) # change default value - variable value should change og.Controller.set_variable_default_value(variable, 3) self.assertEqual(og.Controller.get_variable_default_value(variable), 3) self.assertEqual(variable.get(graph.get_default_graph_context()), 3) await controller.evaluate(graph) # FC value should change again self.assertEqual(og.Controller.get_variable_default_value(variable), 3) self.assertEqual(variable.get(graph.get_default_graph_context()), 2) # ------------------------------------------------------------------------- async def __create_instances(self, graph_path: str, prim_names: List[str]): """Helper method to create graph instances""" stage = omni.usd.get_context().get_stage() for prim_name in prim_names: prim = stage.DefinePrim(prim_name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim_name, graph_path) self.assertTrue(prim.GetRelationship("omniGraphs").IsValid()) # need to wait a frame for USD changes to apply. This could use an immediate # python API. await omni.kit.app.get_app().next_update_async() # ------------------------------------------------------------------------- async def test_get_set_variable_instance_values(self): """Tests for retrieving and setting variable instance values""" # create the graph controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_VARIABLES: [ ("float_var", og.Type(og.BaseDataType.FLOAT)), ("token_var", og.Type(og.BaseDataType.TOKEN)), ("array_var", og.Type(og.BaseDataType.INT, array_depth=1)), ("tuple_var", og.Type(og.BaseDataType.FLOAT, 3, 0)), ], }, ) # create the instances prim_names = [f"/World/Prim_{i}" for i in range(1, 10)] await self.__create_instances(self._graph_path, prim_names) context = graph.get_default_graph_context() float_var = graph.find_variable("float_var") token_var = graph.find_variable("token_var") array_var = graph.find_variable("array_var") tuple_var = graph.find_variable("tuple_var") # set the default variable values. This should be promoted to each instance og.Controller.set_variable_default_value(float_var, -1.0) og.Controller.set_variable_default_value(token_var, "token_var") og.Controller.set_variable_default_value(array_var, [1.0, 1.0, 1.0, 1.0]) og.Controller.set_variable_default_value(tuple_var, (1.0, 1.0, 1.0)) # validate all the instances have the default value for prim_name in prim_names: self.assertEquals(float_var.get(context, instance_path=prim_name), -1.0) self.assertEquals(token_var.get(context, instance_path=prim_name), "token_var") self.assert_almost_equal(array_var.get_array(context, instance_path=prim_name), [1.0, 1.0, 1.0, 1.0]) self.assert_almost_equal(tuple_var.get(context, instance_path=prim_name), (1.0, 1.0, 1.0)) # set the variables i = 0 for prim_name in prim_names: float_var.set(context, instance_path=prim_name, value=float(i)) token_var.set(context, instance_path=prim_name, value=prim_name) array_var.set(context, instance_path=prim_name, value=[i, i + 1, i + 2, i + 3]) tuple_var.set(context, instance_path=prim_name, value=(float(i), float(i + 1), float(i + 2))) i = i + 1 # retrieve the variables i = 0 for prim_name in prim_names: self.assertEquals(float_var.get(context, instance_path=prim_name), float(i)) self.assertEquals(token_var.get(context, instance_path=prim_name), prim_name) self.assert_almost_equal(array_var.get_array(context, instance_path=prim_name), [i, i + 1, i + 2, i + 3]) self.assert_almost_equal( tuple_var.get(context, instance_path=prim_name), (float(i), float(i + 1), float(i + 2)) ) i = i + 1 # ------------------------------------------------------------------------- async def test_invalid_variable_access_throws(self): """Tests that invalid variable access throws errors""" # create the graph controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_VARIABLES: [ ("float_var", og.Type(og.BaseDataType.FLOAT)), ("array_var", og.Type(og.BaseDataType.FLOAT, array_depth=1)), ("invalid_var", og.Type(og.BaseDataType.FLOAT)), ] }, ) # create an instance context = graph.get_default_graph_context() valid_prim_name = "/World/ValidInstance" invalid_instance_name = "/World/InvalidInstance" await self.__create_instances(self._graph_path, [valid_prim_name]) float_var = graph.find_variable("float_var") array_var = graph.find_variable("array_var") invalid_var = graph.find_variable("invalid_var") graph.remove_variable(invalid_var) og.Controller.set_variable_default_value(float_var, 1.0) self.assertEquals(float_var.get(context), 1.0) self.assertEquals(float_var.get(context, instance_path=valid_prim_name), 1.0) # invalid variable with self.assertRaises(TypeError): invalid_var.get(context) # invalid variable and instance with self.assertRaises(TypeError): invalid_var.get(context, instance_path=invalid_instance_name) # invalid instance, valid variable with self.assertRaises(TypeError): float_var.get(context, instance_path=invalid_instance_name) # invalid instance with array variable with self.assertRaises(TypeError): array_var.get(context, instance_path=invalid_instance_name) # ------------------------------------------------------------------------- def _get_ogtypes_for_testing(self) -> Set[og.Type]: """Get a list of types to be used for testing.""" numerics = og.AttributeType.get_unions()["numerics"] type_set = {og.AttributeType.type_from_ogn_type_name(n_type) for n_type in numerics}.union( { og.Type(og.BaseDataType.UCHAR, 1, 1, og.AttributeRole.TEXT), og.Type(og.BaseDataType.TOKEN, 1, 0, og.AttributeRole.NONE), } ) # transform converts to matrix when used in a variable type_set.remove(og.Type(og.BaseDataType.DOUBLE, 16, 1, og.AttributeRole.TRANSFORM)) type_set.remove(og.Type(og.BaseDataType.DOUBLE, 16, 0, og.AttributeRole.TRANSFORM)) return type_set # ------------------------------------------------------------------------- async def test_changevariabletype_command(self): """ Validates the ChangeVariableType Command property changes the type of the variable """ controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_VARIABLES: [ ("var", og.Type(og.BaseDataType.FLOAT)), ] }, ) types = self._get_ogtypes_for_testing() variable = graph.find_variable("var") for og_type in types: og.cmds.ChangeVariableType(variable=variable, variable_type=og_type) self.assertEqual(variable.type, og_type) # ------------------------------------------------------------------------- async def test_changevariabletype_command_undo_redo(self): """ Validates the change variable type command applies and restores default values as expected with undo and redo """ controller = og.Controller() keys = og.Controller.Keys original_type = og.Type(og.BaseDataType.FLOAT) (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_VARIABLES: [ ("var", original_type), ] }, ) types = self._get_ogtypes_for_testing() types.remove(original_type) variable = graph.find_variable("var") default_value = 5.0 og.Controller.set_variable_default_value(variable, default_value) # validate not changing type doesn't erase the default value og.cmds.ChangeVariableType(variable=variable, variable_type=original_type) self.assertEqual(variable.type, original_type) self.assertEqual(og.Controller.get_variable_default_value(variable), default_value) for og_type in types: og.cmds.ChangeVariableType(variable=variable, variable_type=og_type) self.assertEqual(variable.type, og_type) self.assertIsNone(og.Controller.get_variable_default_value(variable)) # on undo, when the type changes, the default value is removed omni.kit.undo.undo() self.assertEqual(variable.type, original_type) self.assertEqual(og.Controller.get_variable_default_value(variable), default_value) # on redo, the type and default value are restored omni.kit.undo.redo() self.assertEqual(variable.type, og_type) self.assertIsNone(og.Controller.get_variable_default_value(variable)) omni.kit.undo.undo() # ------------------------------------------------------------------------- async def test_changevariabletype_command_on_separate_layer(self): """ Validates the behaviour of change variable type command on different layers """ usd_context = omni.usd.get_context() stage = usd_context.get_stage() root_layer = stage.GetRootLayer() identifier1 = LayerUtils.create_sublayer(root_layer, 0, "").identifier identifier2 = LayerUtils.create_sublayer(root_layer, 1, "").identifier identifier3 = LayerUtils.create_sublayer(root_layer, 2, "").identifier LayerUtils.set_edit_target(stage, identifier2) # create a graph on the middle layer controller = og.Controller() keys = og.Controller.Keys original_type = og.Type(og.BaseDataType.FLOAT) (graph, _, _, _) = controller.edit( self._graph_path, { keys.CREATE_VARIABLES: [ ("var", original_type), ] }, ) # validate the type can be changed variable = graph.find_variable("var") og_type = og.Type(og.BaseDataType.INT) og.cmds.ChangeVariableType(variable=variable, variable_type=og_type) self.assertEqual(variable.type, og_type) # change the edit layer to a type with a stronger opinion and validate the change still works LayerUtils.set_edit_target(stage, identifier1) variable = graph.find_variable("var") og_type = og.Type(og.BaseDataType.DOUBLE) og.cmds.ChangeVariableType(variable=variable, variable_type=og_type) self.assertEqual(variable.type, og_type) # change the edit layer to a type with a weaker opinion and validate the change fails LayerUtils.set_edit_target(stage, identifier3) variable = graph.find_variable("var") og_type = og.Type(og.BaseDataType.INT, 2) omni.kit.commands.set_logging_enabled(False) (_, succeeded) = og.cmds.ChangeVariableType(variable=variable, variable_type=og_type) omni.kit.commands.set_logging_enabled(True) self.assertFalse(succeeded) # ----------------------------------------------------------------------------------------- async def test_changevariabletype_changes_resolution(self): """ Validate that changing a variable type changes the resolution of node types """ controller = og.Controller() keys = og.Controller.Keys original_type = og.Type(og.BaseDataType.FLOAT) (graph, nodes, _, _) = controller.edit( self._graph_path, { keys.CREATE_NODES: [ ("ReadVariable", "omni.graph.core.ReadVariable"), ], keys.CREATE_VARIABLES: [ ("var", original_type), ], keys.SET_VALUES: [ ("ReadVariable.inputs:variableName", "var"), ], }, ) node = nodes[0] variable = graph.find_variable("var") await og.Controller.evaluate(graph) self.assertEqual(node.get_attribute("outputs:value").get_resolved_type(), original_type) og_type = og.Type(og.BaseDataType.INT, 2) omni.kit.commands.set_logging_enabled(False) await og.Controller.evaluate(graph) og.cmds.ChangeVariableType(variable=variable, variable_type=og_type) self.assertEqual(node.get_attribute("outputs:value").get_resolved_type(), og_type)
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_api.py
"""Testing the stability of the API in this module""" import omni.graph.core.tests as ogts import omni.graph.test as ogtest from omni.graph.tools.tests.internal_utils import _check_module_api_consistency, _check_public_api_contents # ====================================================================== class _TestOmniGraphTestApi(ogts.OmniGraphTestCase): _UNPUBLISHED = ["bindings", "ogn", "tests"] async def test_api(self): _check_module_api_consistency(ogtest, self._UNPUBLISHED) # noqa: PLW0212 _check_module_api_consistency(ogtest.tests, is_test_module=True) # noqa: PLW0212 async def test_api_features(self): """Test that the known public API features continue to exist""" _check_public_api_contents(ogtest, [], self._UNPUBLISHED, only_expected_allowed=True) # noqa: PLW0212 _check_public_api_contents(ogtest.tests, [], [], only_expected_allowed=True) # noqa: PLW0212
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_topology_commands.py
# noqa: PLC0302 """Tests for the various OmniGraph commands""" from typing import List, Tuple import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.test import omni.usd from pxr import OmniGraphSchemaTools, Usd class TestTopologyCommands(ogts.OmniGraphTestCase): # ---------------------------------------------------------------------- async def test_create_graph_global(self): """ test the CreateGraphAsNodeCommand with global graphs """ # This is the main command we'll use # to create new graphs for users going forward. These graphs are top level graphs, and are wrapped by nodes # in an overall global container graph # We also leverage this setup to test the creation of dynamic attributes with USD backing orchestration_graphs = og.get_global_orchestration_graphs() # 4, because we have 3 separate pipeline stages currently (simulation, pre-render, post-render, on-demand) self.assertEqual(len(orchestration_graphs), 4) orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage( og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_POSTRENDER ) self.assertEqual(len(orchestration_graphs), 1) self.assertEqual(orchestration_graphs[0].get_path_to_graph(), "/__postRenderRootGraph") self.assertEqual( orchestration_graphs[0].get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_POSTRENDER ) self.assertEqual(orchestration_graphs[0].get_graph_backing_type(), og.GraphBackingType.GRAPH_BACKING_TYPE_NONE) self.assertEqual( orchestration_graphs[0].evaluation_mode, og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_AUTOMATIC ) orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage( og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION ) self.assertEqual(len(orchestration_graphs), 1) orchestration_graph = orchestration_graphs[0] (result, wrapper_node) = og.cmds.CreateGraphAsNode( graph=orchestration_graph, node_name="my_push_graph", graph_path="/World/my_push_graph", evaluator_name="push", is_global_graph=True, backed_by_usd=True, fc_backing_type=og.GraphBackingType.GRAPH_BACKING_TYPE_FABRIC_SHARED, pipeline_stage=og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION, evaluation_mode=og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_STANDALONE, ) self.assertTrue(result) self.assertTrue(wrapper_node.is_valid()) self.assertEqual(wrapper_node.get_prim_path(), "/__simulationRootGraph/_World_my_push_graph") wrapped_graph = wrapper_node.get_wrapped_graph() self.assertTrue(wrapped_graph.is_valid()) self.assertEqual(wrapped_graph.get_path_to_graph(), "/World/my_push_graph") self.assertEqual(wrapped_graph.get_graph_backing_type(), og.GraphBackingType.GRAPH_BACKING_TYPE_FABRIC_SHARED) self.assertEqual(wrapped_graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION) self.assertEqual(wrapped_graph.evaluation_mode, og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_STANDALONE) (_, (_, counter_node), _, _) = og.Controller.edit( wrapped_graph, { og.Controller.Keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("Counter", "omni.graph.action.Counter"), ], og.Controller.Keys.SET_VALUES: [("OnTick.inputs:onlyPlayback", False)], og.Controller.Keys.CONNECT: [ ("OnTick.outputs:tick", "Counter.inputs:execIn"), ], }, ) # What we should see in response is that the counter is incrementing await og.Controller.evaluate(wrapped_graph) outputs_attr_value1 = og.Controller.get(counter_node.get_attribute("outputs:count")) await og.Controller.evaluate(wrapped_graph) outputs_attr_value2 = og.Controller.get(counter_node.get_attribute("outputs:count")) self.assertGreater(outputs_attr_value2, outputs_attr_value1) # test dynamic attribute creation, with USD backing: # try setting a simple value and retrieving it counter_node.create_attribute( "inputs:test_create1", og.Type(og.BaseDataType.INT), og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, None, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "", ) test_create1_attr = counter_node.get_attribute("inputs:test_create1") self.assertTrue(test_create1_attr.is_valid()) self.assertTrue(test_create1_attr.is_dynamic()) og.cmds.SetAttr(attr=test_create1_attr, value=123) test_create1_attr_value = og.Controller.get(test_create1_attr) self.assertEqual(test_create1_attr_value, 123) self.assertEqual(test_create1_attr.get_port_type(), og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT) # try setting a tuple value and retrieving it counter_node.create_attribute( "inputs:test_create2", og.Type(og.BaseDataType.INT, 3), og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, None, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "", ) test_create2_attr = counter_node.get_attribute("inputs:test_create2") self.assertTrue(test_create2_attr.is_valid()) og.cmds.SetAttr(attr=test_create2_attr, value=(1, 2, 3)) test_create2_attr_value = og.Controller.get(test_create2_attr) self.assertEqual(test_create2_attr_value[0], 1) self.assertEqual(test_create2_attr_value[1], 2) self.assertEqual(test_create2_attr_value[2], 3) # try setting a tuple array value and retrieving it counter_node.create_attribute( "inputs:test_create3", og.Type(og.BaseDataType.INT, 3, 1), og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, None, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "", ) test_create3_attr = counter_node.get_attribute("inputs:test_create3") self.assertTrue(test_create3_attr.is_valid()) og.cmds.SetAttr(attr=test_create3_attr, value=[[1, 2, 3], [4, 5, 6]]) test_create3_attr_value = og.Controller.get(test_create3_attr) v1 = test_create3_attr_value[1] self.assertEqual(v1[0], 4) self.assertEqual(v1[1], 5) self.assertEqual(v1[2], 6) # try creating an execution attribute counter_node.create_attribute( "inputs:test_create4", og.Type(og.BaseDataType.UINT, 1, 0, og.AttributeRole.EXECUTION), og.AttributePortType.ATTRIBUTE_PORT_TYPE_INPUT, None, og.ExtendedAttributeType.EXTENDED_ATTR_TYPE_REGULAR, "", ) test_create4_attr = counter_node.get_attribute("inputs:test_create4") self.assertTrue(test_create4_attr.is_valid()) # ---------------------------------------------------------------------- async def test_undo_redo_connection(self): """Test undo and redo of node creation and connection""" controller = og.Controller() keys = og.Controller.Keys (graph, _, _, _) = controller.edit("/TestGraph") async def create_and_connect(ix): controller.edit( graph, { keys.CREATE_NODES: [ (f"SimpleA{ix}", "omni.graph.tutorials.SimpleData"), (f"SimpleB{ix}", "omni.graph.tutorials.SimpleData"), ] }, ) await controller.evaluate(graph) controller.edit(graph, {keys.CONNECT: (f"SimpleA{ix}.outputs:a_float", f"SimpleB{ix}.inputs:a_float")}) await controller.evaluate(graph) await create_and_connect(1) # undo the connection omni.kit.undo.undo() # undo the node creation omni.kit.undo.undo() # redo node creation omni.kit.undo.redo() # redo connection omni.kit.undo.redo() # undo the connection omni.kit.undo.undo() # undo the node creation omni.kit.undo.undo() # -------------------------------------------------------------------------------------------------------------- def __confirm_connection_counts(self, attribute: og.Attribute, upstream_count: int, downstream_count: int): """Check that the given attribute has the proscribed number of upstream and downstream connections""" self.assertEqual(attribute.get_upstream_connection_count(), upstream_count) self.assertEqual(attribute.get_downstream_connection_count(), downstream_count) # ---------------------------------------------------------------------- async def test_disconnect_all_attrs(self): """ Test the DisconnectAllAttrsCommand. This command takes a single attribute as parameter and disconnects all incoming and outgoing connections on it. """ controller = og.Controller() keys = og.Controller.Keys # # Source --> Sink --> InOut # \ \ / # \ -----/ # --> FanOut (graph, (source_node, sink_node, fanout_node, inout_node), _, _,) = controller.edit( "/TestGraph", { keys.CREATE_NODES: [ ("Source", "omni.graph.tutorials.SimpleData"), ("Sink", "omni.graph.tutorials.SimpleData"), ("FanOut", "omni.graph.tutorials.SimpleData"), ("InOut", "omni.graph.tutorials.SimpleData"), ], keys.CONNECT: [ ("Source.outputs:a_bool", "Sink.inputs:a_bool"), ("Source.outputs:a_bool", "FanOut.inputs:a_bool"), ("Sink.inputs:a_bool", "InOut.inputs:a_bool"), ], }, ) def _get_attributes(): return ( og.Controller.attribute("outputs:a_bool", ("Source", graph)), og.Controller.attribute("inputs:a_bool", ("Sink", graph)), og.Controller.attribute("inputs:a_bool", ("FanOut", graph)), og.Controller.attribute("inputs:a_bool", ("InOut", graph)), ) source_output, sink_input, fanout_input, inout_input = _get_attributes() # The sequence tests successful restoration when everything is deleted and restored in groups; # DisconnectAll(Source.outputs:a_bool) # Removes Source->Sink and Source->FanOut # DisconnectAll(Sink.inputs:a_bool) # Removes Sink->InOut # Delete Source, Sink, InOut, FanOut # undo deletes # undo second disconnect # Restores Sink->InOut # undo first disconnect # Restores Source->Sink and Source->FanOut # redo and undo to go the beginning and get back here again # DisconnectAll(Sink.inputs:a_bool) # Removes Sink->InOut and Source->Sink # undo og.cmds.DisconnectAllAttrs(attr=source_output, modify_usd=True) self.__confirm_connection_counts(source_output, 0, 0) self.__confirm_connection_counts(sink_input, 0, 1) self.__confirm_connection_counts(fanout_input, 0, 0) self.__confirm_connection_counts(inout_input, 1, 0) og.cmds.DisconnectAllAttrs(attr=sink_input, modify_usd=True) self.__confirm_connection_counts(source_output, 0, 0) self.__confirm_connection_counts(sink_input, 0, 0) self.__confirm_connection_counts(fanout_input, 0, 0) self.__confirm_connection_counts(inout_input, 0, 0) og.cmds.DeleteNode(graph=graph, node_path=source_node.get_prim_path(), modify_usd=True) og.cmds.DeleteNode(graph=graph, node_path=sink_node.get_prim_path(), modify_usd=True) og.cmds.DeleteNode(graph=graph, node_path=fanout_node.get_prim_path(), modify_usd=True) og.cmds.DeleteNode(graph=graph, node_path=inout_node.get_prim_path(), modify_usd=True) omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() # May have lost the objects through the undo process so get them again source_output, sink_input, fanout_input, inout_input = _get_attributes() self.__confirm_connection_counts(source_output, 0, 0) self.__confirm_connection_counts(sink_input, 0, 1) self.__confirm_connection_counts(fanout_input, 0, 0) self.__confirm_connection_counts(inout_input, 1, 0) omni.kit.undo.undo() self.__confirm_connection_counts(source_output, 0, 2) self.__confirm_connection_counts(sink_input, 1, 1) self.__confirm_connection_counts(fanout_input, 1, 0) self.__confirm_connection_counts(inout_input, 1, 0) omni.kit.undo.redo() omni.kit.undo.redo() omni.kit.undo.redo() omni.kit.undo.redo() omni.kit.undo.redo() omni.kit.undo.redo() omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() # May have lost the objects through the undo process so get them again source_output, sink_input, fanout_input, inout_input = _get_attributes() self.__confirm_connection_counts(source_output, 0, 2) self.__confirm_connection_counts(sink_input, 1, 1) self.__confirm_connection_counts(fanout_input, 1, 0) self.__confirm_connection_counts(inout_input, 1, 0) og.cmds.DisconnectAllAttrs(attr=sink_input, modify_usd=True) self.__confirm_connection_counts(source_output, 0, 1) self.__confirm_connection_counts(sink_input, 0, 0) self.__confirm_connection_counts(fanout_input, 1, 0) self.__confirm_connection_counts(inout_input, 0, 0) omni.kit.undo.undo() self.__confirm_connection_counts(source_output, 0, 2) self.__confirm_connection_counts(sink_input, 1, 1) self.__confirm_connection_counts(fanout_input, 1, 0) self.__confirm_connection_counts(inout_input, 1, 0) # ---------------------------------------------------------------------- async def test_change_pipeline_stage_invalid(self): """ Test the ChangePipelineStageCommand when given an invalid pipeline stage """ controller = og.Controller() (graph, _, _, _) = controller.edit("/World/TestGraph") self.assertEqual(graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION) # Check that we are not allowed to set pipeline stage to unknown og.cmds.ChangePipelineStage(graph=graph, new_pipeline_stage=og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_UNKNOWN) self.assertEqual(graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION) # Check that setting the same pipeline stage does nothing og.cmds.ChangePipelineStage( graph=graph, new_pipeline_stage=og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION ) self.assertEqual(graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION) # ------------------------------------------------------------------------- async def next_frame(self, node) -> bool: """Helper method that ticks the next frame, returning how many times the node was ticked""" start_count = node.get_compute_count() await omni.kit.app.get_app().next_update_async() end_count = node.get_compute_count() return end_count - start_count # ------------------------------------------------------------------------- async def test_evaluation_modes_command(self): """Test evaluation modes using instanced and non-instanced graphs""" _graph_path = "/World/TestGraph" __graph_count = 0 def create_simple_graph(path) -> Tuple[og.Graph, List[og.Node]]: nonlocal __graph_count controller = og.Controller() keys = og.Controller.Keys (graph, nodes, _, _) = controller.edit( f"{path}_{__graph_count}", { keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ] }, ) __graph_count += 1 return (graph, nodes) def create_graph_instance(name: str, graph: og.Graph) -> Usd.Prim: """Creates an instance of the given graph""" stage = omni.usd.get_context().get_stage() prim = stage.DefinePrim(name) OmniGraphSchemaTools.applyOmniGraphAPI(stage, prim.GetPath(), graph.get_path_to_graph()) return prim stage = omni.usd.get_context().get_stage() (graph, nodes) = create_simple_graph(_graph_path) timeline = omni.timeline.get_timeline_interface() timeline.set_target_framerate(timeline.get_time_codes_per_seconds()) timeline.set_start_time(0) timeline.set_end_time(1000) timeline.play() node = nodes[0] self.assertEquals(graph.evaluation_mode, og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_AUTOMATIC) # in standalone mode, the node should tick ticks = await self.next_frame(node) self.assertEquals(ticks, 1) # in asset mode it should not og.cmds.SetEvaluationMode( graph=graph, new_evaluation_mode=og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_INSTANCED ) ticks = await self.next_frame(node) self.assertEquals(ticks, 0) # create graph instances prims = [create_graph_instance(f"/World/Prim{i}", graph) for i in range(0, 2)] # automatic mode reference mode should evaluate once (vectorized) for all instances # the returned compute count should be equal to the number of instances though expected_instanced_ticks = 2 ticks = await self.next_frame(node) self.assertEquals(ticks, expected_instanced_ticks) og.cmds.SetEvaluationMode( graph=graph, new_evaluation_mode=og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_AUTOMATIC ) ticks = await self.next_frame(node) self.assertEquals(ticks, expected_instanced_ticks) # standalone mode should run itself and not the prims og.cmds.SetEvaluationMode( graph=graph, new_evaluation_mode=og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_STANDALONE ) ticks = await self.next_frame(node) self.assertEquals(ticks, 1) # delete the prims, standalone should now run for p in prims: stage.RemovePrim(p.GetPath()) ticks = await self.next_frame(node) self.assertEquals(ticks, 1) omni.timeline.get_timeline_interface().stop() # ---------------------------------------------------------------------- async def test_evaluation_modes_command_undo_redo(self): """Tests the evaluation mode command has the correct value when undo and redo are applied""" controller = og.Controller() (graph, _, _, _) = controller.edit("/TestGraph") # validate the correct default default_value = og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_AUTOMATIC self.assertEquals(graph.evaluation_mode, og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_AUTOMATIC) for value in [ og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_AUTOMATIC, og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_STANDALONE, og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_INSTANCED, ]: og.cmds.SetEvaluationMode(graph=graph, new_evaluation_mode=value) self.assertEquals(graph.evaluation_mode, value) omni.kit.undo.undo() self.assertEquals(graph.evaluation_mode, default_value) omni.kit.undo.redo() self.assertEquals(graph.evaluation_mode, value) omni.kit.undo.undo() self.assertEquals(graph.evaluation_mode, default_value) # ---------------------------------------------------------------------- async def test_variable_commands(self): controller = og.Controller() (graph, _, _, _) = controller.edit("/TestGraph") variable_name = "TestVariable" og.cmds.CreateVariable( graph=graph, variable_name=variable_name, variable_type=og.Type(og.BaseDataType.INT), graph_context=graph.get_default_graph_context(), variable_value=5, ) variable = graph.find_variable(variable_name) self.assertTrue(variable is not None) self.assertTrue(variable.valid) self.assertEqual(variable.type, og.Type(og.BaseDataType.INT)) self.assertEqual(og.Controller.get_variable_default_value(variable), 5) # undo the command and verify that the variable is no longer in the graph omni.kit.undo.undo() variable = graph.find_variable(variable_name) self.assertTrue(variable is None) # redo the command and verify that the variable has been restored in the graph omni.kit.undo.redo() variable = graph.find_variable(variable_name) self.assertTrue(variable is not None) self.assertTrue(variable.valid) self.assertEqual(variable.type, og.Type(og.BaseDataType.INT)) self.assertEqual(og.Controller.get_variable_default_value(variable), 5) test_tooltip = "test tooltip" og.cmds.SetVariableTooltip(variable=variable, tooltip=test_tooltip) self.assertEqual(variable.tooltip, test_tooltip) # undo the command and verify that the variable tooltip is cleared omni.kit.undo.undo() self.assertEqual(variable.tooltip, "") # redo the command and verify that the variable tooltip is restored omni.kit.undo.redo() self.assertEqual(variable.tooltip, test_tooltip) og.cmds.RemoveVariable(graph=graph, variable=variable, graph_context=graph.get_default_graph_context()) variable = graph.find_variable(variable_name) self.assertTrue(variable is None) # undo the command and verify that the variable has been restored in the graph omni.kit.undo.undo() variable = graph.find_variable(variable_name) self.assertTrue(variable is not None) self.assertTrue(variable.valid) self.assertEqual(variable.type, og.Type(og.BaseDataType.INT)) self.assertEqual(og.Controller.get_variable_default_value(variable), 5) # redo the command and verify that the variable is no longer in the graph omni.kit.undo.redo() variable = graph.find_variable(variable_name) self.assertTrue(variable is None) # ---------------------------------------------------------------------- async def test_change_pipeline_stage(self): """ Test the ChangePipelineStageCommand """ controller = og.Controller() keys = og.Controller.Keys (graph, create_nodes, _, _) = controller.edit( "/World/TestGraph", { keys.EXPOSE_PRIMS: [ (og.Controller.PrimExposureType.AS_WRITABLE, "/World/Cube", "Write"), ], keys.CREATE_PRIMS: [ ("/World/Cube", {"size": ("int", 1)}), ], keys.CREATE_NODES: [ ("Add", "omni.graph.nodes.Add"), ("Read", "omni.graph.nodes.ReadPrimsBundle"), ("ExtractPrim", "omni.graph.nodes.ExtractPrim"), ("ExtractBundle", "omni.graph.nodes.ExtractBundle"), ], keys.SET_VALUES: [("ExtractPrim.inputs:primPath", "/World/Cube")], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractPrim.inputs:prims"), ("ExtractPrim.outputs_primBundle", "ExtractBundle.inputs:bundle"), ], }, ) stage = omni.usd.get_context().get_stage() input_prim_prop = stage.GetPropertyAtPath("/World/TestGraph/Read.inputs:prims") omni.kit.commands.execute("AddRelationshipTarget", relationship=input_prim_prop, target="/World/Cube") await controller.evaluate(graph) # check the correctness of the output bundles read_node = create_nodes[1] extract_prim = create_nodes[2] extract_node = create_nodes[3] # IBundle2 factory factory = og.IBundleFactory.create() # Read Prim outputs multiple primitives in bundle read_bundle = graph.get_default_graph_context().get_output_bundle(read_node, "outputs_primsBundle") self.assertTrue(read_bundle.is_valid()) read_bundle2 = factory.get_bundle(graph.get_default_graph_context(), read_bundle) self.assertTrue(read_bundle2.valid) # check number of children from Read Prim self.assertEqual(read_bundle2.get_child_bundle_count(), 1) # Extract Bundle gets content of the child bundle from Read Prim extract_bundle = graph.get_default_graph_context().get_bundle( "/World/TestGraph/ExtractBundle/outputs_passThrough" ) self.assertTrue(extract_bundle.is_valid()) extract_bundle2 = factory.get_bundle(graph.get_default_graph_context(), extract_bundle) self.assertTrue(extract_bundle2.valid) extract_bundle = graph.get_default_graph_context().get_output_bundle(extract_node, "outputs_passThrough") self.assertTrue(extract_bundle.is_valid()) extract_bundle2 = factory.get_bundle(graph.get_default_graph_context(), extract_bundle) self.assertTrue(extract_bundle2.valid) # Check number of children and attributes for Extract Bundle self.assertEqual(extract_bundle2.get_child_bundle_count(), 0) attrib_names = extract_bundle2.get_attribute_names() self.assertTrue(len(attrib_names) > 0) extract_node_controller = og.Controller(og.Controller.attribute("inputs:primPath", extract_prim)) controller.edit( "/World/TestGraph", { keys.CONNECT: [ ("ExtractBundle.outputs:size", "Add.inputs:a"), ("ExtractBundle.outputs:size", "Add.inputs:b"), ("Add.outputs:sum", "Write.inputs:size"), ] }, ) extract_node = create_nodes[3] extract_node_controller = og.Controller(og.Controller.attribute("outputs:size", extract_node)) # Initially the graph is in simulation pipeline stage self.assertEqual(graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION) # Check that graph.evaluate() causes graph evaluation graph.evaluate() self.assertEqual(extract_node_controller.get(), 1) graph.evaluate() self.assertEqual(extract_node_controller.get(), 2) graph.evaluate() self.assertEqual(extract_node_controller.get(), 4) # Check that omni.kit.app.get_app().next_update_async() also causes graph evaluation await omni.kit.app.get_app().next_update_async() self.assertEqual(extract_node_controller.get(), 8) await omni.kit.app.get_app().next_update_async() self.assertEqual(extract_node_controller.get(), 16) # Now change the pipeline stage to on-demand og.cmds.ChangePipelineStage(graph=graph, new_pipeline_stage=og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND) self.assertEqual(graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND) # Check that graph.evaluate() still causes graph evaluation graph.evaluate() self.assertEqual(extract_node_controller.get(), 32) graph.evaluate() self.assertEqual(extract_node_controller.get(), 64) # Check that omni.kit.app.get_app().next_update_async() does NOT cause graph evaluation # because the graph is in on-demand pipeline stage await omni.kit.app.get_app().next_update_async() self.assertEqual(extract_node_controller.get(), 64) await omni.kit.app.get_app().next_update_async() self.assertEqual(extract_node_controller.get(), 64) # Undo the command to go back to the simulation pipeline stage omni.kit.undo.undo() omni.kit.undo.undo() omni.kit.undo.undo() self.assertEqual(graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION) # Check that graph.evaluate() causes graph evaluation graph.evaluate() self.assertEqual(extract_node_controller.get(), 128) # Check that omni.kit.app.get_app().next_update_async() also causes graph evaluation await omni.kit.app.get_app().next_update_async() self.assertEqual(extract_node_controller.get(), 256) # ---------------------------------------------------------------------- async def test_ondemand_pipeline(self): """ test the on-demand pipeline stage. The on-demand pipeline stage allows graphs to be added to it that tick at unknown times instead of the fixed times of graph evaluation of other named stages. So here we will create some graphs in the stage, and manually evaluate it to make sure it works. """ usd_context = omni.usd.get_context() stage = usd_context.get_stage() orchestration_graphs = og.get_global_orchestration_graphs() orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage( og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND ) self.assertEqual(len(orchestration_graphs), 1) self.assertEqual(orchestration_graphs[0].get_path_to_graph(), "/__onDemandRootGraph") self.assertEqual( orchestration_graphs[0].get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND ) self.assertEqual(orchestration_graphs[0].get_graph_backing_type(), og.GraphBackingType.GRAPH_BACKING_TYPE_NONE) orchestration_graph = orchestration_graphs[0] (result, wrapper_node) = og.cmds.CreateGraphAsNode( graph=orchestration_graph, node_name="my_push_graph", graph_path="/World/my_push_graph", evaluator_name="push", is_global_graph=True, backed_by_usd=True, fc_backing_type=og.GraphBackingType.GRAPH_BACKING_TYPE_FABRIC_SHARED, pipeline_stage=og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND, ) self.assertTrue(result) self.assertTrue(wrapper_node.is_valid()) self.assertEqual(wrapper_node.get_prim_path(), "/__onDemandRootGraph/_World_my_push_graph") wrapped_graph = wrapper_node.get_wrapped_graph() self.assertTrue(wrapped_graph.is_valid()) self.assertEqual(wrapped_graph.get_path_to_graph(), "/World/my_push_graph") self.assertEqual(wrapped_graph.get_graph_backing_type(), og.GraphBackingType.GRAPH_BACKING_TYPE_FABRIC_SHARED) self.assertEqual(wrapped_graph.get_pipeline_stage(), og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND) controller = og.Controller() keys = og.Controller.Keys cube_prim = ogts.create_cube(stage, "Cube", (1, 1, 1)) (graph, (_, write_node, _, _, extract_node), _, _) = controller.edit( "/World/my_push_graph", { keys.CREATE_NODES: [ ("Read", "omni.graph.nodes.ReadPrims"), ("Write", "omni.graph.nodes.WritePrim"), ("Add", "omni.graph.nodes.Add"), ("ExtractPrim", "omni.graph.nodes.ExtractPrim"), ("ExtractBundle", "omni.graph.nodes.ExtractBundle"), ], keys.CONNECT: [ ("Read.outputs_primsBundle", "ExtractPrim.inputs:prims"), ("ExtractPrim.outputs_primBundle", "ExtractBundle.inputs:bundle"), ], keys.SET_VALUES: [ ("ExtractPrim.inputs:primPath", str(cube_prim.GetPath())), ], }, ) wrapped_graph.evaluate() omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath("/World/my_push_graph/Read.inputs:prims"), target=cube_prim.GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath("/World/my_push_graph/Write.inputs:prim"), target=cube_prim.GetPath(), ) wrapped_graph.evaluate() # node:type # node:typeVersion # inputs:bundle # outputs: passThrough n_static_attribs_extract = 4 # Check we have the expected dynamic attrib on ExtractBundle attribs = extract_node.get_attributes() bundle = wrapped_graph.get_default_graph_context().get_output_bundle(extract_node, "outputs_passThrough") self.assertTrue(bundle.is_valid()) self.assertEqual(len(attribs) - n_static_attribs_extract, bundle.get_attribute_data_count()) found_size_attrib = False for attrib in attribs: if attrib.get_name() == "outputs:size" and attrib.get_resolved_type().base_type == og.BaseDataType.DOUBLE: found_size_attrib = True self.assertTrue(found_size_attrib) # Check we have the expected dynamic attrib on WritePrim attribs = write_node.get_attributes() found_size_attrib = False for attrib in attribs: if attrib.get_name() == "inputs:size" and attrib.get_resolved_type().base_type == og.BaseDataType.DOUBLE: found_size_attrib = True self.assertTrue(found_size_attrib) # check that evaluations propagate in a read/write cycle as expected controller.edit( graph, { keys.CONNECT: [ ("/World/my_push_graph/ExtractBundle.outputs:size", "/World/my_push_graph/Add.inputs:a"), ("/World/my_push_graph/ExtractBundle.outputs:size", "/World/my_push_graph/Add.inputs:b"), ("/World/my_push_graph/Add.outputs:sum", "/World/my_push_graph/Write.inputs:size"), ] }, ) wrapped_graph.evaluate() extract_node_controller = og.Controller(og.Controller.attribute("outputs:size", extract_node)) self.assertEqual(extract_node_controller.get(), 1) wrapped_graph.evaluate() self.assertEqual(extract_node_controller.get(), 2) wrapped_graph.evaluate() self.assertEqual(extract_node_controller.get(), 4) # Verify that the graph is not still evaluating while we are not pumping the evaluate # OM-4258 await omni.kit.app.get_app().next_update_async() self.assertEqual(extract_node_controller.get(), 4) await omni.kit.app.get_app().next_update_async() self.assertEqual(extract_node_controller.get(), 4) # ---------------------------------------------------------------------- async def test_ondemand_pipeline_part_two(self): """ More validation tests for the on-demand pipeline stage. This test was added as part of the changes described in OM-87603 to ensure that the pipeline stage behaves correctly now that it is executed via the EF code path (as opposed to utilizing the legacy schedulers). """ # Define a utility method for creating a simple graph of variable # evaluator type and pipeline stage. def create_graph(graph_path: str, evaluator_name: str, pipeline: og.GraphPipelineStage): """Create a simple graph that increments a counter on a node every time the graph ticks.""" (graph, nodes, _, _) = og.Controller.edit( {"graph_path": graph_path, "evaluator_name": evaluator_name}, { og.Controller.Keys.CREATE_NODES: [ ("OnTick", "omni.graph.action.OnTick"), ("Counter", "omni.graph.action.Counter"), ], og.Controller.Keys.SET_VALUES: [("OnTick.inputs:onlyPlayback", False)], og.Controller.Keys.CONNECT: ("OnTick.outputs:tick", "Counter.inputs:execIn"), }, ) og.cmds.ChangePipelineStage(graph=graph, new_pipeline_stage=pipeline) self.assertEqual(graph.get_pipeline_stage(), pipeline) return graph, nodes # Currently-supported pipeline stages. pipeline_stages = [ og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION, og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_PRERENDER, og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_POSTRENDER, og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND, ] # Create a push graph that subscribes to the on-demand pipeline. # Doing so should result in the initial population of the OnDemand # stage. Check that it only computes when an explicit request to do # so is made, and that only the OnDemand orchestration graph has # any graph nodes (in this case one). _, push_nodes = create_graph("/PushGraph", "push", og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND) push_out_cnt_attr = push_nodes[1].get_attribute("outputs:count") await og.Controller.evaluate() await og.Controller.evaluate() await og.Controller.evaluate() self.assertEqual(push_out_cnt_attr.get(), 3) await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() self.assertEqual(push_out_cnt_attr.get(), 3) for pipeline_stage in pipeline_stages: orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage(pipeline_stage) self.assertEqual(len(orchestration_graphs), 1) orchestration_graph = orchestration_graphs[0] if pipeline_stage == og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND: self.assertEqual(len(orchestration_graph.get_nodes()), 1) else: self.assertEqual(len(orchestration_graph.get_nodes()), 0) # Confirm that newly added OnDemand graphs (after the initial population) # will properly trigger a repopulation of the OnDemand stage to include # those new graphs, thus allowing them to be executed. Also check that # the OnDemand orchestration graph now has two graph nodes, while the others # still have zero. exec_graph, exec_nodes = create_graph( "/ExecutionGraph", "execution", og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND ) exec_out_cnt_attr = exec_nodes[1].get_attribute("outputs:count") await og.Controller.evaluate() await og.Controller.evaluate() await og.Controller.evaluate() self.assertEqual(push_out_cnt_attr.get(), 6) self.assertEqual(exec_out_cnt_attr.get(), 3) await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() self.assertEqual(push_out_cnt_attr.get(), 6) self.assertEqual(exec_out_cnt_attr.get(), 3) for pipeline_stage in pipeline_stages: orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage(pipeline_stage) self.assertEqual(len(orchestration_graphs), 1) orchestration_graph = orchestration_graphs[0] if pipeline_stage == og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND: self.assertEqual(len(orchestration_graph.get_nodes()), 2) else: self.assertEqual(len(orchestration_graph.get_nodes()), 0) # Confirm that removing OnDemand graphs triggers a repopulation of the # OnDemand stage that won't include those graphs, resulting in them # no longer executing on an "on-demand" basis. Here we simply switch # the pipeline stage of the exec_graph to be something other than # OnDemand (Simulation). Check that both the Simulation and OnDemand # orchestration graphs now have one graph node apiece. og.cmds.ChangePipelineStage( graph=exec_graph, new_pipeline_stage=og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION ) await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() self.assertEqual(push_out_cnt_attr.get(), 6) self.assertEqual(exec_out_cnt_attr.get(), 6) for pipeline_stage in pipeline_stages: orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage(pipeline_stage) self.assertEqual(len(orchestration_graphs), 1) orchestration_graph = orchestration_graphs[0] if pipeline_stage in ( og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND, og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION, ): self.assertEqual(len(orchestration_graph.get_nodes()), 1) else: self.assertEqual(len(orchestration_graph.get_nodes()), 0) # Confirm that editing OnDemand graphs triggers a repopulation of # the OnDemand stage, resulting in subsequent evaluations picking up # on the new changes. Here we check for this by creating an OnDemand # dirty_push graph and altering one of the underlying node connections # halfway through the evaluation checks; this change should trigger # a compute on the graph + should be picked up in the OnDemand pipeline. # Also check that the OnDemand orchestration graph now has two graph nodes, # while the Simulation orchestration graph still only has one. _, dirty_push_nodes = create_graph( "/DirtyPushGraph", "dirty_push", og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND ) dirty_push_ontick_node = dirty_push_nodes[0] dirty_push_counter_node = dirty_push_nodes[1] dirty_push_out_cnt_attr = dirty_push_counter_node.get_attribute("outputs:count") await og.Controller.evaluate() await og.Controller.evaluate() await og.Controller.evaluate() self.assertEqual(push_out_cnt_attr.get(), 9) self.assertEqual(exec_out_cnt_attr.get(), 9) self.assertEqual(dirty_push_out_cnt_attr.get(), 1) await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() self.assertEqual(push_out_cnt_attr.get(), 9) self.assertEqual(exec_out_cnt_attr.get(), 12) self.assertEqual(dirty_push_out_cnt_attr.get(), 1) og.Controller.disconnect( dirty_push_ontick_node.get_attribute("outputs:tick"), dirty_push_counter_node.get_attribute("inputs:execIn") ) await og.Controller.evaluate() await og.Controller.evaluate() await og.Controller.evaluate() self.assertEqual(push_out_cnt_attr.get(), 12) self.assertEqual(exec_out_cnt_attr.get(), 15) self.assertEqual(dirty_push_out_cnt_attr.get(), 2) await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() await omni.kit.app.get_app().next_update_async() self.assertEqual(push_out_cnt_attr.get(), 12) self.assertEqual(exec_out_cnt_attr.get(), 18) self.assertEqual(dirty_push_out_cnt_attr.get(), 2) for pipeline_stage in pipeline_stages: orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage(pipeline_stage) self.assertEqual(len(orchestration_graphs), 1) orchestration_graph = orchestration_graphs[0] if pipeline_stage == og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_ONDEMAND: self.assertEqual(len(orchestration_graph.get_nodes()), 2) elif pipeline_stage == og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION: self.assertEqual(len(orchestration_graph.get_nodes()), 1) else: self.assertEqual(len(orchestration_graph.get_nodes()), 0) # ---------------------------------------------------------------------- async def test_commands_with_group_undo_redo(self): """ Tests direct and indirect commands work as expected when grouped under a single undo, including when nodes are created and destroyed """ controller = og.Controller(update_usd=True) keys = controller.Keys (graph, (_, _, add3, add4), _, _) = controller.edit( "/World/Graph", { keys.CREATE_NODES: [ ("Add1", "omni.graph.nodes.Add"), ("Add2", "omni.graph.nodes.Add"), ("Add3", "omni.graph.nodes.Add"), ("Add4", "omni.graph.nodes.Add"), ], keys.CONNECT: [ ("Add1.outputs:sum", "Add2.inputs:a"), ], }, ) og.cmds.DisableNode(node=add3) with omni.kit.undo.group(): # add a new node controller.create_node("/World/Graph/Constant", "omni.graph.nodes.ConstantInt", undoable=True) node = graph.get_node("/World/Graph/Constant") controller.set(node.get_attribute("inputs:value"), 2, undoable=True) controller.connect("/World/Graph/Add1.outputs:sum", "/World/Graph/Add2.inputs:b", undoable=True) controller.disconnect("/World/Graph/Add1.outputs:sum", "/World/Graph/Add2.inputs:a", undoable=True) self.assertFalse( controller.attribute("/World/Graph/Add1.outputs:sum").is_connected( controller.attribute("/World/Graph/Add2.inputs:a") ) ) og.cmds.EnableNode(node=add3) og.cmds.DisableNode(node=add4) controller.create_node("/World/Graph/Add5", "omni.graph.nodes.Add") og.cmds.DisableNode(node=graph.get_node("/World/Graph/Add5")) controller.delete_node("/World/Graph/Add2", update_usd=True, undoable=True) for _ in range(0, 3): graph = og.get_graph_by_path("/World/Graph") self.assertTrue(graph.is_valid()) self.assertTrue(graph.get_node("/World/Graph/Constant").is_valid()) self.assertTrue(graph.get_node("/World/Graph/Add1").is_valid()) self.assertFalse(graph.get_node("/World/Graph/Add2").is_valid()) self.assertEqual(controller.get(controller.attribute("/World/Graph/Constant.inputs:value")), 2) self.assertFalse(graph.get_node("/World/Graph/Add3").is_disabled()) self.assertTrue(graph.get_node("/World/Graph/Add4").is_disabled()) self.assertTrue(graph.get_node("/World/Graph/Add5").is_disabled()) omni.kit.undo.undo() graph = og.get_graph_by_path("/World/Graph") self.assertTrue(graph.is_valid()) self.assertFalse(graph.get_node("/World/Graph/Constant").is_valid()) self.assertTrue(graph.get_node("/World/Graph/Add1").is_valid()) self.assertTrue(graph.get_node("/World/Graph/Add2").is_valid()) self.assertTrue(graph.get_node("/World/Graph/Add3").is_disabled()) self.assertFalse(graph.get_node("/World/Graph/Add4").is_disabled()) self.assertFalse(graph.get_node("/World/Graph/Add5").is_valid()) omni.kit.undo.redo() # ---------------------------------------------------------------------- async def test_create_graph_with_group_undo_redo(self): """ Tests that commands perform as expected when the graph creation is part of the same undo group """ orchestration_graphs = og.get_global_orchestration_graphs_in_pipeline_stage( og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION ) self.assertEqual(len(orchestration_graphs), 1) orchestration_graph = orchestration_graphs[0] with omni.kit.undo.group(): (result, _) = og.cmds.CreateGraphAsNode( graph=orchestration_graph, node_name="my_push_graph", graph_path="/World/Graph", evaluator_name="push", is_global_graph=True, backed_by_usd=True, fc_backing_type=og.GraphBackingType.GRAPH_BACKING_TYPE_FABRIC_SHARED, pipeline_stage=og.GraphPipelineStage.GRAPH_PIPELINE_STAGE_SIMULATION, evaluation_mode=og.GraphEvaluationMode.GRAPH_EVALUATION_MODE_STANDALONE, ) self.assertTrue(result) graph = og.Controller.graph("/World/Graph") og.cmds.CreateNode( graph=graph, node_path="/World/Graph/ConstantInt", node_type="omni.graph.nodes.ConstantInt", create_usd=True, ) og.cmds.SetAttr( attr=og.Controller.attribute("/World/Graph/ConstantInt.inputs:value"), value=5, update_usd=True ) og.cmds.CreateNode( graph=graph, node_path="/World/Graph/Add", node_type="omni.graph.nodes.Add", create_usd=True ) og.cmds.ConnectAttrs( src_attr="/World/Graph/ConstantInt.inputs:value", dest_attr="/World/Graph/Add.inputs:a", modify_usd=True ) og.cmds.CreateVariable( graph=graph, variable_name="int_var", variable_type=og.Type(og.BaseDataType.INT), variable_value=5, ) for _ in range(0, 3): self.assertTrue(og.Controller.graph("/World/Graph").is_valid()) self.assertTrue(og.Controller.node("/World/Graph/ConstantInt").is_valid()) self.assertTrue(og.Controller.node("/World/Graph/Add").is_valid()) self.assertTrue(og.Controller.attribute("/World/Graph/ConstantInt.inputs:value").is_valid()) self.assertTrue(og.Controller.attribute("/World/Graph/Add.inputs:a").is_valid()) self.assertEquals(og.Controller.get(og.Controller.attribute("/World/Graph/ConstantInt.inputs:value")), 5) self.assertTrue( og.Controller.attribute("/World/Graph/Add.inputs:a").is_connected( og.Controller.attribute("/World/Graph/ConstantInt.inputs:value") ) ) context = og.Controller.graph("/World/Graph").get_default_graph_context() self.assertEquals(og.Controller.variable("/World/Graph.graph:variable:int_var").get(context), 5) omni.kit.undo.undo() self.assertIsNone(og.Controller.graph("/World/Graph")) with self.assertRaises(og.OmniGraphError): _ = og.Controller.node("/World/Graph/ConstantInt") with self.assertRaises(og.OmniGraphError): _ = og.Controller.node("/World/Graph/Add") with self.assertRaises(og.OmniGraphError): _ = og.Controller.attribute("/World/Graph/ConstantInt.inputs:value") with self.assertRaises(og.OmniGraphError): _ = og.Controller.attribute("/World/Graph/Add.inputs:a") omni.kit.undo.redo() # ---------------------------------------------------------------------- async def test_resolve_attr_type_command(self): """Tests ResolveAttrTypeCommand""" controller = og.Controller() keys = controller.Keys (_, (add1,), _, _) = controller.edit( "/World/Graph", { keys.CREATE_NODES: [ ("Add1", "omni.graph.nodes.Add"), ], }, ) # Test undo-redo for simple type unknown_t = controller.attribute_type("unknown") a = controller.attribute("inputs:a", add1) self.assertEqual(a.get_resolved_type(), unknown_t) og.cmds.ResolveAttrType(attr=a, type_id="int") self.assertEqual(a.get_resolved_type(), controller.attribute_type("int")) omni.kit.undo.undo() self.assertEqual(a.get_resolved_type(), unknown_t) omni.kit.undo.redo() self.assertEqual(a.get_resolved_type(), controller.attribute_type("int"))
omniverse-code/kit/exts/omni.graph.test/omni/graph/test/tests/test_omnigraph_context.py
"""Basic tests of the graph context""" import omni.graph.core as og import omni.graph.core.tests as ogts import omni.kit.commands import omni.kit.test import omni.kit.undo import omni.usd import omni.usd.commands from pxr import Usd class TestOmniGraphContext(ogts.OmniGraphTestCase): """Tests graph context functionality""" TEST_GRAPH_PATH = "/TestGraph" # ---------------------------------------------------------------------- async def test_graph_context_input_target_bundles(self): """ Tests that the getting the input target bundles on a graph context works correctly """ usd_context = omni.usd.get_context() stage: Usd.Stage = usd_context.get_stage() controller = og.Controller() cube_prim = ogts.create_cube(stage, "Cube", (1, 0, 0)) cone_prim = ogts.create_cone(stage, "Cone", (0, 1, 0)) xform_prim = stage.DefinePrim("/Xform", "Xform") keys = og.Controller.Keys (graph, _, _, _) = controller.edit( self.TEST_GRAPH_PATH, { keys.CREATE_NODES: [ ("ReadCube", "omni.graph.nodes.ReadPrims"), ("ReadCone", "omni.graph.nodes.ReadPrims"), ("WritePrims", "omni.graph.nodes.WritePrimsV2"), ], keys.CONNECT: [ ("ReadCube.outputs_primsBundle", "WritePrims.inputs:primsBundle"), ("ReadCone.outputs_primsBundle", "WritePrims.inputs:primsBundle"), ], }, ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/ReadCube.inputs:prims"), target=cube_prim.GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/ReadCone.inputs:prims"), target=cone_prim.GetPath(), ) omni.kit.commands.execute( "AddRelationshipTarget", relationship=stage.GetPropertyAtPath(f"{self.TEST_GRAPH_PATH}/WritePrims.inputs:prims"), target=xform_prim.GetPath(), ) await controller.evaluate(graph) graph_context = graph.get_default_graph_context() self.assertTrue(graph_context.is_valid()) write_prims_node = graph.get_node(f"{self.TEST_GRAPH_PATH}/WritePrims") self.assertTrue(write_prims_node.is_valid()) read_cube_node = graph.get_node(f"{self.TEST_GRAPH_PATH}/ReadCube") self.assertTrue(read_cube_node.is_valid()) read_cone_node = graph.get_node(f"{self.TEST_GRAPH_PATH}/ReadCone") self.assertTrue(read_cone_node.is_valid()) write_prims_targets = graph_context.get_input_target_bundles(write_prims_node, "inputs:primsBundle") self.assertEqual(len(write_prims_targets), 2) [mbib0, mbib1] = write_prims_targets self.assertEqual(mbib0.get_child_bundle_count(), 1) self.assertEqual(mbib1.get_child_bundle_count(), 1) [spib0] = mbib0.get_child_bundles() [spib1] = mbib1.get_child_bundles() source_prim_paths = [ spib0.get_attribute_by_name("sourcePrimPath").get(), spib1.get_attribute_by_name("sourcePrimPath").get(), ] # sort the paths because get_input_target_bundles does not define an ordering source_prim_paths.sort() self.assertEqual(source_prim_paths[0], "/Cone") self.assertEqual(source_prim_paths[1], "/Cube")