Skip to content

Instantly share code, notes, and snippets.

View paulgribble's full-sized avatar

Paul Gribble paulgribble

View GitHub Profile
@paulgribble
paulgribble / pip_upgrade_all.py
Created June 22, 2022 20:37
upgrade all packages using pip
import pkg_resources
from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
call("pip install --upgrade " + ' '.join(packages), shell=True)
@paulgribble
paulgribble / batchsize.py
Created November 5, 2023 15:01
Effect of batch size on simulation time per movement during MotorNet training
# %%
import os
import time
import sys
import json
import numpy as np
import torch as th
import matplotlib.pyplot as plt
import motornet as mn
@paulgribble
paulgribble / test_motornet.py
Last active November 7, 2023 14:18
motornet tests
import os, time, sys, json
import numpy as np
import torch as th
import matplotlib.pyplot as plt
import motornet as mn
def main_fcn(USE_DUMMY_FUN):
print(f"\nUSE_DUMMY_FUN = {USE_DUMMY_FUN}\n")