This file contains hidden or 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 ast | |
import requests | |
class FunctionExtractor(ast.NodeVisitor): | |
def __init__(self): | |
self.functions = [] | |
self.function_calls = [] | |
def visit_FunctionDef(self, node): | |
function_code = ast.unparse(node) |
This file contains hidden or 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 PIL import Image | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import time | |
from colour.plotting import * | |
def plot_xy_coordinates_with_color(xy_and_rgb_np, output_png_path): | |
start_time = time.time() | |
xy = xy_and_rgb_np[:, :2] |