Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0e2a14

Browse files
Progress Report for GSoC Coding Phase 2 Last 2 weeks
1 parent 25f98be commit e0e2a14

File tree

1 file changed

+37
-0
lines changed
  • content/posts/GSoC_Coding_Phase_Blog_4

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: "GSoC Coding Phase 2 Blog 2"
3+
date: 2020-07-23T19:47:51+05:30
4+
draft: false
5+
categories: ["News", "GSoC"]
6+
description: "Progress Report for the second half of the Google Summer of Code 2020 Phase 2 for the Baseline Images Problem"
7+
displayInList: true
8+
author: Sidharth Bansal
9+
---
10+
11+
Google Summer of Code 2020's second evaluation is about to complete. Now we are about to start with the final coding phase. This post discusses about the progress so far in the last two weeks of the second coding period from 13 July to 26 July 2020.
12+
13+
## Modular approach towards removal of matplotlib baseline images
14+
15+
We have divided the work in two parts as discussed in the [previous blog](https://matplotlib.org/matplotblog/posts/gsoc_coding_phase_blog_3/). The first part is the generation of the baseline images discussed below. The second part is the modification of the baseline images. The modification part will be implemented in the last phase of the Google Summer of Code 2020.
16+
17+
## Generation of the matplotlib baseline images
18+
19+
Now, we have started removing the use of the `matplotlib_baseline_images` package. After the changes proposed in the [previous PR](https://github.com/matplotlib/matplotlib/pull/17557), the developer will have no baseline images on fresh install of matplotlib. So, the developer would need to generate matplotlib baseline images locally to get started with the testing part of the mpl.
20+
The images can be generated by the image comparison tests with use of `matplotlib_baseline_image_generation` flag from the command line. Once these images are generated for the first time, then they can be used as the baseline images for the later times for comparison. This is the main principle adopted.
21+
22+
## Completion of the generation of images for the matplotlib directory
23+
24+
We successfully created the `matplotlib_baseline_image_generation` flag in the beginning of the second evaluation but images were not created in the `baseline images` directory inside the `matplotlib` and `mpl_toolkits` directories, instead they were created in the `result_images` directory. So, we implemented this functionality. The images are created in the `lib/matplotlib/tests/baseline_images` directory directly now in the baseline image generation step. The baseline image generation step uses `python3 -mpytest lib/matplotlib --matplotlib_baseline_image_generation` command. Later on, running the pytests with `python3 -mpytest lib/matplotlib` will start the image comparison.
25+
26+
Right now, the matplotlib_baseline_image_generation flag works for the matplotlib directory. We are trying to achieve the same functionality for the mpl_toolkits directory.
27+
28+
## Future Goals
29+
30+
Once the generation of the baseline images for `mpl_toolkits` directory is completed in the [current PR](https://github.com/matplotlib/matplotlib/pull/17793), we will move to the modification of the baseline images in the third coding phase. The addition of new baseline image and deletion of the old baseline image will also be implemented in the last phase of GSoC. Modification of baseline images will be further divided into two sub tasks: addition of new baseline image and the deletion of the previous baseline image.
31+
32+
33+
## Daily Meet-ups
34+
35+
Monday to Thursday meeting initiated at [11:00pm IST](https://everytimezone.com/) via Zoom. Meeting notes are present at HackMD.
36+
37+
I am grateful to be part of such a great community. Project is really interesting and challenging :) Thanks Thomas, Antony and Hannah for helping me so far.

0 commit comments

Comments
 (0)