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
""" | |
Client API for receiving images from a Filers server over the network (or locally). | |
To install:: | |
pip install tree_config ffpyplayer | |
To use, see `RemoteVideoPlayer` and the sample script at the end. | |
""" | |
from itertools import accumulate |
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 pyautogui as pag | |
import pyscreeze | |
import pygetwindow | |
import pyperclip | |
from PIL import Image | |
import time | |
import datetime | |
from pathlib import Path | |
from dataclasses import dataclass | |
from textwrap import dedent |
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 math | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.axes_grid1 import make_axes_locatable | |
import scipy.special | |
from scipy.stats import linregress | |
from scipy import integrate | |
import scipy.optimize as optimize | |
from scipy.optimize import curve_fit, minimize, Bounds | |
import numpy as np | |
from functools import partial |
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 dataclasses import dataclass, field | |
from typing import Callable, Union | |
from pathlib import Path | |
import csv | |
import math | |
import numpy as np | |
from functools import partial | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.axes_grid1 import make_axes_locatable | |
from scipy.ndimage import gaussian_filter |
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 pathlib import Path | |
import csv | |
import numpy as np | |
root = Path(r"...") | |
odors = {"CH4", "NH3", "TBP", "TEP", "Air", "Humidity"} | |
odors = list(sorted(odors)) | |
confusents = {"None", "Diesel", "Gasoline", "Roundup", "Tobacco", "Smoke", "Vanilla"} | |
confusents = list(sorted(confusents)) |
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 h5py | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import re | |
from elephant.statistics import time_histogram | |
import quantities | |
from neo import SpikeTrain | |
def arr2str(arr): |
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
package com.cplab.jstripe; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import io.scif.ImageMetadata; | |
import io.scif.config.SCIFIOConfig; |
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
comm = TeensyComm() | |
comm.create_serial_device('COM5') | |
comm.write_serial(comm.make_modio_create(15, 2, 0x12, ModIOFreq.freq_100k, ModIOPullup.disabled)) | |
comm.write_serial(comm.make_modio_write_digital(46, 2, 0x12, False, True)) | |
comm.write_serial(comm.make_modio_write_digital(46, 2, 0x12, False)) | |
for i in range(200): | |
comm.write_serial(comm.make_modio_write_digital(46, 2, 0x12, *vals[i % 2])) | |
#comm.write_serial(comm.make_modio_write_digital(46, 2, 0x13, *vals[i % 2])) |
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 trio | |
import contextlib | |
from async_generator import aclosing | |
async def gen(): | |
for i in range(10): | |
yield i | |
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
"""distutils._msvccompiler | |
Contains MSVCCompiler, an implementation of the abstract CCompiler class | |
for Microsoft Visual Studio 2015. | |
The module is compatible with VS 2015 and later. You can find legacy support | |
for older versions in distutils.msvc9compiler and distutils.msvccompiler. | |
""" | |
# Written by Perry Stoll |
NewerOlder