Skip to content

Commit 8801878

Browse files
committed
Fixed ffmpeg sourcing for the cluster
1 parent fc176e9 commit 8801878

6 files changed

+261
-465
lines changed

find_nearest.py

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ def find_nearest(vector_2_search,value,how_many=1):
3131
vector_2_search = np.array(vector_2_search)
3232
if isinstance(value,list):
3333
value = np.array(value)
34+
35+
############### Here, we substitute out NaNs so they are never chosen
36+
if np.max(np.isnan(vector_2_search) == 1):
37+
vector_2_search[np.isnan(vector_2_search)] = np.inf
3438

3539
comp_vec = vector_2_search
3640

find_pixelcoords.py

+180-169
Large diffs are not rendered by default.

generate_animation.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
import matplotlib.animation as manimation
2+
import os
3+
4+
if os.path.isdir('/home/common/HolschuhLab/Code/'):
5+
import matplotlib.pyplot as plt
6+
plt.rcParams['animation.ffmpeg_path']='/home/common/HolschuhLab/Code/HolschuhLab_CondaEnv/bin/ffmpeg'
7+
28

39
def generate_animation(fps,title='Matplotlib Animation',comment='Matplotlib Animation'):
410
"""

generate_pickingpdf (2).py

-236
This file was deleted.

0 commit comments

Comments
 (0)