X-Git-Url: http://users.mur.at/ms/git/gitweb/?p=OpenColorIO-Configs.git;a=blobdiff_plain;f=aces_1.0.0%2Fpython%2Faces_ocio%2Futilities.py;fp=aces_1.0.0%2Fpython%2Faces_ocio%2Futil.py;h=00804e3947710f1dea1e43cb236b01bcc5f9c1bd;hp=f6dfccaaebf941a76b3001b816314782888cdc85;hb=6eac5f132b3888eee16a8306d91b9405346f3ac2;hpb=48d67eb8a5804cd9cabf0a22c3f421502b983b24 diff --git a/aces_1.0.0/python/aces_ocio/util.py b/aces_1.0.0/python/aces_ocio/utilities.py similarity index 78% rename from aces_1.0.0/python/aces_ocio/util.py rename to aces_1.0.0/python/aces_ocio/utilities.py index f6dfcca..00804e3 100644 --- a/aces_1.0.0/python/aces_ocio/util.py +++ b/aces_1.0.0/python/aces_ocio/utilities.py @@ -18,7 +18,7 @@ __email__ = 'aces@oscars.org' __status__ = 'Production' __all__ = ['ColorSpace', - 'mat44FromMat33', + 'mat44_from_mat33', 'filter_words', 'files_walker'] @@ -26,22 +26,22 @@ __all__ = ['ColorSpace', # Utility classes and functions # -class ColorSpace: +class ColorSpace(object): """ - A container for data needed to define an OCIO 'Color Space' + A container for data needed to define an *OCIO* *ColorSpace*. """ def __init__(self, name, description=None, - bitDepth=OCIO.Constants.BIT_DEPTH_F32, - equalityGroup=None, + bit_depth=OCIO.Constants.BIT_DEPTH_F32, + equality_group=None, family=None, - isData=False, - toReferenceTransforms=[], - fromReferenceTransforms=[], - allocationType=OCIO.Constants.ALLOCATION_UNIFORM, - allocationVars=[0.0, 1.0]): + is_data=False, + to_reference_transforms=[], + from_reference_transforms=[], + allocation_type=OCIO.Constants.ALLOCATION_UNIFORM, + allocation_vars=[0.0, 1.0]): """ Object description. @@ -57,18 +57,18 @@ class ColorSpace: """ self.name = name - self.bitDepth = bitDepth + self.bit_depth = bit_depth self.description = description - self.equalityGroup = equalityGroup + self.equality_group = equality_group self.family = family - self.isData = isData - self.toReferenceTransforms = toReferenceTransforms - self.fromReferenceTransforms = fromReferenceTransforms - self.allocationType = allocationType - self.allocationVars = allocationVars + self.is_data = is_data + self.to_reference_transforms = to_reference_transforms + self.from_reference_transforms = from_reference_transforms + self.allocation_type = allocation_type + self.allocation_vars = allocation_vars -def mat44FromMat33(mat33): +def mat44_from_mat33(mat33): """ Creates a 4x4 matrix from given 3x3 matrix.