Skip to content

Commit

Permalink
Merge pull request #40 from Morisset/devel
Browse files Browse the repository at this point in the history
1.1.21
  • Loading branch information
Morisset authored Nov 7, 2024
2 parents becbe51 + 19888a9 commit d306d78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
13 changes: 5 additions & 8 deletions pyneb/utils/manage_atomic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,18 +617,15 @@ def extract_flt(str_):
extract_flt('(123.00?') -> 123.00
"""
res = ''
if len(str_) > 0:
if str_.decode()[0] in ('(', '['):
str_ = str_[1:]
for l in str_.decode():
this_str_ = str_.decode() if isinstance(str_, bytes) else str_
if len(this_str_) > 0 and this_str_[0] in ('(', '['):
this_str_ = this_str_[1:]
for l in this_str_:
if l.isdigit() or l == '.':
res += l
else:
break
if res == '':
return np.nan
else:
return float(res)
return np.nan if res == '' else float(res)

def readNIST(NISTfile,NLevels=None):
"""
Expand Down
2 changes: 1 addition & 1 deletion pyneb/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# PyNeb version
__version__ = '1.1.20'
__version__ = '1.1.21'
1 change: 1 addition & 0 deletions updatePyNeb.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Publish the new version on the pypi server
=============================

* Switch to master branch
* synchronize with repository: git pull
* Run the following from the root directory (where dist is) and check the tar file is created in dist:
`python setup.py sdist`
* Run the following to upload the tar file to pypi server. **Update the value of the distribution in {0}:**
Expand Down

0 comments on commit d306d78

Please sign in to comment.