From d5f93e23584dd19307d434a3c84d39c4918cb4c4 Mon Sep 17 00:00:00 2001 From: Rutger van Haasteren Date: Thu, 21 Sep 2023 17:13:17 +0200 Subject: [PATCH 1/4] Fixed the TypeError: arrays to stack must be passed as a sequence type such as list or tuple --- tests/test_vector_parameter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_vector_parameter.py b/tests/test_vector_parameter.py index a84e96a6..7b5692f9 100644 --- a/tests/test_vector_parameter.py +++ b/tests/test_vector_parameter.py @@ -75,7 +75,7 @@ def test_vector_parameter_like(self): pta = signal_base.PTA([s(self.psr)]) # parameters - xs = np.hstack(p.sample() for p in pta.params) + xs = np.hstack([p.sample() for p in pta.params]) params = {"B1855+09_red_noise_log10_rho": xs[1:], "B1855+09_efac": xs[0]} # test log likelihood From f4fda97c640b702e32e770a68a1e8db9328040cd Mon Sep 17 00:00:00 2001 From: Rutger van Haasteren Date: Fri, 29 Sep 2023 07:38:59 +0200 Subject: [PATCH 2/4] Added a .readthedocs.yaml config file for Enterprise --- .readthedocs.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..22f9b15a --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,13 @@ +# .readthedocs.yaml +version: 2 + +sphinx: + configuration: docs/conf.py + +formats: all + +python: + version: 3.8 + install: + - requirements: docs/requirements.txt + system_packages: true From a954ca3920cd204ef33f71139f1b10e2fe7dbbad Mon Sep 17 00:00:00 2001 From: Rutger van Haasteren Date: Mon, 6 Nov 2023 10:17:14 +0100 Subject: [PATCH 3/4] Updated .readthedocs.yaml file to include os --- .readthedocs.yaml | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 22f9b15a..dd2aa46c 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,13 +1,35 @@ -# .readthedocs.yaml +# Read the Docs configuration file for Sphinx projects +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required version: 2 +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + # You can also specify other tool versions: + # nodejs: "20" + # rust: "1.70" + # golang: "1.20" + +# Build documentation in the "docs/" directory with Sphinx sphinx: configuration: docs/conf.py + # You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs + # builder: "dirhtml" + # Fail on all warnings to avoid broken references + # fail_on_warning: true -formats: all +# Optionally build your docs in additional formats such as PDF and ePub +# formats: +# - pdf +# - epub -python: - version: 3.8 - install: - - requirements: docs/requirements.txt - system_packages: true +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +# python: +# install: +# - requirements: docs/requirements.txt From 7fb147fab7e9bd8dc7f2592be07e532911795d86 Mon Sep 17 00:00:00 2001 From: Rutger van Haasteren Date: Mon, 6 Nov 2023 10:40:19 +0100 Subject: [PATCH 4/4] Added requirements for the RTD build --- .readthedocs.yaml | 8 ++++---- docs/requirements.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 docs/requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index dd2aa46c..94591f6e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,7 +8,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.12" + python: "3.10" # You can also specify other tool versions: # nodejs: "20" # rust: "1.70" @@ -30,6 +30,6 @@ sphinx: # Optional but recommended, declare the Python requirements required # to build your documentation # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html -# python: -# install: -# - requirements: docs/requirements.txt +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 00000000..9076caea --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1 @@ +sphinx_rtd_theme>=1.3.0