From 52a98b1e0ce3b710df4dcfc14a7ccf254e457782 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 27 Apr 2022 00:45:34 -0500 Subject: [PATCH 1/3] Deprecate git.io URL in README --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index e2b2699c1d..002032dfa9 100644 --- a/README.rst +++ b/README.rst @@ -70,7 +70,8 @@ Alternatively the statistical model and observational data can be read from its >>> import pyhf >>> import requests >>> pyhf.set_backend("numpy") - >>> wspace = pyhf.Workspace(requests.get("https://git.io/JJYDE").json()) + >>> url = "https://raw.githubusercontent.com/scikit-hep/pyhf/HEAD/docs/examples/json/2-bin_1-channel.json" + >>> wspace = pyhf.Workspace(requests.get(url).json()) >>> model = wspace.model() >>> data = wspace.data(model) >>> test_mu = 1.0 From 1b894cbc0c0be10b2f5109cace2bf80881eac688 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 27 Apr 2022 00:46:00 -0500 Subject: [PATCH 2/3] deprecate git.io urls in infer cli docs --- src/pyhf/cli/infer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyhf/cli/infer.py b/src/pyhf/cli/infer.py index 020f1ee1b4..544d0f9ae9 100644 --- a/src/pyhf/cli/infer.py +++ b/src/pyhf/cli/infer.py @@ -63,7 +63,7 @@ def fit( .. code-block:: shell - $ curl -sL https://git.io/JJYDE | pyhf fit --value + $ curl -sL https://raw.githubusercontent.com/scikit-hep/pyhf/HEAD/docs/examples/json/2-bin_1-channel.json | pyhf fit --value \b { @@ -176,7 +176,7 @@ def cls( .. code-block:: shell - $ curl -sL https://git.io/JJYDE | pyhf cls + $ curl -sL https://raw.githubusercontent.com/scikit-hep/pyhf/HEAD/docs/examples/json/2-bin_1-channel.json | pyhf cls \b { From 115b4374cb293d760ca9df13c9175e41103d219a Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 27 Apr 2022 10:28:21 -0500 Subject: [PATCH 3/3] Use master as HEAD doesn't work --- README.rst | 2 +- src/pyhf/cli/infer.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 002032dfa9..f15ea7da05 100644 --- a/README.rst +++ b/README.rst @@ -70,7 +70,7 @@ Alternatively the statistical model and observational data can be read from its >>> import pyhf >>> import requests >>> pyhf.set_backend("numpy") - >>> url = "https://raw.githubusercontent.com/scikit-hep/pyhf/HEAD/docs/examples/json/2-bin_1-channel.json" + >>> url = "https://raw.githubusercontent.com/scikit-hep/pyhf/master/docs/examples/json/2-bin_1-channel.json" >>> wspace = pyhf.Workspace(requests.get(url).json()) >>> model = wspace.model() >>> data = wspace.data(model) diff --git a/src/pyhf/cli/infer.py b/src/pyhf/cli/infer.py index 544d0f9ae9..5081d2d156 100644 --- a/src/pyhf/cli/infer.py +++ b/src/pyhf/cli/infer.py @@ -63,7 +63,7 @@ def fit( .. code-block:: shell - $ curl -sL https://raw.githubusercontent.com/scikit-hep/pyhf/HEAD/docs/examples/json/2-bin_1-channel.json | pyhf fit --value + $ curl -sL https://raw.githubusercontent.com/scikit-hep/pyhf/master/docs/examples/json/2-bin_1-channel.json | pyhf fit --value \b { @@ -176,7 +176,7 @@ def cls( .. code-block:: shell - $ curl -sL https://raw.githubusercontent.com/scikit-hep/pyhf/HEAD/docs/examples/json/2-bin_1-channel.json | pyhf cls + $ curl -sL https://raw.githubusercontent.com/scikit-hep/pyhf/master/docs/examples/json/2-bin_1-channel.json | pyhf cls \b {