Skip to content

Instantly share code, notes, and snippets.

View pantaray's full-sized avatar

Stefan Fuertinger pantaray

View GitHub Profile
@pantaray
pantaray / acme_results_collection.py
Last active October 4, 2022 09:26
Proposed feature addition for ACME
# Consider the following function
def arr_func(x, y, z=3):
return x * (y + z)
# We want to evaluate `arr_func` for three different values of `x` and the same `y`:
xList = [np.array([1, 2, 3]), np.array([-1, -2, -3]), np.array([-1, 2, -3])]
y = np.array([4, 5, 6])
# Firing off `ParallelMap` and collecting results in memory yields
with ParallelMap(arr_func, xList, y, z=0.5, write_worker_results=False) as pmap:
@pantaray
pantaray / how-to-conda-forge.md
Created June 22, 2021 09:05
How to debug conda-forge recipes

A Short Guide for Debugging conda-forge Recipes

Documentation for trouble-shooting broken conda-forge feedstocks exists in several places scattered throughout GitHub, the conda-build docu and the "maintainer" section of the conda-forge docs. However, I was not able to find a concise step by step guide explaining how and what to do when. So here we go:

  1. The very first step should be to fork your recipe from conda-forge to your