cpu2000.py (3671:c60eba24f33b) cpu2000.py (4107:3ac1abf8e035)
1# Copyright (c) 2006 The Regents of The University of Michigan
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright
9# notice, this list of conditions and the following disclaimer in the

--- 89 unchanged lines hidden (view full) ---

99
100 # root of tree for input & output data files
101 data_dir = joinpath(spec_dist, 'data', self.name)
102 # optional subtree with files shared across input sets
103 all_dir = joinpath(data_dir, 'all')
104 # dirs for input & output files for this input set
105 inputs_dir = joinpath(data_dir, input_set, 'input')
106 outputs_dir = joinpath(data_dir, input_set, 'output')
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright
9# notice, this list of conditions and the following disclaimer in the

--- 89 unchanged lines hidden (view full) ---

99
100 # root of tree for input & output data files
101 data_dir = joinpath(spec_dist, 'data', self.name)
102 # optional subtree with files shared across input sets
103 all_dir = joinpath(data_dir, 'all')
104 # dirs for input & output files for this input set
105 inputs_dir = joinpath(data_dir, input_set, 'input')
106 outputs_dir = joinpath(data_dir, input_set, 'output')
107 # keep around which input set was specified
108 self.input_set = input_set
107
108 if not isdir(inputs_dir):
109 raise AttributeError, '%s not found' % inputs_dir
110
111 self.inputs_dir = [ inputs_dir ]
112 if isdir(all_dir):
113 self.inputs_dir += [ joinpath(all_dir, 'input') ]
114 if isdir(outputs_dir):

--- 588 unchanged lines hidden ---
109
110 if not isdir(inputs_dir):
111 raise AttributeError, '%s not found' % inputs_dir
112
113 self.inputs_dir = [ inputs_dir ]
114 if isdir(all_dir):
115 self.inputs_dir += [ joinpath(all_dir, 'input') ]
116 if isdir(outputs_dir):

--- 588 unchanged lines hidden ---