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AABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA==' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert module.image_name.value == "TestInput" assert module.should_combine assert module.grayscale_name.value == "TestGray" assert module.red_contribution.value == 1 assert module.green_contribution.value == 2 assert module.blue_contribution.value == 3
def test_2_3_load_combine(): data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSBQbGF0Zm9ybTogbnQsIENyZWF0ZWQgb246IE1vbiBKYW4gMTIgMDk6NDQ6MDEgMjAwOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSU0OAAAAAAkAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAgAAABTZXR0aW5ncwUABAAYAAAAAQAAAMAAAABWYXJpYWJsZVZhbHVlcwAAAAAAAAAAAABWYXJpYWJsZUluZm9UeXBlcwAAAAAAAABNb2R1bGVOYW1lcwAAAAAAAAAAAAAAAABOdW1iZXJzT2ZWYXJpYWJsZXMAAAAAAABQaXhlbFNpemUAAAAAAAAAAAAAAAAAAABWYXJpYWJsZVJldmlzaW9uTnVtYmVycwBNb2R1bGVSZXZpc2lvbk51bWJlcnMAAABNb2R1bGVOb3RlcwAAAAAAAAAAAAAAAAAOAAAACAMAAAYAAAAIAAAAAQAAAAAAAAAFAAAACAAAAAEAAAAMAAAAAQAAAAAAAAAOAAAAQAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAJAAAAAQAAAAAAAAAQAAAACQAAAFRlc3RJbnB1dAAAAAAAAAAOAAAAOAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAHAAAAAQAAAAAAAAAQAAAABwAAAENvbWJpbmUADgAAADgAAAAGAAAACAAAAAQAAAAAAAAABQAAAAgAAAABAAAACAAAAAEAAAAAAAAAEAAAAAgAAABUZXN0R3JheQ4AAAAwAAAABgAAAAgAAA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AAAAAAAAgABAAEAAAAOAAAAMAAAAAYAAAAIAAAACwAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAEAAIAAAAAAA4AAABYAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAA4AAAAoAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA==' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert module.image_name.value == "TestInput" assert module.should_combine assert module.grayscale_name.value == "TestGray" assert module.red_contribution.value == 1 assert module.green_contribution.value == 2 assert module.blue_contribution.value == 3
def test_2_1_load_matlab_combine(): data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjE3OjA0IDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAdAEAAHiczZS9TsMwEIAvTdpSKlURA2JkZONvYUR0QAwU1EYVq6teI0uJHeUHUZ6Ax+rMU2G3TupEoUlDB05ynDvfd2efdR4AwFcXoCPmIzFasJG20g1tSH2CcUyZG7XBgjNlX4kxJSElMw+nxEswgkxS+xNbcGcZZEvPfJ54OCK+7ixklPgzDKOXRQqq5Vf6gd6EfiLkJXUb4zuNKGeKV/GL1iwvjwt5B/JjbutglNThRLNL/zvY+lsl/nocW+kORvFjSJZ1+G6Bl/qQ+zPKcJ3/qoI3c7wJ7JIcZN9VeY0cb8C1qte+3E1D7rYm17Q+Zfci6zPG+Zq/r+B7Bb6X1ReRKftf7ulBtOBAi7PvvDJ290Ef8n1Qdd7jwj6lTn3iohvyJPh9H1Vx7UJcOxf3nLI5BnXOe6g8/y1OALvvUe+bOnn1e7eVPuQeDx0un4Ysjt53nYq8LfHXL+Gavit18hkNOEuQ36cb7m3Pul7s8E8ltf8AGWV9Kw==' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert module.image_name.value == "TestGray" assert module.should_combine assert module.grayscale_name.value == "TestGray" assert module.red_contribution.value == 1 assert module.green_contribution.value == 2 assert module.blue_contribution.value == 3
def test_2_1_load_matlab_combine(): data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjE3OjA0IDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAdAEAAHiczZS9TsMwEIAvTdpSKlURA2JkZONvYUR0QAwU1EYVq6teI0uJHeUHUZ6Ax+rMU2G3TupEoUlDB05ynDvfd2efdR4AwFcXoCPmIzFasJG20g1tSH2CcUyZG7XBgjNlX4kxJSElMw+nxEswgkxS+xNbcGcZZEvPfJ54OCK+7ixklPgzDKOXRQqq5Vf6gd6EfiLkJXUb4zuNKGeKV/GL1iwvjwt5B/JjbutglNThRLNL/zvY+lsl/nocW+kORvFjSJZ1+G6Bl/qQ+zPKcJ3/qoI3c7wJ7JIcZN9VeY0cb8C1qte+3E1D7rYm17Q+Zfci6zPG+Zq/r+B7Bb6X1ReRKftf7ulBtOBAi7PvvDJ290Ef8n1Qdd7jwj6lTn3iohvyJPh9H1Vx7UJcOxf3nLI5BnXOe6g8/y1OALvvUe+bOnn1e7eVPuQeDx0un4Ysjt53nYq8LfHXL+Gavit18hkNOEuQ36cb7m3Pul7s8E8ltf8AGWV9Kw==' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert module.image_name.value == "TestGray" assert module.should_combine assert module.grayscale_name.value == "TestGray" assert module.red_contribution.value == 1 assert module.green_contribution.value == 2 assert module.blue_contribution.value == 3
def test_2_2_load_matlab_split(): data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjI3OjMwIDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAaQEAAHiczVTNToQwEJ6ysBg3IcSD8ejRm38Xj0YPxoOrWcjGazd0SROghB+z69Pt2afxESzZwpYGAXFNnGRSZjrffMN0WgsAVibAmK8HXDXYiiFsJGlhOyTLaOSnBuhwIvwbrnOcULwIyBwHOUmhktL/GC2Zu46rrSfm5QGZ4lAO5jLNwwVJ0udlCRTbL3RFAoe+E6hLGTYjbzSlLBJ4kV/1VrwsU3gtrp/arg+ooQ9Hkr+Iv4FdvN4QL+exhe2SNHtI8LoP3lDwhe3EAc0E/0UHflTDjyA6x3upu4sX1fAILnvWq+KuBuKu/7g/ptIfU/RnRrxB9U7hd/N0x6+cJfxD1g1qn/sJ1Of+tqPOQ6XOwqYh9omfsDz+vo6uvLaS167lPaWRR+I+/7svnv+WJ4b2c5Tnrg+vfO62sO9ZwBKXFU9BlUee93EHr8a/Jg24oe9IHz40AKdz5MfxFvf6w76etcSXUvq/AErXefI=' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert module.image_name.value == "TestGray" assert module.should_split assert module.use_red.value assert module.red_name.value == "TestRed" assert not module.use_green.value assert module.use_blue.value assert module.blue_name.value == "TestBlue"
def test_2_2_load_matlab_split(): data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSwgUGxhdGZvcm06IFBDV0lOLCBDcmVhdGVkIG9uOiBNb24gSmFuIDEyIDA5OjI3OjMwIDIwMDkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAABSU0PAAAAaQEAAHiczVTNToQwEJ6ysBg3IcSD8ejRm38Xj0YPxoOrWcjGazd0SROghB+z69Pt2afxESzZwpYGAXFNnGRSZjrffMN0WgsAVibAmK8HXDXYiiFsJGlhOyTLaOSnBuhwIvwbrnOcULwIyBwHOUmhktL/GC2Zu46rrSfm5QGZ4lAO5jLNwwVJ0udlCRTbL3RFAoe+E6hLGTYjbzSlLBJ4kV/1VrwsU3gtrp/arg+ooQ9Hkr+Iv4FdvN4QL+exhe2SNHtI8LoP3lDwhe3EAc0E/0UHflTDjyA6x3upu4sX1fAILnvWq+KuBuKu/7g/ptIfU/RnRrxB9U7hd/N0x6+cJfxD1g1qn/sJ1Of+tqPOQ6XOwqYh9omfsDz+vo6uvLaS167lPaWRR+I+/7svnv+WJ4b2c5Tnrg+vfO62sO9ZwBKXFU9BlUee93EHr8a/Jg24oe9IHz40AKdz5MfxFvf6w76etcSXUvq/AErXefI=' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert module.image_name.value == "TestGray" assert module.should_split assert module.use_red.value assert module.red_name.value == "TestRed" assert not module.use_green.value assert module.use_blue.value assert module.blue_name.value == "TestBlue"
def test_2_4_load_split(): data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSBQbGF0Zm9ybTogbnQsIENyZWF0ZWQgb246IE1vbiBKYW4gMTIgMDk6NDU6NDkgMjAwOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSU0OAAAAAAkAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAgAAABTZXR0aW5ncwUABAAYAAAAAQAAAMAAAABWYXJpYWJsZVZhbHVlcwAAAAAAAAAAAABWYXJpYWJsZUluZm9UeXBlcwAAAAAAAABNb2R1bGVOYW1lcwAAAAAAAAAAAAAAAABOdW1iZXJzT2ZWYXJpYWJsZXMAAAAAAABQaXhlbFNpemUAAAAAAAAAAAAAAAAAAABWYXJpYWJsZVJldmlzaW9uTnVtYmVycwBNb2R1bGVSZXZpc2lvbk51bWJlcnMAAABNb2R1bGVOb3RlcwAAAAAAAAAAAAAAAAAOAAAACAMAAAYAAAAIAAAAAQAAAAAAAAAFAAAACAAAAAEAAAAMAAAAAQAAAAAAAAAOAAAAQAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAJAAAAAQAA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LmNvbG9ydG9ncmF5LkNvbG9yVG9HcmF5AAAAAA4AAAAwAAAABgAAAAgAAAAJAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAAIAAQAMAAAADgAAACgAAAAGAAAACAAAAAwAAAAAAAAABQAAAAAAAAABAAAAAAAAAAUABAABAAAADgAAADAAAAAGAAAACAAAAAkAAAAAAAAABQAAAAgAAAABAAAAAQAAAAEAAAAAAAAAAgABAAEAAAAOAAAAMAAAAAYAAAAIAAAACwAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAEAAIAAAAAAA4AAABYAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAA4AAAAoAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA==' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert isinstance(module, cellprofiler.modules.colortogray.ColorToGray) assert module.image_name.value == "TestInput" assert module.should_split assert module.use_red.value assert module.red_name.value == "TestRed" assert module.use_green.value assert module.green_name.value == "TestGreen" assert not module.use_blue.value assert module.rgb_or_channels == cellprofiler.modules.colortogray.CH_RGB
def test_2_4_load_split(): data = 'TUFUTEFCIDUuMCBNQVQtZmlsZSBQbGF0Zm9ybTogbnQsIENyZWF0ZWQgb246IE1vbiBKYW4gMTIgMDk6NDU6NDkgMjAwOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSU0OAAAAAAkAAAYAAAAIAAAAAgAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAgAAABTZXR0aW5ncwUABAAYAAAAAQAAAMAAAABWYXJpYWJsZVZhbHVlcwAAAAAAAAAAAABWYXJpYWJsZUluZm9UeXBlcwAAAAAAAABNb2R1bGVOYW1lcwAAAAAAAAAAAAAAAABOdW1iZXJzT2ZWYXJpYWJsZXMAAAAAAABQaXhlbFNpem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AAAAAAAAFAAAACAAAAAEAAAAQAAAAAQAAAAAAAAAQAAAAEAAAAGltYWdlZ3JvdXAgaW5kZXAOAAAAkAAAAAYAAAAIAAAAAQAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAOAAAAYAAAAAYAAAAIAAAABAAAAAAAAAAFAAAACAAAAAEAAAAsAAAAAQAAAAAAAAAQAAAALAAAAGNlbGxwcm9maWxlci5tb2R1bGVzLmNvbG9ydG9ncmF5LkNvbG9yVG9HcmF5AAAAAA4AAAAwAAAABgAAAAgAAAAJAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAAIAAQAMAAAADgAAACgAAAAGAAAACAAAAAwAAAAAAAAABQAAAAAAAAABAAAAAAAAAAUABAABAAAADgAAADAAAAAGAAAACAAAAAkAAAAAAAAABQAAAAgAAAABAAAAAQAAAAEAAAAAAAAAAgABAAEAAAAOAAAAMAAAAAYAAAAIAAAACwAAAAAAAAAFAAAACAAAAAEAAAABAAAAAQAAAAAAAAAEAAIAAAAAAA4AAABYAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAQAAAAEAAAABAAAAAAAAAA4AAAAoAAAABgAAAAgAAAABAAAAAAAAAAUAAAAIAAAAAAAAAAEAAAABAAAAAAAAAA==' pipeline = tests.modules.load_pipeline(None, data) module = pipeline.module(1) assert isinstance(module, cellprofiler.modules.colortogray.ColorToGray) assert module.image_name.value == "TestInput" assert module.should_split assert module.use_red.value assert module.red_name.value == "TestRed" assert module.use_green.value assert module.green_name.value == "TestGreen" assert not module.use_blue.value assert module.rgb_or_channels == cellprofiler.modules.colortogray.CH_RGB