diff --git a/fink_spins/__init__.py b/fink_spins/__init__.py index 8f2e0bd..401e632 100644 --- a/fink_spins/__init__.py +++ b/fink_spins/__init__.py @@ -12,4 +12,4 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "0.3.3" +__version__ = "0.3.4" diff --git a/fink_spins/ssoft.py b/fink_spins/ssoft.py index ce87588..d440eac 100644 --- a/fink_spins/ssoft.py +++ b/fink_spins/ssoft.py @@ -330,7 +330,7 @@ def f(x, y): if x is None: return y else: - return "{}{}{}".format(x['year'], x['letter'], x['end'].replace('0', '')) + return "{}{}{}".format(x['year'], x['letter'], int(x['end'])) corrected = np.array([f(x, y) for x, y in zip(processed, ssnamenr[unnumbered])]) @@ -588,7 +588,7 @@ def build_the_ssoft(aggregated_filename=None, bft_filename=None, nproc=80, nmin= pdf = pd.concat([pdf, pd.json_normalize(pdf.params)], axis=1).drop('params', axis=1) - sso_name, sso_number = rockify(pdf.ssnamenr) + sso_name, sso_number = rockify(pdf.ssnamenr.copy()) pdf['sso_name'] = sso_name pdf['sso_number'] = sso_number