Skip to content

Commit 777fb26

Browse files
authored
Rename remaining atlutils to atldld (#3)
1 parent 0249dc8 commit 777fb26

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ htmlcov/
4343
/.idea/
4444

4545
# scm version file (generated for editable installs)
46-
/src/atlutils/version.py
46+
/src/atldld/version.py

src/atldld/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from scipy.interpolate import NearestNDInterpolator
3232
from skimage.transform import AffineTransform, SimilarityTransform, resize
3333

34-
GLOBAL_CACHE_FOLDER = pathlib.Path.home() / ".atlutils"
34+
GLOBAL_CACHE_FOLDER = pathlib.Path.home() / ".atldld"
3535

3636

3737
def affine(shape, matrix=None):

src/atldld/sync.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
Notes
2020
-----
21-
See the module `atlutils.utils.py` for lower level
21+
See the module `atldld.utils.py` for lower level
2222
functions that are called within this module.
2323
"""
2424

@@ -400,7 +400,7 @@ def pir_to_xy_local_with_axis(
400400
if reference_space_actual != reference_space:
401401
raise ValueError(
402402
f"Reference space from ABI (={reference_space_actual}) "
403-
f"and atlutils (={reference_space}) should be the same"
403+
f"and atldld (={reference_space}) should be the same"
404404
)
405405

406406
# Determine corresponding section images in the corners

src/atldld/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
1919
Notes
2020
-----
21-
See the module `atlutils.sync.py` for more elaborate functions that use these utils.
21+
See the module `atldld.sync.py` for more elaborate functions that use these utils.
2222
Each function here is independent and performs a very specific lower level operation.
2323
2424
"""
@@ -29,7 +29,7 @@
2929
import numpy as np
3030
import requests
3131

32-
CACHE_FOLDER = os.path.expanduser("~/.atlutils/")
32+
CACHE_FOLDER = os.path.expanduser("~/.atldld/")
3333

3434

3535
def abi_get_request(url):

tests/test_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def test_basic(self, monkeypatch):
658658
fake_plt = Mock()
659659
fake_plt.subplots = lambda *args, **kwargs: (None, fake_ax)
660660

661-
monkeypatch.setattr("atlutils.base.plt", fake_plt)
661+
monkeypatch.setattr("atldld.base.plt", fake_plt)
662662

663663
df.plot_ranges()
664664

tox.ini

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
#
1515
# You should have received a copy of the GNU Lesser General Public License
1616
# along with this program. If not, see <https://www.gnu.org/licenses/>.
17-
1817
[tox]
1918
minversion = 3.1.0
20-
sources = setup.py src/atlutils tests
19+
sources = setup.py src/atldld tests
2120
envlist = lint, py{36, 37, 38}
2221

2322
[testenv]
@@ -68,7 +67,7 @@ markers =
6867
todo: mark denoting a test that is not written yet
6968

7069
[coverage:run]
71-
source = atlutils
70+
source = atldld
7271
branch = true
7372

7473
[coverage:report]

0 commit comments

Comments
 (0)