Changeset 32897 for trunk/ippdor/src
- Timestamp:
- Dec 8, 2011, 11:31:08 AM (15 years ago)
- Location:
- trunk/ippdor/src
- Files:
-
- 3 edited
-
executables/ippdor_chip_to_warp.py (modified) (3 diffs)
-
ipp/Gpc1Manager.py (modified) (2 diffs)
-
ipp/constants/Globals.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdor/src/executables/ippdor_chip_to_warp.py
r32894 r32897 44 44 def __init__(self, 45 45 label, 46 recipient, 47 host='ippdb01.ifa.hawaii.edu', 48 user='ipp', 49 passwd='ipp'): 46 recipient): 50 47 """ 51 48 The constructor: … … 54 51 - creates a local directory 55 52 """ 56 Gpc1Manager.__init__(self, recipient=recipient , host=host, user=user, passwd=passwd)53 Gpc1Manager.__init__(self, recipient=recipient) 57 54 self.label = label 58 55 if self.is_label_used(): … … 231 228 print 'Aborting' 232 229 sys.exit(4) 233 if os.getenv('USER') == 'ippdor': 234 BUILDER = ChipWarpBuilder(LABEL, RECIPIENT) 235 else: 236 BUILDER = ChipWarpBuilder(LABEL, RECIPIENT, host='ipp0012.ifa.hawaii.edu') 230 BUILDER = ChipWarpBuilder(LABEL, RECIPIENT) 237 231 # Check exposures 238 232 EXPOSURES_IDS = dict() -
trunk/ippdor/src/ipp/Gpc1Manager.py
r32890 r32897 5 5 import sys 6 6 import MySQLdb 7 from ipp.IppSite import Gpc1 7 8 8 9 ################################################################# … … 12 13 """ 13 14 def __init__(self, 14 recipient = 'schastel@ifa.hawaii.edu', 15 host = 'ippdb01.ifa.hawaii.edu', 16 user = 'ipp', 17 passwd = 'ipp'): 15 recipient = 'schastel@ifa.hawaii.edu'): 18 16 """Create a connector to the gpc1 database 19 17 """ 20 18 self.recipient = recipient 21 self.connector = MySQLdb.connect(host, user, passwd, db = 'gpc1') 19 self.connector = MySQLdb.connect(Gpc1.HOST, 20 Gpc1.USER, 21 Gpc1.PASSWORD, 22 db = Gpc1.NAME) 22 23 self.label = None # Set by derived classes 23 24 -
trunk/ippdor/src/ipp/constants/Globals.py
r32892 r32897 17 17 from ipp.helpers import hostname 18 18 from ipp.exceptions.UninstantiableIppException import UninstantiableIppException 19 from ipp.IppSite import IppSite 19 20 20 21 class Globals: … … 27 28 raise UninstantiableIppException() 28 29 29 if hostname().startswith('ipp'): # Production cluster 30 IPPDOR_BINARY_PATH = '/home/panstarrs/ippdor/local/bin' 31 LOCAL_TMP_DIR = '/export/%s.0/ippdor/processing' % hostname() 32 NFS_TMP_DIR = '/home/panstarrs/ippdor/processing' 33 IPP_BIN_PATH = '/home/panstarrs/ippdor/psconfig/20110920/current.lin64/bin' 34 else: # Development 35 IPPDOR_BINARY_PATH = '~/local/bin' 36 LOCAL_TMP_DIR = '/tmp/ippdor_processing' 37 NFS_TMP_DIR = '~/ippdor_processing' 38 IPP_BIN_PATH = '~/ipp/default.linux' 30 IPPDOR_BINARY_PATH = IppSite.TARGET_BINARY_DIRECTORY 31 LOCAL_TMP_DIR = IppSite.LOCAL_TMP_DIR 32 NFS_TMP_DIR = IppSite.NFS_TMP_DIR 33 IPP_BIN_PATH = IppSite.IPP_BIN_PATH 39 34 40 35 # Global requirements … … 42 37 43 38 # Condor scripts 44 GENERATE_EXPOSURE_DAG = '%s/generate_exposure_dag.py %s %s %s' % (IPPDOR_BINARY_PATH, '%s', '%s', '%s') 39 GENERATE_EXPOSURE_DAG = '%s/generate_exposure_dag.py %s %s %s' % (IPPDOR_BINARY_PATH, 40 '%s', '%s', '%s') 45 41 46 42 ################### … … 67 63 # Stack stage 68 64 STACKTOOL = '%s/stacktool' % IPP_BIN_PATH 69
Note:
See TracChangeset
for help on using the changeset viewer.
