Skip to content

Commit

Permalink
updated notebooks after 0.0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
cosimoNigro committed Jan 6, 2020
1 parent 2344968 commit 2023c25
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = "Cosimo Nigro"

# The full version, including alpha/beta/rc tags
release = "0.0.2"
release = "0.0.2.1"


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: setuptools
- method: pip
path: .
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="agnpy",
version="0.0.2",
version="0.0.2.1",
author="Cosimo Nigro",
author_email="[email protected]",
description="Modelling jetted Active Galactic Nuclei radiative processes with python",
Expand All @@ -19,5 +19,9 @@
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
install_requires=[
"astropy",
"numpy"
],
python_requires='>=3.7',
)
55 changes: 45 additions & 10 deletions tutorials/external_compton.ipynb

Large diffs are not rendered by default.

29 changes: 19 additions & 10 deletions tutorials/synchrotron_self_compton.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.append(\"../\")\n",
"# import agnpy classes\n",
"from agnpy.emission_regions import Blob\n",
"from agnpy.synchrotron import Synchrotron\n",
Expand Down Expand Up @@ -144,7 +146,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -172,7 +174,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -181,7 +183,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -194,7 +196,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -229,7 +231,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -238,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -247,14 +249,14 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/cosimo/software/miniconda3/lib/python3.7/site-packages/agnpy/compton.py:24: RuntimeWarning: invalid value encountered in log\n",
"../agnpy/compton.py:24: RuntimeWarning: invalid value encountered in log\n",
" term_1 = 2 * q * np.log(q)\n"
]
},
Expand Down Expand Up @@ -298,7 +300,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 14,
"metadata": {},
"outputs": [
{
Expand All @@ -318,7 +320,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -346,6 +348,13 @@
"plt.legend(loc=2)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 2023c25

Please sign in to comment.