[Swift-commit] r4875 - SwiftApps/SwiftMontage/scripts
jonmon at ci.uchicago.edu
jonmon at ci.uchicago.edu
Fri Jul 29 14:15:13 CDT 2011
Author: jonmon
Date: 2011-07-29 14:15:13 -0500 (Fri, 29 Jul 2011)
New Revision: 4875
Added:
SwiftApps/SwiftMontage/scripts/mDiff_wrap.py
SwiftApps/SwiftMontage/scripts/mFitplane_wrap.py
Removed:
SwiftApps/SwiftMontage/scripts/mDiff_wrap.sh
SwiftApps/SwiftMontage/scripts/mFitplane_wrap.sh
Modified:
SwiftApps/SwiftMontage/scripts/mDiffFit_wrap.py
Log:
o replaced mFitplane_wrap.sh and mDiff_wrap.sh with mFitplane_wrap.py and mDiff_wrap.py repectively
o removed some comments from mDiffFit_wrap.py
Modified: SwiftApps/SwiftMontage/scripts/mDiffFit_wrap.py
===================================================================
--- SwiftApps/SwiftMontage/scripts/mDiffFit_wrap.py 2011-07-29 18:17:49 UTC (rev 4874)
+++ SwiftApps/SwiftMontage/scripts/mDiffFit_wrap.py 2011-07-29 19:15:13 UTC (rev 4875)
@@ -35,12 +35,4 @@
open(stat, "a").close()
open(diff, "a").close()
-
-#try:
-# os.mkdir(os.path.dirname(stat))
-# os.mkdir(os.path.dirname(diff))
-#finally:
-# open(stat, "a").close()
-# open(diff, "a").close()
-
sys.exit(0)
Added: SwiftApps/SwiftMontage/scripts/mDiff_wrap.py
===================================================================
--- SwiftApps/SwiftMontage/scripts/mDiff_wrap.py (rev 0)
+++ SwiftApps/SwiftMontage/scripts/mDiff_wrap.py 2011-07-29 19:15:13 UTC (rev 4875)
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+
+# args[0] = -n(o-areas)
+# args[1] = in1.fits
+# args[2] = in2.fits
+# args[3] = out.fits
+# args[4] = header.file
+
+import sys
+import os
+import subprocess
+
+args = sys.argv[1:]
+diff = args[3]
+
+if os.path.islink(diff):
+ diff = os.readlink(args[3])
+
+cmd = "mDiff "+args[0]+" "+args[1]+" "+args[2]+" "+diff+" "+args[4]
+
+ret = subprocess.call(cmd, close_fds=True,
+ shell=True, cwd=os.getcwd())
+
+if not os.access( os.path.dirnamt(diff, os.F_OK)):
+ os.mkdir(os.path.dirname(diff))
+
+open(diff, "a").close()
+
+sys.exit(0)
Property changes on: SwiftApps/SwiftMontage/scripts/mDiff_wrap.py
___________________________________________________________________
Added: svn:executable
+ *
Deleted: SwiftApps/SwiftMontage/scripts/mDiff_wrap.sh
===================================================================
--- SwiftApps/SwiftMontage/scripts/mDiff_wrap.sh 2011-07-29 18:17:49 UTC (rev 4874)
+++ SwiftApps/SwiftMontage/scripts/mDiff_wrap.sh 2011-07-29 19:15:13 UTC (rev 4875)
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-mDiff $1 $2 $3 $4
-
-mkdir -p `dirname $4`
-touch $3
-
-exit 0
Added: SwiftApps/SwiftMontage/scripts/mFitplane_wrap.py
===================================================================
--- SwiftApps/SwiftMontage/scripts/mFitplane_wrap.py (rev 0)
+++ SwiftApps/SwiftMontage/scripts/mFitplane_wrap.py 2011-07-29 19:15:13 UTC (rev 4875)
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+
+# args[0] = -s
+# args[1] = status.file
+# args[2] = in.fits
+
+import sys
+import os
+import subprocess
+
+args = sys.argv[1:]
+stat = args[1]
+
+if os.path.islink(stat):
+ stat = os.readlink(args[1])
+
+cmd = "mStat "+args[0]+" "+args[1]+" "+args[2]
+
+ret = subprocess.call(cmd, close_fds=True,
+ shell=True, cwd=os.getcwd())
+
+if not os.access( os.path.dirnamt(stat, os.F_OK)):
+ os.mkdir(os.path.dirname(stat))
+
+open(stat, "a").close()
+
+sys.exit(0)
Property changes on: SwiftApps/SwiftMontage/scripts/mFitplane_wrap.py
___________________________________________________________________
Added: svn:executable
+ *
Deleted: SwiftApps/SwiftMontage/scripts/mFitplane_wrap.sh
===================================================================
--- SwiftApps/SwiftMontage/scripts/mFitplane_wrap.sh 2011-07-29 18:17:49 UTC (rev 4874)
+++ SwiftApps/SwiftMontage/scripts/mFitplane_wrap.sh 2011-07-29 19:15:13 UTC (rev 4875)
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-mFitplane $1 $2 $3
-
-mkdir -p `dirname $2`
-touch $2
-
-exit 0
More information about the Swift-commit
mailing list