Skip to content

Commit 57e33ae

Browse files
committed
Made first example argument required
1 parent bfd5671 commit 57e33ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/components/pdf_component.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ def data(self):
4141
"""Return a 1D data trace."""
4242
return [self.noisy_pdf(x) for x in self.x_range]
4343

44-
def average_data(self, n: int = 10, optlist: List[int] = None):
44+
def average_data(self, n: int, optlist: List[int] = [1, 2, 3]):
4545
"""Average n-sets of data. Emulates a measurement that may take a while."""
46-
if optlist is None:
47-
optlist = [1, 2, 3]
4846
summed_data = self.data
4947

5048
for _ in range(n):

0 commit comments

Comments
 (0)