Skip to content

Commit

Permalink
Added docstring and renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvSondhi committed Jun 14, 2021
1 parent da87271 commit 6042872
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tardis/util/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,15 @@ def convert_abundances_format(fname, delimiter=r"\s+"):
return df


def check_notebook():
def check_simulation_env():
"""
Checks for the Simulation Environment
Returns
-------
True : if the environment is IPython Based
False : if the environment is Terminal or anything else
"""
try:
shell = get_ipython().__class__.__name__
if shell == "ZMQInteractiveShell":
Expand Down

0 comments on commit 6042872

Please sign in to comment.