Change comparison with "None".
[OpenColorIO-Configs.git] / aces_1.0.0 / python / aces_ocio / generateLUT.py
index 8e420aa..53f86e1 100644 (file)
@@ -2,27 +2,8 @@
 # -*- coding: utf-8 -*-
 
 """
-build instructions for osx for needed packages.
-
-#opencolorio
-brew install -vd opencolorio --with-python
-
-#openimageio
-brew tap homebrew/science
-
-# optional installs
-brew install -vd libRaw
-brew install -vd OpenCV
-
-brew install -vd openimageio --with-python
-
-#ctl
-brew install -vd CTL
-
-#opencolorio - again.
-# this time, 'ociolutimage' will build because openimageio is installed
-brew uninstall -vd opencolorio
-brew install -vd opencolorio --with-python
+Defines objects to generate various kind of 1d, 2d and 3d LUTs in various file
+formats.
 """
 
 import array
@@ -150,7 +131,7 @@ def generate1dLUTFromImage(ramp1dPath,
          Return value description.
     """
 
-    if outputPath == None:
+    if outputPath is None:
         outputPath = ramp1dPath + ".spi1d"
 
     # open image
@@ -215,7 +196,7 @@ def generate3dLUTFromImage(ramp3dPath, outputPath=None, resolution=32):
          Return value description.
     """
 
-    if outputPath == None:
+    if outputPath is None:
         outputPath = ramp3dPath + ".spi3d"
 
     args = ["--extract",