Skip to content

Commit

Permalink
bug fix in pad_fieldid
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Morrison committed Oct 18, 2023
1 parent cbac02c commit eb61d0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/sdss_access/path/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,11 +1442,12 @@ def pad_fieldid(self, filetype, **kwargs):
padd_fieldid in the form of N*'0' where N is the number of necessary zeros to pad fieldid
'''

fieldid = str(kwargs.get('fieldid', None))
fieldid = kwargs.get('fieldid', None)
run2d = kwargs.get('run2d', None)

if (not run2d) & (not fieldid):
return ''
fieldid = str(fieldid)
if run2d in ['v6_0_1','v6_0_2', 'v6_0_3', 'v6_0_4']:
return str(fieldid)
if fieldid.isnumeric():
Expand Down

0 comments on commit eb61d0c

Please sign in to comment.