Commit Graph

22 Commits

Author SHA1 Message Date
Thomas J. Fan 1fc86b6aac
MNT Update black to stable version (#22474) 2022-02-15 11:36:26 +01:00
Dimitri Papadopoulos Orfanos d4d5f8c7e0
MAINT consistent use of `print(__doc__)` in examples (#21307)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
2021-10-22 15:33:22 +02:00
Thomas J. Fan 70a185ae59
MAINT Enable and run black on examples (#20502) 2021-10-07 10:13:00 +02:00
Nils Werner d619d96d55
DOC Tomography L1 reconstruction example: use dot product operator (#18722) 2020-11-02 16:39:11 +01:00
Thomas J. Fan 7cc0177f8e
MNT Replaces numpy alias with builtin typse (#17687)
* MNT Replaces numpy alias with builtin typse

* STY Lint error
2020-06-24 16:51:51 +02:00
Maren Westermann 465f29f4f6
shorten links in examples-applications (#17635) 2020-06-19 13:35:32 +02:00
surgan12 62d2059804 MNT remove __future__ imports (#12791) 2019-02-02 22:05:06 +08:00
Loïc Estève 1557cb8a19 EXA Fix plot tomography l1 reconstruction (#11100)
* Ensure that the number of angles is integer

* Fix plot_tomography_l1_reconstruction.py

Error was: TypeError: 'numpy.float64' object cannot be interpreted as an integer.

[doc build]
2018-05-17 09:55:28 +10:00
Sebastin Santy e33e84dbf7 [MRG] FIX Examples use int / int without __future__.division (#9426) 2017-07-23 12:11:49 +10:00
Loïc Estève b185c4e8f9 FIX examples with numpy 1.13 2017-06-09 00:21:41 +02:00
Aman Dalmia 13cc121b30 [MRG] Remove DeprecationWarnings in examples due to using floats instead of ints (#8040) 2017-02-03 15:21:03 +01:00
Loïc Estève 02b9a726e1 DOC Fix plot_tomography_l1_reconstruction example
numpy 1.10 raises an exception when doing inplace operation
with an int and float array.
2015-10-15 16:37:24 +02:00
Andreas Mueller da9a91d8f5 COSMIT remove unnecessary float casting from tomography example 2015-05-12 16:47:59 -04:00
Robert Layton dacfd8bd5d DOC: Replaced all BSD style licenses with "BSD 3 clause"
Replaced all BSD style licenses with "BSD 3 clause"
Not checked yet!

Removed duplicate "3 clause, 3 clause"

Removed trailing period if exists

Fixed some missed licences, still about 50 to do, but those can be automated

Think I got the last of them.

Apparently me and sed have different ideas of regex.

Found a few more
2013-04-30 08:34:46 +02:00
Lars Buitinck 837093df7f P3K: use print as a function in the examples
Also corrected some typos, including two people misspelling their own names :)
2013-02-01 15:04:42 +01:00
Lars Buitinck 3ca3e95b72 DOC rm references to deprecated stuff 2012-09-20 22:15:39 +02:00
Andreas Mueller 63e99023b6 DOC fixed some sphinx errors, issues in docs.... 2012-09-03 23:48:32 +01:00
Lars Buitinck 0b026db3ca FIX small stuff in new tomography example
* use reshape instead of ".shape =" on models' coef_ attribute
* remove unused variables
2012-01-15 16:01:01 +01:00
GaelVaroquaux 6cdf7ddeb4 MISC: shorten a bit the description 2012-01-15 10:43:13 +01:00
emmanuelle f43236bdbe Tomography example: PEP08, typos... 2012-01-15 10:43:13 +01:00
emmanuelle 7414e37349 COSMIT: PEP08 2012-01-15 10:43:13 +01:00
emmanuelle 63ce5a5ca8 Example on tomography reconstruction with Lasso for the gallery. 2012-01-15 10:43:12 +01:00