Skip to content

Commit 52d7d65

Browse files
Automatically update the Copyright when building the html (#1074)
* update the year automatically * Fixes for new numpy * Revert test
1 parent cda9876 commit 52d7d65

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# add these directories to sys.path here. If the directory is relative to the
1717
# documentation root, use os.path.abspath to make it absolute, like shown here.
1818

19+
import datetime
1920
import os
2021
import sys
2122
import sphinx_bootstrap_theme
@@ -107,7 +108,8 @@
107108

108109
# General information about the project.
109110
project = u'AutoSklearn'
110-
copyright = u'2014-2019, Machine Learning Professorship Freiburg'
111+
copyright = u"2014-{}, Machine Learning Professorship Freiburg".format(
112+
datetime.datetime.now().year)
111113

112114
# The version info for the project you're documenting, acts as replacement for
113115
# |version| and |release|, also used in various other places throughout the

test/test_data/test_feature_validator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def input_data_featuretest(request):
4141
elif request.param == 'numpy_numericalonly_nan':
4242
array = np.random.uniform(10, size=(100, 10))
4343
array[50, 0:5] = np.nan
44-
return array
44+
# Somehow array is changed to dtype object after np.nan
45+
return array.astype('float')
4546
elif request.param == 'numpy_mixed_nan':
4647
array = np.column_stack([
4748
np.random.uniform(10, size=(100, 3)),

0 commit comments

Comments
 (0)