turn .py files into wrpll_simulation package
py files & notebook: update import docs: update install instructions
This commit is contained in:
parent
8be1abe80b
commit
6e562732e5
@ -6,13 +6,13 @@ A time domain simulation for WRPLL
|
|||||||
|
|
||||||
### Poetry:
|
### Poetry:
|
||||||
```bash
|
```bash
|
||||||
poetry install --no-root
|
poetry install
|
||||||
poetry run jupyter lab
|
poetry run jupyter lab
|
||||||
```
|
```
|
||||||
|
|
||||||
### Poetry shell:
|
### Poetry shell:
|
||||||
```bash
|
```bash
|
||||||
poetry install --no-root
|
poetry install
|
||||||
poetry shell
|
poetry shell
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
"from plotly.subplots import make_subplots\n",
|
"from plotly.subplots import make_subplots\n",
|
||||||
"import plotly.graph_objects as go\n",
|
"import plotly.graph_objects as go\n",
|
||||||
"import numpy as np\n",
|
"import numpy as np\n",
|
||||||
"from wrpll import WRPLL_simulator"
|
"from wrpll_simulation.wrpll import WRPLL_simulator"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
"from plotly.subplots import make_subplots\n",
|
"from plotly.subplots import make_subplots\n",
|
||||||
"import plotly.graph_objects as go\n",
|
"import plotly.graph_objects as go\n",
|
||||||
"import numpy as np\n",
|
"import numpy as np\n",
|
||||||
"from wrpll import WRPLL_simulator"
|
"from wrpll_simulation.wrpll import WRPLL_simulator"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -103,6 +103,7 @@
|
|||||||
"fig.add_trace(go.Scattergl(name='main'), hf_x=wrpll_sim.time, hf_y=wrpll_sim.main, row=2, col=1)\n",
|
"fig.add_trace(go.Scattergl(name='main'), hf_x=wrpll_sim.time, hf_y=wrpll_sim.main, row=2, col=1)\n",
|
||||||
"fig.add_trace(go.Scattergl(name='helper'), hf_x=wrpll_sim.time, hf_y=wrpll_sim.helper-1, row=2, col=1)\n",
|
"fig.add_trace(go.Scattergl(name='helper'), hf_x=wrpll_sim.time, hf_y=wrpll_sim.helper-1, row=2, col=1)\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"\n",
|
||||||
"fig.update_layout(\n",
|
"fig.update_layout(\n",
|
||||||
" xaxis2=dict(title=\"time (sec)\"),\n",
|
" xaxis2=dict(title=\"time (sec)\"),\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
"from plotly.subplots import make_subplots\n",
|
"from plotly.subplots import make_subplots\n",
|
||||||
"import plotly.graph_objects as go\n",
|
"import plotly.graph_objects as go\n",
|
||||||
"import numpy as np\n",
|
"import numpy as np\n",
|
||||||
"from wrpll import WRPLL_simulator"
|
"from wrpll_simulation.wrpll import WRPLL_simulator"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
0
src/wrpll_simulation/__init__.py
Normal file
0
src/wrpll_simulation/__init__.py
Normal file
@ -1,6 +1,6 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from numba import njit
|
from numba import njit
|
||||||
from wave_gen import square
|
from wrpll_simulation.wave_gen import square
|
||||||
|
|
||||||
|
|
||||||
@njit
|
@njit
|
@ -1,6 +1,6 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
from wave_gen import white_noise
|
from wrpll_simulation.sim import simulation_jit
|
||||||
from sim import simulation_jit
|
from wrpll_simulation.wave_gen import white_noise
|
||||||
|
|
||||||
|
|
||||||
class WRPLL_simulator():
|
class WRPLL_simulator():
|
Loading…
Reference in New Issue
Block a user