Skip to content

Commit a37ad8c

Browse files
committed
update the docstring
1 parent 7b31fa5 commit a37ad8c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

data/raw/f_2505_junda_james.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,16 @@ def f_2505(image_path, kernel_size):
5555
import numpy as np
5656

5757
class TestCases(unittest.TestCase):
58-
@classmethod
59-
def setUpClass(cls):
58+
def setUp(self):
6059
# Create a dummy image for testing
61-
cls.dummy_img_path = "test_image.jpg"
60+
self.dummy_img_path = "test_image.jpg"
6261
np.random.seed(42)
6362
dummy_img = np.random.randint(0, 255, (20, 20, 3), dtype=np.uint8)
64-
cv2.imwrite(cls.dummy_img_path, dummy_img)
63+
cv2.imwrite(self.dummy_img_path, dummy_img)
6564

66-
@classmethod
67-
def tearDownClass(cls):
65+
def tearDown(self):
6866
# Cleanup the dummy image
69-
os.remove(cls.dummy_img_path)
67+
os.remove(self.dummy_img_path)
7068

7169
def test_valid_input(self):
7270
blurred_image, ax_original, ax_blurred = f_2505(self.dummy_img_path, 3)

data/raw/f_3043_junda_james.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def f_3043(file_location, sheet_name):
1414
1515
Returns:
1616
- dict: A dictionary with mean and standard deviation of each column.
17-
- matplotlib.figure.Figure: The figure object containing the bar chart.
17+
- matplotlib.figure.Figure: The figure object containing the bar chart. The figure is titled 'Mean and Standard Deviation', the X-axis is labeled 'Columns', and the Y-axis is labeled 'Values'.
1818
1919
Raises:
2020
- FileNotFoundError: If the Excel file does not exist at the specified path.

data/raw/f_3345_junda_james.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ def f_3345(image_path='image.jpg', histogram_path='histogram.png'):
66
"""
77
Read an image, create a histogram of the image pixel intensities, save the histogram as a PNG file,
88
and return the histogram plot object. The function also displays the original image and its histogram.
9+
The limit to the size of the image depends on the hardware capabilities of the system you are working on.
10+
A possible size of an image is 20x20.
911
1012
Parameters:
1113
- image_path (str): Path to the image file. Defaults to 'image.jpg'.

data/raw/f_3747_junda_james.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
def f_3747(data, date_format, country, country_codes=None):
55
"""
6-
Draw a histogram of the data from a DataFrame column of the pandas after converting the data into a specific format and locale,
6+
Draw a histogram of the data from a DataFrame column of the pandas after converting the data into a specific format,
77
and return the matplotlib Axes object.
88
99
Parameters:
10-
data (DataFrame): The pandas DataFrame containing date strings.
10+
data (DataFrame): The pandas DataFrame containing date strings. The DataFrame has a column named 'dates' with the format '%d/%m/%Y'
1111
date_format (str): The date format string.
1212
country (str): The country name.
1313
country_codes (dict, optional): A dictionary mapping country names. Defaults to a predefined dictionary, where default is:

0 commit comments

Comments
 (0)