Skip to content

Commit

Permalink
Correctly correct names, and do not alert ssnamenr column (#41)
Browse files Browse the repository at this point in the history
* Correctly correct names, and do not alert ssnamenr column

* Bump to 0.3.4
  • Loading branch information
JulienPeloton authored Dec 7, 2023
1 parent 9114da0 commit 0f3d63b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fink_spins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions fink_spins/ssoft.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])])

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0f3d63b

Please sign in to comment.