Skip to content

Commit 54faa74

Browse files
author
rtlingg
committed
PyPI Version 1.0
1 parent 9f53f2f commit 54faa74

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

sagitta/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
#

sagitta/sagitta.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
from astropy.table import Table as AstroTable
1717

1818
#--------------- Local Imports ---------------#
19-
from data_tools import SagittaDataset, DataTools
20-
from model_code import Sagitta
19+
if __name__ == "sagitta.sagitta":
20+
from sagitta.data_tools import DataTools, SagittaDataset
21+
from sagitta.model_code import Sagitta
22+
else:
23+
from data_tools import DataTools, SagittaDataset
24+
from model_code import Sagitta
2125

2226
#--------------- Main Pipeline ---------------#
2327
def main():
@@ -57,9 +61,8 @@ def main():
5761
#--------------- Sagitta Pipeline Class ---------------#
5862
class SagittaPipeline:
5963
"""
60-
Pipeline Class
61-
The pipeline is run by calling the functions
62-
in this class and modifying its internal state
64+
The pipeline is run by calling the functions
65+
in this class and modifying its internal state
6366
"""
6467

6568
def __init__(self, args):
@@ -79,7 +82,6 @@ def __init__(self, args):
7982
self.data_frame = None
8083
self.model_output_frame = None
8184

82-
8385
def get_naming_changes(self):
8486
"""
8587
Builds a dictionary for converting between standard

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
setuptools.setup(
1111
name="Sagitta",
12-
version="0.1",
12+
version="1.0",
1313
author="Aidan McBride, Ryan Lingg, Marina Kounkel, Kevin Covey, Brian Hutchinson",
14-
author_email="mcbrida5@wwu.edu, linggr@wwu.edu, marina.kounkel@wwu.edu",
14+
author_email="marina.kounkel@wwu.edu, mcbrida5@wwu.edu, linggr@wwu.edu",
1515
description="A neural network based pipeline to identify pre-main sequence stars and estimate their ages.",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",
@@ -23,9 +23,7 @@
2323
"Operating System :: OS Independent",
2424
],
2525
package_data={
26-
'sagitta' : ['model_state_dicts/av_model.pt','model_state_dicts/pms_model.pt','model_state_dicts/age_model.pt'],
27-
'data_tools' : ['data_tools.py'],
28-
"model_code" : ['model_code.py'],
26+
'sagitta' : ['data_tools.py','model_code.py','model_state_dicts/av_model.pt','model_state_dicts/pms_model.pt','model_state_dicts/age_model.pt'],
2927
'sagitta.tests' : []
3028
},
3129
install_requires=['numpy','torch','astropy','astroquery','pandas','galpy'],

0 commit comments

Comments
 (0)