Skip to content

Commit 584710e

Browse files
author
IvanARashid
committed
Commented out unused check methods
1 parent 1a0113c commit 584710e

File tree

1 file changed

+31
-25
lines changed

1 file changed

+31
-25
lines changed

src/wrappers/OsipiBase.py

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -123,50 +123,56 @@ def osipi_accepted_dimensions(self):
123123
(True, True, False, False, False, False)
124124
"""
125125

126-
return (False,) * 6
126+
#return (False,) * 6
127+
return True
127128

128129
def osipi_accepts_dimension(self, dim):
129130
"""Query if the selection dimension is fittable"""
130131

131-
accepted = self.accepted_dimensions()
132-
if dim < 0 or dim > len(accepted):
133-
return False
134-
return accepted[dim]
132+
#accepted = self.accepted_dimensions()
133+
#if dim < 0 or dim > len(accepted):
134+
#return False
135+
#return accepted[dim]
136+
return True
135137

136138
def osipi_check_required_bvalues(self):
137139
"""Checks if the input bvalues fulfil the algorithm requirements"""
138140

139-
if self.bvalues.size < self.required_bvalues:
140-
print("Conformance error: Number of b-values.")
141-
return False
142-
else:
143-
return True
141+
#if self.bvalues.size < self.required_bvalues:
142+
#print("Conformance error: Number of b-values.")
143+
#return False
144+
#else:
145+
#return True
146+
return True
144147

145148
def osipi_check_required_thresholds(self):
146149
"""Checks if the number of input thresholds fulfil the algorithm requirements"""
147150

148-
if (len(self.thresholds) < self.required_thresholds[0]) or (len(self.thresholds) > self.required_thresholds[1]):
149-
print("Conformance error: Number of thresholds.")
150-
return False
151-
else:
152-
return True
151+
#if (len(self.thresholds) < self.required_thresholds[0]) or (len(self.thresholds) > self.required_thresholds[1]):
152+
#print("Conformance error: Number of thresholds.")
153+
#return False
154+
#else:
155+
#return True
156+
return True
153157

154158
def osipi_check_required_bounds(self):
155159
"""Checks if input bounds fulfil the algorithm requirements"""
156-
if self.required_bounds is True and self.bounds is None:
157-
print("Conformance error: Bounds.")
158-
return False
159-
else:
160-
return True
160+
#if self.required_bounds is True and self.bounds is None:
161+
#print("Conformance error: Bounds.")
162+
#return False
163+
#else:
164+
#return True
165+
return True
161166

162167
def osipi_check_required_initial_guess(self):
163168
"""Checks if input initial guess fulfil the algorithm requirements"""
164169

165-
if self.required_initial_guess is True and self.initial_guess is None:
166-
print("Conformance error: Initial guess")
167-
return False
168-
else:
169-
return True
170+
#if self.required_initial_guess is True and self.initial_guess is None:
171+
#print("Conformance error: Initial guess")
172+
#return False
173+
#else:
174+
#return True
175+
return True
170176

171177

172178
def osipi_check_required_bvalues():

0 commit comments

Comments
 (0)