da83457d51b516d036b3373c6805443f76185451,lib/matplotlib/figure.py,Figure,set_size_inches,#Figure#Any#Any#Any#,875

Before Change


        // argument, so unpack them
        if h is None:
            w, h = w
        if not all(np.isfinite(_) for _ in (w, h)):
            raise ValueError("figure size must be finite not "
                             "({}, {})".format(w, h))
        self.bbox_inches.p1 = w, h

After Change


        if h is None:
            w, h = w
        size = w, h
        if not np.isfinite(size).all() or (np.array(size) <= 0).any():
            raise ValueError(f"figure size must be positive finite not {size}")
        self.bbox_inches.p1 = w, h
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: da83457d51b516d036b3373c6805443f76185451
Time: 2019-04-03
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/figure.py
Class Name: Figure
Method Name: set_size_inches


Project Name: RasaHQ/rasa
Commit Name: ea9ff980bdf1e65abd274ecbe321947d7a2ba049
Time: 2020-09-30
Author: t.wochinger@rasa.com
File Name: rasa/cli/data.py
Class Name:
Method Name: _get_configuration


Project Name: biotite-dev/biotite
Commit Name: 7c84a16bcb2a77c6e461b72507cc7207074158bf
Time: 2021-01-06
Author: anter.jacob@gmail.com
File Name: src/biotite/structure/charges.py
Class Name:
Method Name: _get_parameters