Skip to content

Commit

Permalink
fixed bug whe nfilenames dont have spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
PennyWieser committed Sep 21, 2023
1 parent 52ff2ae commit ee24173
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ If you are using Jupyter Notebooks or Jupyter Lab, you can also install it by en
!pip install DiadFit
You then need to import DiadFit into the script you are running code in. In all the examples, we import Themobar as pt.:
You then need to import DiadFit into the script you are running code in. In all the examples, we import DiadFit as pt.:

.. code-block:: python
import DiadFit as pf
This means any time you want to call a function from DiadFit, you do pt.function_name.
This means any time you want to call a function from DiadFit, you do pf.function_name.



Expand Down
2 changes: 1 addition & 1 deletion src/DiadFit/diads.py
Original file line number Diff line number Diff line change
Expand Up @@ -3190,7 +3190,7 @@ def combine_diad_outputs(*, filename=None, prefix=True,
"""

if prefix is True:
filename=filename.split(' ')[1:][0]
filename = filename.split(' ', 1)[1]

if Diad1_fit is not None and Diad2_fit is not None:

Expand Down
2 changes: 1 addition & 1 deletion src/DiadFit/ne_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ def fit_Ne_lines(*, config: Ne_peak_config=Ne_peak_config(),
plt.close(fig)

if prefix is True:
filename=filename.split(' ')[1:][0]
filename = filename.split(' ', 1)[1]



Expand Down

0 comments on commit ee24173

Please sign in to comment.