-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
Showcases light sources dataset. | ||
""" | ||
|
||
from __future__ import division, unicode_literals | ||
|
||
from pprint import pprint | ||
|
||
import colour | ||
from colour.utilities.verbose import message_box | ||
|
||
message_box('Light Sources Dataset') | ||
|
||
message_box('Light sources relative spectral power distributions dataset.') | ||
pprint(sorted(colour.LIGHT_SOURCES_RELATIVE_SPDS.keys())) | ||
|
||
print('\n') | ||
|
||
message_box('Light sources chromaticity coordinates dataset.') | ||
# Filtering aliases. | ||
observers = dict(((observer, dataset) | ||
for observer, dataset in sorted(colour.LIGHT_SOURCES.items()) | ||
if ' ' in observer)) | ||
for observer, light_source in observers.items(): | ||
print('"{0}".'.format(observer)) | ||
for illuminant, xy in sorted(light_source.items()): | ||
print('\t"{0}": {1}'.format(illuminant, xy)) | ||
print('\n') |