We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37440c8 commit 2b24b80Copy full SHA for 2b24b80
pace_neutrons_cli/utils.py
@@ -125,25 +125,6 @@ def IsFirstRun(self):
125
def IsFirstRun(self, val):
126
self.config['pace']['IsFirstRun'] = str(val)
127
128
- @property
129
- def CachedCTFs(self):
130
- try:
131
- retval = self.config['pace']['CachedCTFs'].split(';')
132
- except KeyError:
133
- retval = []
134
- return [val for val in retval if val]
135
-
136
- @CachedCTFs.setter
137
- def CachedCTFs(self, val):
138
139
- val = str(val)
140
- except:
141
- raise RuntimeError('Cached CTF must be convertible to a string')
142
- cached = self.CachedCTFs
143
- if not any(d for d in cached if val in d):
144
- cached += [val]
145
- self.config['pace']['CachedCTFs'] = ';'.join(cached)
146
147
def save(self):
148
with open(self.config_file, 'w') as f:
149
self.config.write(f)
0 commit comments