Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNANASims with coerce_inds2ints=True has failueres #19

Open
rbiswas4 opened this issue Sep 21, 2016 · 0 comments
Open

SNANASims with coerce_inds2ints=True has failueres #19

rbiswas4 opened this issue Sep 21, 2016 · 0 comments
Labels

Comments

@rbiswas4
Copy link
Owner

simdata = ans.SNANASims.fromSNANAfileroot('LSST_Ia',
                                          location='MINION_1016_10YR_DDF_v2/',
                                           coerce_inds2int=True)
simdata.get_SNANA_photometry(snid=13)

raises

172             assert np.shape(ptrs) == (2,)
    173         elif snid is not None:
--> 174             ptrs = self.get_photrows(snid=snid.strip().lower())
    175         else:
    176             raise ValueError('Both {0} and {1} cannot be None'

AttributeError: 'int' object has no attribute 'strip'

where the method assumes that snid is a string.

@rbiswas4 rbiswas4 added the bug label Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant