From 2a629a46cf1d36b60de77ecadb65880da1f8cf5d Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Thu, 27 Jun 2024 15:06:56 -0400 Subject: [PATCH 1/2] Organize snomed mapping resource into a totalsegmentator namespace package --- .../resources}/totalsegmentator_snomed_mapping.csv | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {resources => totalsegmentator/resources}/totalsegmentator_snomed_mapping.csv (100%) diff --git a/resources/totalsegmentator_snomed_mapping.csv b/totalsegmentator/resources/totalsegmentator_snomed_mapping.csv similarity index 100% rename from resources/totalsegmentator_snomed_mapping.csv rename to totalsegmentator/resources/totalsegmentator_snomed_mapping.csv From 9a79e247c09a941ec30e74c40e0e0fc1c0af6516 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Thu, 27 Jun 2024 15:09:22 -0400 Subject: [PATCH 2/2] Ensure snomed mapping is installed alongside totalsegmentator package See https://setuptools.pypa.io/en/latest/userguide/datafiles.html --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 1cf5830e23..6e92e257f3 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ python_requires='>=3.9', license='Apache 2.0', packages=find_packages(), + package_data={"totalsegmentator": ["resources/totalsegmentator_snomed_mapping.csv"]}, install_requires=[ 'torch>=2.0.0', 'numpy<2',