Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 10, 2025
1 parent f0948fd commit cdef7e7
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 31 deletions.
20 changes: 10 additions & 10 deletions docs/tutorials/end_to_end_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@
}
],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from pathlib import Path\n",
"from astropy import units, constants\n",
"\n",
"import hera_sim\n",
"from hera_sim import Simulator, DATA_PATH\n",
"from hera_sim.visibilities import MatVis, ModelData, VisibilitySimulation\n",
"import pyuvsim\n",
"import matplotlib.pyplot as plt\n",
"import matvis\n",
"import numpy as np\n",
"import pyradiosky\n",
"import pyuvdata\n",
"import pyuvsim\n",
"import uvtools\n",
"from astropy import constants, units\n",
"from astropy.coordinates import Latitude, Longitude\n",
"\n",
"import pyradiosky\n",
"import matvis\n",
"from astropy.coordinates import Latitude, Longitude"
"import hera_sim\n",
"from hera_sim import DATA_PATH, Simulator\n",
"from hera_sim.visibilities import MatVis, ModelData, VisibilitySimulation"
]
},
{
Expand Down
7 changes: 3 additions & 4 deletions docs/tutorials/hera_sim_defaults.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"\n",
"import numpy as np\n",
"import uvtools\n",
"\n",
"import hera_sim\n",
"from hera_sim import Simulator\n",
"from hera_sim import DATA_PATH\n",
"from hera_sim import DATA_PATH, Simulator\n",
"from hera_sim.config import CONFIG_PATH\n",
"\n",
"%matplotlib inline"
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/hera_sim_simulator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"from astropy import units\n",
"from uvtools.plot import labeled_waterfall\n",
"\n",
"import hera_sim\n",
"from hera_sim import Simulator, DATA_PATH, utils\n",
"from uvtools.plot import labeled_waterfall"
"from hera_sim import DATA_PATH, Simulator, utils"
]
},
{
Expand Down
6 changes: 4 additions & 2 deletions docs/tutorials/hera_sim_tour.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
"outputs": [],
"source": [
"%matplotlib inline\n",
"import uvtools\n",
"import numpy as np\n",
"import pylab as plt\n",
"import uvtools\n",
"from astropy.units import sday\n",
"\n",
"from hera_sim import DATA_PATH\n",
"\n",
"plt.rcParams[\"figure.figsize\"] = [14, 8]"
]
},
Expand All @@ -35,7 +37,7 @@
"metadata": {},
"outputs": [],
"source": [
"from hera_sim import foregrounds, noise, sigchain, rfi, defaults"
"from hera_sim import defaults, foregrounds, noise, rfi, sigchain"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions docs/tutorials/mutual_coupling_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@
}
],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"import hera_sim\n",
"import numpy as np\n",
"import uvtools\n",
"from astropy import constants, units\n",
"from pyuvdata import UniformBeam\n",
"\n",
"import hera_sim\n",
"\n",
"%matplotlib inline"
]
},
Expand Down
13 changes: 7 additions & 6 deletions docs/tutorials/polybeam_simulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
}
],
"source": [
"from hera_sim.visibilities import VisibilitySimulation, ModelData, MatVis\n",
"from hera_sim.beams import PerturbedPolyBeam\n",
"from hera_sim import io\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from astropy.coordinates.angles import Latitude, Longitude\n",
"import numpy as np\n",
"from astropy import units as un\n",
"from pyradiosky import SkyModel"
"from astropy.coordinates.angles import Latitude, Longitude\n",
"from pyradiosky import SkyModel\n",
"\n",
"from hera_sim import io\n",
"from hera_sim.beams import PerturbedPolyBeam\n",
"from hera_sim.visibilities import MatVis, ModelData, VisibilitySimulation"
]
},
{
Expand Down
7 changes: 3 additions & 4 deletions docs/tutorials/visibility_simulator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"from hera_sim import DATA_PATH\n",
"from hera_sim.visibilities import MatVis, ModelData, VisibilitySimulation\n",
"\n",
"\n",
"# Path to the example pyuvsim configuration files.\n",
"# These can be found in `hera_sim.DATA_PATH` to follow along.\n",
"config_file = (\n",
Expand Down Expand Up @@ -310,8 +309,8 @@
}
],
"source": [
"from pyuvsim.simsetup import initialize_uvdata_from_params, _complete_uvdata\n",
"from pyradiosky import SkyModel\n",
"from pyuvsim.simsetup import _complete_uvdata, initialize_uvdata_from_params\n",
"\n",
"# Here, the configuration file uses the `PolyBeam` defined in hera_sim directly in the\n",
"# pyuvsim configuration file, as the format accepts custom beams.\n",
Expand Down Expand Up @@ -391,9 +390,9 @@
}
],
"source": [
"from pyradiosky import SkyModel\n",
"from astropy.coordinates import Longitude, Latitude\n",
"from astropy import units as u\n",
"from astropy.coordinates import Latitude, Longitude\n",
"from pyradiosky import SkyModel\n",
"\n",
"# Point Soruce Model ##\n",
"component_type = \"point\"\n",
Expand Down
3 changes: 2 additions & 1 deletion scripts/hera-sim-simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

import argparse
import copy
import numpy as np
import os
import sys

import numpy as np
import yaml
from astropy import units
from astropy.coordinates import Angle
Expand Down

0 comments on commit cdef7e7

Please sign in to comment.