Skip to content

Commit 9051dbc

Browse files
authored
Update repository URL everywhere (#1263)
1 parent 6f87218 commit 9051dbc

40 files changed

+324
-324
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ body:
6161
Please run this command in your console and paste the output below
6262
6363
```shell
64-
python <(curl -s https://raw.githubusercontent.com/fepegar/torchio/main/print_system.py)
64+
python <(curl -s https://raw.githubusercontent.com/TorchIO-project/torchio/main/print_system.py)
6565
```
6666
placeholder: Your system info
6767
render: shell

.github/ISSUE_TEMPLATE/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: ❓ Discussions tab
4-
url: https://github.com/fepegar/torchio/discussions/new
4+
url: https://github.com/TorchIO-project/torchio/discussions/new
55
about: Ask and answer TorchIO-related questions or start a general discussion

.github/ISSUE_TEMPLATE/not_working.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ body:
7070
Please run this command in your console and paste the output below
7171
7272
```shell
73-
python <(curl -s https://raw.githubusercontent.com/fepegar/torchio/main/print_system.py)
73+
python <(curl -s https://raw.githubusercontent.com/TorchIO-project/torchio/main/print_system.py)
7474
```
7575
placeholder: Your system info
7676
render: shell

.github/pull_request_template.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Fixes #{issue_number}.
1313
<!-- You do not need to complete all the items by the time you submit the pull
1414
request, but most likely the changes will only be merged if all the tasks are
1515
done. See more information about the submission process in the
16-
CONTRIBUTING (https://github.com/fepegar/torchio/blob/main/CONTRIBUTING.rst) docs. -->
16+
CONTRIBUTING (https://github.com/TorchIO-project/torchio/blob/main/CONTRIBUTING.rst) docs. -->
1717

1818
<!-- Write an `x` in all the boxes that apply -->
19-
- [ ] I have read the [`CONTRIBUTING`](https://github.com/fepegar/torchio/blob/main/CONTRIBUTING.rst) docs and have a developer setup (especially important are `pre-commit`and `pytest`)
19+
- [ ] I have read the [`CONTRIBUTING`](https://github.com/TorchIO-project/torchio/blob/main/CONTRIBUTING.rst) docs and have a developer setup (especially important are `pre-commit`and `pytest`)
2020
- [ ] Non-breaking change (would not break existing functionality)
2121
- [ ] Breaking change (would cause existing functionality to change)
2222
- [ ] Tests added or modified to cover the changes

CHANGELOG.md

+123-123
Large diffs are not rendered by default.

CITATION.cff

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors:
55
given-names: Fernando
66
orcid: https://orcid.org/0000-0001-9090-3024
77
title: "TorchIO"
8-
repository-code: "https://github.com/fepegar/torchio"
8+
repository-code: "https://github.com/TorchIO-project/torchio"
99
preferred-citation:
1010
type: article
1111
authors:

CONTRIBUTING.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Report bugs
1616
~~~~~~~~~~~
1717

1818
Report bugs
19-
`on GitHub <https://github.com/fepegar/torchio/issues/new?assignees=&labels=bug&template=bug_report.md&title=>`_.
19+
`on GitHub <https://github.com/TorchIO-project/torchio/issues/new?assignees=&labels=bug&template=bug_report.md&title=>`_.
2020

2121
If you are reporting a bug, please include:
2222

@@ -46,7 +46,7 @@ articles, and such.
4646
Submit feedback
4747
~~~~~~~~~~~~~~~
4848

49-
The best way to send feedback is to file an issue at https://github.com/fepegar/torchio/issues.
49+
The best way to send feedback is to file an issue at https://github.com/TorchIO-project/torchio/issues.
5050

5151
If you are proposing a feature:
5252

README.md

+102-102
Large diffs are not rendered by default.

docs/examples/plot_custom_z_spacing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
image spacing across one axis only.
77
88
Inspired by
9-
`this discussion <https://github.com/fepegar/torchio/discussions/885>`_.
9+
`this discussion <https://github.com/TorchIO-project/torchio/discussions/885>`_.
1010
"""
1111

1212
import torch

docs/source/README.rst

+14-14
Original file line numberDiff line numberDiff line change
@@ -27,37 +27,37 @@ the `PyTorch Developer Day 2021 <https://pytorch.org/blog/pytorch-developer-day-
2727

2828
Many groups have used TorchIO for their research.
2929
The complete list of citations is available on `Google Scholar <https://scholar.google.co.uk/scholar?cites=8711392719159421861&sciodt=0,5&hl=en>`_, and the
30-
`dependents list <https://github.com/fepegar/torchio/network/dependents>`_ is
30+
`dependents list <https://github.com/TorchIO-project/torchio/network/dependents>`_ is
3131
available on GitHub.
3232

33-
The code is available on `GitHub <https://github.com/fepegar/torchio>`_.
33+
The code is available on `GitHub <https://github.com/TorchIO-project/torchio>`_.
3434
If you like TorchIO, please go to the repository and star it!
3535

3636
.. raw:: html
3737

38-
<a class="github-button" href="https://github.com/fepegar/torchio" data-icon="octicon-star" data-show-count="true" aria-label="Star fepegar/torchio on GitHub">Star</a>
38+
<a class="github-button" href="https://github.com/TorchIO-project/torchio" data-icon="octicon-star" data-show-count="true" aria-label="Star TorchIO-project/torchio on GitHub">Star</a>
3939
<script async defer src="https://buttons.github.io/buttons.js"></script>
4040

4141
See :doc:`Getting started <quickstart>` for installation instructions and a
4242
usage overview.
4343

4444
Contributions are more than welcome.
45-
Please check our `contributing guide <https://github.com/fepegar/torchio/blob/main/CONTRIBUTING.rst>`_
45+
Please check our `contributing guide <https://github.com/TorchIO-project/torchio/blob/main/CONTRIBUTING.rst>`_
4646
if you would like to contribute.
4747

4848
If you have questions, feel free to ask in the discussions tab:
4949

5050
.. raw:: html
5151

52-
<a class="github-button" href="https://github.com/fepegar/torchio/discussions" data-icon="octicon-comment-discussion" aria-label="Discuss fepegar/torchio on GitHub">Discuss</a>
52+
<a class="github-button" href="https://github.com/TorchIO-project/torchio/discussions" data-icon="octicon-comment-discussion" aria-label="Discuss TorchIO-project/torchio on GitHub">Discuss</a>
5353
<script async defer src="https://buttons.github.io/buttons.js"></script>
5454

5555
If you found a bug or have a feature request, please open an issue:
5656

5757
.. raw:: html
5858

5959
<!-- Place this tag where you want the button to render. -->
60-
<a class="github-button" href="https://github.com/fepegar/torchio/issues" data-icon="octicon-issue-opened" data-show-count="true" aria-label="Issue fepegar/torchio on GitHub">Issue</a>
60+
<a class="github-button" href="https://github.com/TorchIO-project/torchio/issues" data-icon="octicon-issue-opened" data-show-count="true" aria-label="Issue TorchIO-project/torchio on GitHub">Issue</a>
6161
<!-- Place this tag in your head or just before your close body tag. -->
6262
<script async defer src="https://buttons.github.io/buttons.js"></script>
6363

@@ -78,35 +78,35 @@ If you found a bug or have a feature request, please open an issue:
7878
:alt: Conda version
7979

8080
.. |Google-Colab-notebook| image:: https://colab.research.google.com/assets/colab-badge.svg
81-
:target: https://github.com/fepegar/torchio/blob/main/tutorials/README.md
81+
:target: https://github.com/TorchIO-project/torchio/blob/main/tutorials/README.md
8282
:alt: Google Colab notebooks
8383

8484
.. |Docs-status| image:: https://img.shields.io/readthedocs/torchio?label=Docs&logo=Read%20the%20Docs
8585
:target: https://torchio.rtfd.io/?badge=latest
8686
:alt: Documentation status
8787

88-
.. |Tests-status| image:: https://github.com/fepegar/torchio/actions/workflows/tests.yml/badge.svg
89-
:target: https://github.com/fepegar/torchio/actions/workflows/tests.yml
88+
.. |Tests-status| image:: https://github.com/TorchIO-project/torchio/actions/workflows/tests.yml/badge.svg
89+
:target: https://github.com/TorchIO-project/torchio/actions/workflows/tests.yml
9090
:alt: Tests status
9191

9292
.. |Ruff| image:: https://camo.githubusercontent.com/bb88127790fb054cba2caf3f3be2569c1b97bb45a44b47b52d738f8781a8ede4/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f636861726c6965726d617273682f727566662f6d61696e2f6173736574732f62616467652f76312e6a736f6e
9393
:target: https://docs.astral.sh/ruff/
9494
:alt: Code style: Ruff
9595

96-
.. |Coverage-codecov| image:: https://codecov.io/gh/fepegar/torchio/branch/main/graphs/badge.svg
97-
:target: https://app.codecov.io/github/fepegar/torchio
96+
.. |Coverage-codecov| image:: https://codecov.io/gh/TorchIO-project/torchio/branch/main/graphs/badge.svg
97+
:target: https://app.codecov.io/github/TorchIO-project/torchio
9898
:alt: Coverage status
9999

100-
.. |Code-Quality| image:: https://img.shields.io/scrutinizer/g/fepegar/torchio.svg?label=Code%20quality&logo=scrutinizer
101-
:target: https://scrutinizer-ci.com/g/fepegar/torchio/?branch=main
100+
.. |Code-Quality| image:: https://img.shields.io/scrutinizer/g/TorchIO-project/torchio.svg?label=Code%20quality&logo=scrutinizer
101+
:target: https://scrutinizer-ci.com/g/TorchIO-project/torchio/?branch=main
102102
:alt: Code quality
103103

104104
.. |YouTube| image:: https://img.shields.io/youtube/views/UEUVSw5-M9M?label=watch&style=social
105105
:target: https://www.youtube.com/watch?v=UEUVSw5-M9M
106106
:alt: YouTube
107107

108108
.. |Code-Maintainability| image:: https://api.codeclimate.com/v1/badges/518673e49a472dd5714d/maintainability
109-
:target: https://codeclimate.com/github/fepegar/torchio
109+
:target: https://codeclimate.com/github/TorchIO-project/torchio
110110
:alt: Maintainability
111111

112112
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white

docs/source/_templates/layout.html

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
{% extends "!layout.html" %}
2-
{% block footer %} {{ super() }}
1+
{% extends "!layout.html" %} {% block footer %} {{ super() }}
32

4-
<style>
5-
/* Sidebar header (and topbar for mobile) */
6-
.wy-side-nav-search, .wy-nav-top {
7-
background: #d45848;
8-
}
9-
/* Make full screen */
10-
/* .wy-nav-content { max-width: none; } */
11-
.wy-menu > .caption > span.caption-text {
12-
color: #d45848;
13-
}
14-
/* .property {
3+
<style>
4+
/* Sidebar header (and topbar for mobile) */
5+
.wy-side-nav-search,
6+
.wy-nav-top {
7+
background: #d45848;
8+
}
9+
/* Make full screen */
10+
/* .wy-nav-content { max-width: none; } */
11+
.wy-menu > .caption > span.caption-text {
12+
color: #d45848;
13+
}
14+
/* .property {
1515
color: #d45848;
1616
} */
17-
</style>
18-
{% endblock %}
19-
20-
21-
{% block document %}
22-
{{super()}}
23-
<a href="https://github.com/fepegar/torchio">
24-
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
25-
</a>
17+
</style>
18+
{% endblock %} {% block document %} {{super()}}
19+
<a href="https://github.com/TorchIO-project/torchio">
20+
<img
21+
style="position: absolute; top: 0; right: 0; border: 0"
22+
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
23+
alt="Fork me on GitHub"
24+
/>
25+
</a>
2626
{% endblock %}

docs/source/datasets.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ GitHub repository:
1515

1616
.. raw:: html
1717

18-
<a class="github-button" href="https://github.com/fepegar/torchio/discussions" data-icon="octicon-comment-discussion" aria-label="Discuss fepegar/torchio on GitHub">Discuss</a>
18+
<a class="github-button" href="https://github.com/TorchIO-project/torchio/discussions" data-icon="octicon-comment-discussion" aria-label="Discuss TorchIO-project/torchio on GitHub">Discuss</a>
1919
<script async defer src="https://buttons.github.io/buttons.js"></script>
2020

2121

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
datasets
1313
interfaces/index
1414
auto_examples/index
15-
GitHub repository <https://github.com/fepegar/torchio>
15+
GitHub repository <https://github.com/TorchIO-project/torchio>
1616
Paper <https://www.sciencedirect.com/science/article/pii/S0169260721003102>

docs/source/quickstart.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you would like to install Matplotlib to use the plotting features, use::
2727

2828

2929
If you are on Windows and have
30-
`trouble installing TorchIO <https://github.com/fepegar/torchio/issues/343>`_,
30+
`trouble installing TorchIO <https://github.com/TorchIO-project/torchio/issues/343>`_,
3131
try `installing PyTorch <https://pytorch.org/get-started/locally/>`_ with
3232
`conda <https://docs.conda.io/en/latest/miniconda.html>`_ before pip-installing
3333
TorchIO.
@@ -113,7 +113,7 @@ Tutorials
113113
|Google-Colab-notebook|
114114

115115
The best way to quickly understand and try the library is the
116-
`Jupyter Notebooks <https://github.com/fepegar/torchio/blob/main/tutorials/README.md>`_
116+
`Jupyter Notebooks <https://github.com/TorchIO-project/torchio/blob/main/tutorials/README.md>`_
117117
hosted on Google Colab.
118118

119119
They include multiple examples and visualization of most of the classes,
@@ -122,5 +122,5 @@ brain segmentation on :math:`T_1`-weighted MRI with full volumes and
122122
with subvolumes (aka patches or windows).
123123

124124
.. |Google-Colab-notebook| image:: https://colab.research.google.com/assets/colab-badge.svg
125-
:target: https://github.com/fepegar/torchio/blob/main/tutorials/README.md
125+
:target: https://github.com/TorchIO-project/torchio/blob/main/tutorials/README.md
126126
:alt: Google Colab notebook

pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ torchio-transform = "torchio.cli.apply_transform:app"
6565

6666
[project.urls]
6767
Homepage = "http://torchio.rtfd.io"
68-
Source = "https://github.com/fepegar/torchio"
69-
"Issue tracker" = "https://github.com/fepegar/torchio/issues"
68+
Source = "https://github.com/TorchIO-project/torchio"
69+
"Issue tracker" = "https://github.com/TorchIO-project/torchio/issues"
7070
Documentation = "http://torchio.rtfd.io"
71-
"Release notes" = "https://github.com/fepegar/torchio/releases"
71+
"Release notes" = "https://github.com/TorchIO-project/torchio/releases"
7272

7373
[dependency-groups]
7474
dev = [

src/torchio/constants.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
CHANNELS_DIMENSION = 1
2525

2626
# Code repository
27-
REPO_URL = 'https://github.com/fepegar/torchio/'
27+
REPO_URL = 'https://github.com/TorchIO-project/torchio/'
2828

2929
# Data repository
30-
DATA_REPO = 'https://github.com/fepegar/torchio-data/raw/main/data/'
30+
DATA_REPO = 'https://github.com/TorchIO-project/torchio-data/raw/main/data/'
3131

3232
# Floating point error
3333
MIN_FLOAT_32 = torch.finfo(torch.float32).eps

src/torchio/data/image.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __init__(
168168
if 'channels_last' in kwargs:
169169
message = (
170170
'The "channels_last" keyword argument is deprecated after'
171-
' https://github.com/fepegar/torchio/pull/685 and will be'
171+
' https://github.com/TorchIO-project/torchio/pull/685 and will be'
172172
' removed in the future'
173173
)
174174
warnings.warn(message, DeprecationWarning, stacklevel=2)
@@ -242,7 +242,7 @@ def _check_data_loader() -> None:
242242
' will be instances of torchio.Subject with 5D images. Replace'
243243
' your PyTorch DataLoader with a torchio.SubjectsLoader so that'
244244
' the collated batch becomes a dictionary, as expected. See'
245-
' https://github.com/fepegar/torchio/issues/1179 for more'
245+
' https://github.com/TorchIO-project/torchio/issues/1179 for more'
246246
' context about this issue.'
247247
)
248248
warnings.warn(message, stacklevel=1)
@@ -480,7 +480,7 @@ def _parse_path(
480480
if path is None:
481481
return None
482482
elif isinstance(path, dict):
483-
# https://github.com/fepegar/torchio/pull/838
483+
# https://github.com/TorchIO-project/torchio/pull/838
484484
raise TypeError('The path argument cannot be a dictionary')
485485
elif self._is_paths_sequence(path):
486486
return [self._parse_single_path(p) for p in path] # type: ignore[union-attr]

src/torchio/data/inference/aggregator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GridAggregator:
2424
function. See the `grid aggregator tests`_ for a raw visualization
2525
of the three modes.
2626
27-
.. _grid aggregator tests: https://github.com/fepegar/torchio/blob/main/tests/data/inference/test_aggregator.py
27+
.. _grid aggregator tests: https://github.com/TorchIO-project/torchio/blob/main/tests/data/inference/test_aggregator.py
2828
2929
.. note:: Adapted from NiftyNet. See `this NiftyNet tutorial
3030
<https://niftynet.readthedocs.io/en/dev/window_sizes.html>`_ for more
@@ -233,7 +233,7 @@ def get_output_tensor(self) -> torch.Tensor:
233233
assert isinstance(self._avgmask_tensor, torch.Tensor) # for mypy
234234
# true_divide is used instead of / in case the PyTorch version is
235235
# old and one the operands is int:
236-
# https://github.com/fepegar/torchio/issues/526
236+
# https://github.com/TorchIO-project/torchio/issues/526
237237
output = torch.true_divide(
238238
self._output_tensor,
239239
self._avgmask_tensor,

src/torchio/data/queue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Queue(Dataset):
9191
and the :class:`~torch.utils.data.DataLoader` used to pop batches from the
9292
queue.
9393
94-
.. image:: https://raw.githubusercontent.com/fepegar/torchio/main/docs/images/diagram_patches.svg
94+
.. image:: https://raw.githubusercontent.com/TorchIO-project/torchio/main/docs/images/diagram_patches.svg
9595
:alt: Training with patches
9696
9797
This sketch can be used to experiment and understand how the queue works.

src/torchio/data/sampler/label.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def get_probabilities_from_label_map(
117117
raise RuntimeError(message)
118118
crop_fin_i, crop_fin_j, crop_fin_k = crop_fin = (patch_size - 1) // 2
119119
fin_i, fin_j, fin_k = spatial_shape - crop_fin
120-
# See https://github.com/fepegar/torchio/issues/458
120+
# See https://github.com/TorchIO-project/torchio/issues/458
121121
label_map = label_map[:, ini_i:fin_i, ini_j:fin_j, ini_k:fin_k]
122122

123123
multichannel = label_map.shape[0] > 1
@@ -141,7 +141,7 @@ def get_probabilities_from_label_map(
141141
if multichannel:
142142
probability_map = probability_map.sum(dim=0, keepdim=True)
143143

144-
# See https://github.com/fepegar/torchio/issues/458
144+
# See https://github.com/TorchIO-project/torchio/issues/458
145145
padding = ini_k, crop_fin_k, ini_j, crop_fin_j, ini_i, crop_fin_i
146146
probability_map = torch.nn.functional.pad(
147147
probability_map,

src/torchio/data/sampler/weighted.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def sample_probability_map(
227227
[ 6808, 6804, 6942, 6809, 6946, 6988, 7002, 6826, 7041]])
228228
"""
229229
# Get first value larger than random number ensuring the random number
230-
# is not exactly 0 (see https://github.com/fepegar/torchio/issues/510)
230+
# is not exactly 0 (see https://github.com/TorchIO-project/torchio/issues/510)
231231
random_number = max(MIN_FLOAT_32, torch.rand(1).item()) * cdf[-1]
232232

233233
random_location_index = np.searchsorted(cdf, random_number)
@@ -242,7 +242,7 @@ def sample_probability_map(
242242
message = (
243243
'Error retrieving probability in weighted sampler.'
244244
' Please report this issue at'
245-
' https://github.com/fepegar/torchio/issues/new?labels=bug&template=bug_report.md'
245+
' https://github.com/TorchIO-project/torchio/issues/new?labels=bug&template=bug_report.md'
246246
)
247247
raise RuntimeError(message)
248248

src/torchio/data/subject.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def check_consistent_space(self) -> None:
322322
'As described above, some images in the subject are not in the'
323323
' same space. You probably can use the transforms ToCanonical'
324324
' and Resample to fix this, as explained at'
325-
' https://github.com/fepegar/torchio/issues/647#issuecomment-913025695'
325+
' https://github.com/TorchIO-project/torchio/issues/647#issuecomment-913025695'
326326
)
327327
raise RuntimeError(message) from e
328328

src/torchio/datasets/ixi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class IXITiny(SubjectsDataset):
172172
:class:`~torchio.transforms.transform.Transform`.
173173
download: If set to ``True``, will download the data into :attr:`root`.
174174
175-
.. _notebook: https://github.com/fepegar/torchio/blob/main/tutorials/README.md
175+
.. _notebook: https://github.com/TorchIO-project/torchio/blob/main/tutorials/README.md
176176
"""
177177

178178
url = 'https://www.dropbox.com/s/ogxjwjxdv5mieah/ixi_tiny.zip?dl=1'

src/torchio/datasets/mni/colin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __init__(self, version=1998):
7373
filename=self.filename,
7474
)
7575

76-
# Fix label map (https://github.com/fepegar/torchio/issues/220)
76+
# Fix label map (https://github.com/TorchIO-project/torchio/issues/220)
7777
if version == 2008:
7878
path = self.download_root / 'colin27_cls_tal_hires.nii'
7979
cls_image = LabelMap(path)

0 commit comments

Comments
 (0)