- Name: Geetansh Saxena
- Organisation: NumFOCUS
- Sub-Organisation: Colour Science
- Project Title: Adding New Colour Models
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
import asyncio | |
import json | |
import logging | |
from functools import partial, reduce | |
from pathlib import Path | |
import aiofiles | |
import aiohttp | |
import aiometer |
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
apt: | |
sources: | |
hashicorp: | |
keyid: 798AEC654E5C15428C8E42EEAA16FCBCA621E701 # fingerprint of https://apt.releases.hashicorp.com/gpg to fetch from Ubuntu Keyserver | |
source: "deb [signed-by=$KEY_FILE] https://apt.releases.hashicorp.com $RELEASE main" | |
docker: | |
keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88 | |
source: "deb [signed-by=$KEY_FILE] https://download.docker.com/linux/ubuntu $RELEASE stable" | |
package_update: true | |
packages: |
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
from algorithm import parallelize | |
from benchmark import Benchmark | |
from math import min | |
from math.limit import inf | |
from python import Python | |
from tensor import Tensor, TensorSpec, TensorShape | |
from random import rand | |
from time import now | |
from utils.index import Index |
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
# Standard claims at https://webstore.ansi.org/preview-pages/ESTA/preview_ANSI+E1.54-2015.pdf gives [0.4254, 0.4044] | |
import colour | |
# Blackbody: 360, 780, 1nm | |
# CIE 1931 2 Degree Standard Observer: 360, 780, 1nm | |
# Method: ASTM E308 | |
print( | |
colour.XYZ_to_xy( | |
colour.sd_to_XYZ( |
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
<?xml version='1.0' ?> | |
<!-- | |
Why is this one giant script instead of a bunch of smaller scripts? | |
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't | |
really much of a programming language there is no easy way to use an IDE and jump between | |
includes, find usages of variables, and just generally quickly search things. It was found to | |
be easier to have a single large file that a developer can quickly jump up and down in when | |
trying to understand what the BuildGraph script is doing. |
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
#!/usr/bin/env python | |
""" | |
AideDD - Atlas | |
============== | |
This Python module extracts the map data from | |
`AideDD Atlas <https://www.aidedd.org/public/atlas>`__ | |
The following packages are required: |
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
[tool.poetry] | |
name = "colour" | |
version = "0.4.0" | |
description = "Colour Science for Python" | |
license = "BSD-3-Clause" | |
authors = [ "Colour Developers <[email protected]>" ] | |
maintainers = [ "Colour Developers <[email protected]>" ] | |
readme = 'README.rst' | |
repository = "https://github.com/colour-science/colour" | |
homepage = "https://www.colour-science.org/" |
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
{ | |
"ALEXA SXT": { | |
"A-2_2": { | |
"-2": { | |
"Directory": "/20210601/A003R732/A003R732/A003C003_210519_R732", | |
"Encoding": "LOG-C/AWG", | |
"Grey Card (Sequence)": [ | |
[0.255043625831604, 0.24865077435970306, 0.23095490038394928], | |
[0.2548905611038208, 0.2486673891544342, 0.23095150291919708], | |
[0.2553250789642334, 0.24885307252407074, 0.23137225210666656], |
This file has been truncated, but you can view the full file.
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
{ | |
"ALEXA SXT": { | |
"Flat Field": { | |
"NA": { | |
"Samples (Sequence)": [ | |
[ | |
[0.671089768409729, 0.6727330684661865, 0.6635704040527344], | |
[0.6711151003837585, 0.6730829477310181, 0.6639554500579834], | |
[0.6708062291145325, 0.6727433204650879, 0.6637686491012573], | |
[0.6708905696868896, 0.6724928021430969, 0.663275420665741], |
NewerOlder