Add main module attributes.
[OpenColorIO-Configs.git] / aces_1.0.0 / python / aces_ocio / util.py
index fde3ef6..c1ca5d3 100644 (file)
@@ -6,41 +6,60 @@ import re
 
 import PyOpenColorIO as OCIO
 
+__author__ = 'ACES Developers'
+__copyright__ = 'Copyright (C) 2014 - 2015 - ACES Developers'
+__license__ = ''
+__maintainer__ = 'ACES Developers'
+__email__ = 'aces@oscars.org'
+__status__ = 'Production'
+
+__all__ = ['ColorSpace',
+           'mat44FromMat33',
+           'filter_words',
+           'files_walker']
+
 #
 # Utility classes and functions
 #
+
 class ColorSpace:
-    "A container for data needed to define an OCIO 'Color Space' "
+    """
+    A container for data needed to define an OCIO 'Color Space'
+    """
 
     def __init__(self,
-        name,
-        description=None,
-        bitDepth=OCIO.Constants.BIT_DEPTH_F32,
-        equalityGroup=None,
-        family=None,
-        isData=False,
-        toReferenceTransforms=[],
-        fromReferenceTransforms=[],
-        allocationType=OCIO.Constants.ALLOCATION_UNIFORM,
-        allocationVars=[0.0, 1.0]):
-        "Initialize the standard class variables"
+                 name,
+                 description=None,
+                 bitDepth=OCIO.Constants.BIT_DEPTH_F32,
+                 equalityGroup=None,
+                 family=None,
+                 isData=False,
+                 toReferenceTransforms=[],
+                 fromReferenceTransforms=[],
+                 allocationType=OCIO.Constants.ALLOCATION_UNIFORM,
+                 allocationVars=[0.0, 1.0]):
+        """
+        Initialize the standard class variables
+        """
         self.name = name
-        self.bitDepth=bitDepth
+        self.bitDepth = bitDepth
         self.description = description
-        self.equalityGroup=equalityGroup
-        self.family=family
-        self.isData=isData
-        self.toReferenceTransforms=toReferenceTransforms
-        self.fromReferenceTransforms=fromReferenceTransforms
-        self.allocationType=allocationType
-        self.allocationVars=allocationVars
+        self.equalityGroup = equalityGroup
+        self.family = family
+        self.isData = isData
+        self.toReferenceTransforms = toReferenceTransforms
+        self.fromReferenceTransforms = fromReferenceTransforms
+        self.allocationType = allocationType
+        self.allocationVars = allocationVars
+
 
 # Create a 4x4 matrix (list) based on a 3x3 matrix (list) input
 def mat44FromMat33(mat33):
     return [mat33[0], mat33[1], mat33[2], 0.0,
             mat33[3], mat33[4], mat33[5], 0.0,
             mat33[6], mat33[7], mat33[8], 0.0,
-            0,0,0,1.0]
+            0, 0, 0, 1.0]
+
 
 # TODO: Worth moving to *util.py*.
 def filter_words(words, filters_in=None, filters_out=None, flags=0):