summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBernhard Tittelbach <xro@realraum.at>2012-03-21 16:16:20 +0000
committerBernhard Tittelbach <xro@realraum.at>2012-03-21 16:16:20 +0000
commit535159be480d894a4fa1e31051124c191a4a28a2 (patch)
tree80f3208d35c56b38298657e7aed63cb3465963c9 /tools
parentadded earthdisc to photodiode simulator (diff)
make windows compatible
git-svn-id: https://svn.spreadspace.org/mur.sat@325 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools')
-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]