Skip to content

Commit

Permalink
Rename to gifit in code
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Oct 13, 2023
1 parent c55128f commit c59500f
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 15 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions innerspfit/__main__.py → gifit/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from chris_plugin import chris_plugin, PathMapper
from loguru import logger

from innerspfit import __version__, DISPLAY_TITLE, helpers
from innerspfit.gi import gyrification_index
from innerspfit.model import Model
from gifit import __version__, DISPLAY_TITLE, helpers
from gifit.gi import gyrification_index
from gifit.model import Model

parser = ArgumentParser(description='surface_fit wrapper',
formatter_class=ArgumentDefaultsHelpFormatter)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion innerspfit/helpers.py → gifit/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import PurePath
from typing import Iterable

from innerspfit.model import SurfaceFitParams
from gifit.model import SurfaceFitParams


def to_cliargs(sched: Iterable[SurfaceFitParams]) -> Iterable[str]:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ def get_version(rel_path: str) -> str:


setup(
name='innerspfit',
version=get_version('innerspfit/__init__.py'),
name='gifit',
version=get_version('gifit/__init__.py'),
description='Outer to inner surface mesh deformation using a radial distance map for human fetal MRI',
author='FNNDSC',
author_email='[email protected]',
url='https://github.com/FNNDSC/pl-gifit',
packages=['innerspfit'],
packages=['gifit'],
install_requires=['chris_plugin', 'pandas', 'loguru'],
license='MIT',
entry_points={
'console_scripts': [
'innerspfit = innerspfit.__main__:main'
'gifit = gifit.__main__:main'
]
},
classifiers=[
Expand All @@ -53,7 +53,7 @@ def get_version(rel_path: str) -> str:
]
},
package_data={
'innerspfit': ['models']
'gifit': ['models']
},
scripts=scripts
)
2 changes: 1 addition & 1 deletion tests/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from innerspfit import helpers
from gifit import helpers


@pytest.mark.parametrize(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_join.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Iterable

from innerspfit import helpers
from innerspfit.model import SurfaceFitParams
from gifit import helpers
from gifit.model import SurfaceFitParams
import pytest

PARAMS1 = SurfaceFitParams(
Expand Down
13 changes: 10 additions & 3 deletions tests/test_model.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import importlib.resources

import pytest

from innerspfit.model import Model
from gifit.model import Model


@pytest.fixture(scope='session')
def model_file() -> str:
return str(importlib.resources.files('gifit').joinpath('models').joinpath('a.csv'))


@pytest.fixture(scope='session')
def model() -> Model:
return Model()
def model(model_file) -> Model:
return Model(model_file)


@pytest.mark.parametrize(
Expand Down

0 comments on commit c59500f

Please sign in to comment.