From 535159be480d894a4fa1e31051124c191a4a28a2 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Wed, 21 Mar 2012 16:16:20 +0000 Subject: make windows compatible git-svn-id: https://svn.spreadspace.org/mur.sat@325 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- tools/photodiodesim/pd_sim.py | 5 +++-- 1 file 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] -- cgit v1.2.3