Skip to content

Commit 600bb9b

Browse files
committed
Update docs
1 parent 9571239 commit 600bb9b

File tree

8 files changed

+35
-27
lines changed

8 files changed

+35
-27
lines changed

.readthedocs.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
sphinx:
7+
configuration: docs/conf.py
8+
9+
build:
10+
image: latest
11+
12+
formats:
13+
- epub
14+
- pdf
15+
16+
python:
17+
version: 3.7
18+
install:
19+
- requirements: requirements.txt

MANIFEST.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include README.md
22
include LICENSE
3-
include MANIFEST.in
3+
include MANIFEST.in
4+
include requirements.txt

deepxde/data/dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class DataSet(Data):
1212
"""Fitting Data set.
13-
13+
1414
Args:
1515
col_x: List of integers.
1616
col_y: List of integers.

deepxde/data/op_dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class OpDataSet(Data):
1212
"""Fitting operator data set.
13-
13+
1414
Args:
1515
col_x: List of integers.
1616
col_y: List of integers.

deepxde/maps/opnn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def stacked_dense(self, inputs, units, stack_size, activation=None, use_bias=Tru
102102
103103
Returns:
104104
tensor: outputs.
105-
105+
106106
If outputs is the NN output, i.e., units = 1,
107107
2D tensor with shape: `(batch_size, stack_size)`;
108108
otherwise, 3D tensor with shape: `(batch_size, stack_size, units)`.

docs/conf.py

-13
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@
4646
"sphinx.ext.viewcode",
4747
]
4848

49-
autodoc_mock_imports = [
50-
"matplotlib",
51-
"numpy",
52-
"salib",
53-
"scikit-learn",
54-
"scipy",
55-
"tensorflow",
56-
]
57-
5849
# Add any paths that contain templates here, relative to this directory.
5950
templates_path = ["_templates"]
6051

@@ -122,16 +113,12 @@
122113

123114
latex_elements = {
124115
# The paper size ('letterpaper' or 'a4paper').
125-
#
126116
# 'papersize': 'letterpaper',
127117
# The font size ('10pt', '11pt' or '12pt').
128-
#
129118
# 'pointsize': '10pt',
130119
# Additional stuff for the LaTeX preamble.
131-
#
132120
# 'preamble': '',
133121
# Latex figure (float) alignment
134-
#
135122
# 'figure_align': 'htbp',
136123
}
137124

requirements.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
matplotlib
2+
numpy
3+
salib
4+
scikit-learn
5+
scipy
6+
tensorflow

setup.py

+5-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
from setuptools import find_packages
44

55

6-
with io.open("README.md", "r", encoding="utf-8") as fh:
7-
long_description = fh.read()
6+
with io.open("README.md", "r", encoding="utf-8") as f:
7+
long_description = f.read()
88

9+
with open("requirements.txt", "r") as f:
10+
install_requires = [x.strip() for x in f.readlines()]
911

1012
setup(
1113
name="DeepXDE",
@@ -18,14 +20,7 @@
1820
url="https://github.com/lululxvi/deepxde",
1921
download_url="https://github.com/lululxvi/deepxde/tarball/v0.1.1",
2022
license="Apache-2.0",
21-
install_requires=[
22-
"matplotlib",
23-
"numpy",
24-
"salib",
25-
"scikit-learn",
26-
"scipy",
27-
"tensorflow",
28-
],
23+
install_requires=install_requires,
2924
classifiers=[
3025
"Development Status :: 3 - Alpha",
3126
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)