summaryrefslogtreecommitdiff
path: root/tools/photodiodesim/pd_sim.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/photodiodesim/pd_sim.py')
-rwxr-xr-xtools/photodiodesim/pd_sim.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/photodiodesim/pd_sim.py b/tools/photodiodesim/pd_sim.py
index 66cdacc..7ff61c8 100755
--- a/tools/photodiodesim/pd_sim.py
+++ b/tools/photodiodesim/pd_sim.py
@@ -10,12 +10,13 @@ import numpy as np
import pylab as pl
import scipy.io
import re
+import os
w_x = np.random.ranf() * np.pi/2 #rad/s
w_y = np.random.ranf() * np.pi/2 #rad/s
w_z = np.random.ranf() * np.pi/2 #rad/s
-filename_export_mat = "./pd_sim.mat"
-filename_export_csv = "./pd_sim.csv"
+filename_export_mat = os.path.join(os.path.curdir,"pd_sim.mat")
+filename_export_csv = os.path.join(os.path.curdir,"pd_sim.csv")
sun = [1,1,1]
sun_intensity = 1.0
earth = [0,-1,-1]