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 Apr 1, 2024
1 parent 15b726c commit e104459
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions amical/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-------------------------------------------------------------------------
"""

import numpy as np

from amical.dpfit import leastsqFit
Expand Down
1 change: 1 addition & 0 deletions amical/data_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
--------------------------------------------------------------------
"""

import sys
import warnings

Expand Down
1 change: 1 addition & 0 deletions amical/dpfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--------------------------------------------------------------------
"""

import time

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions amical/externals/pymask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Ben
--------------------------------------------------------------------
"""

import copy
import os
import pickle
Expand Down
1 change: 1 addition & 0 deletions amical/externals/pymask/oifits.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
For further information, contact Paul Boley (pboley@urfu.ru).
"""

import copy
import datetime
import warnings
Expand Down
1 change: 1 addition & 0 deletions amical/externals/pymask/pol_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@author: cheetham
"""

import numpy as np

from .cp_tools import mas2rad
Expand Down
1 change: 1 addition & 0 deletions amical/externals/pymask/x_y_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@author: anthony
"""

import time
from multiprocessing import Pool

Expand Down
1 change: 1 addition & 0 deletions amical/get_infos_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Instruments and mask informations.
--------------------------------------------------------------------
"""

import sys

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions amical/ifu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-------------------------------------------------------------------------
"""

import warnings

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions amical/mf_pipeline/ami_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--------------------------------------------------------------------
"""

import os
import sys
from pathlib import Path
Expand Down
4 changes: 2 additions & 2 deletions amical/mf_pipeline/bispect.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--------------------------------------------------------------------
"""

import os
import sys
import time
Expand Down Expand Up @@ -556,8 +557,7 @@ def _compute_v2_quantities(v2_arr, bias_arr, n_blocks):
x = np.arange(n_baselines)
avar = v2_cov[x, x] * n_ps - bias_arr**2 * (1 + (2.0 * v2) / bias_arr)
err_avar = np.sqrt(
2.0 / n_ps * (v2_cov[x, x]) ** 2 * n_ps**2
+ 4.0 * v2_cov[x, x] * bias_arr**2
2.0 / n_ps * (v2_cov[x, x]) ** 2 * n_ps**2 + 4.0 * v2_cov[x, x] * bias_arr**2
)

v2_quantities = {
Expand Down
1 change: 1 addition & 0 deletions amical/mf_pipeline/idl_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
--------------------------------------------------------------------
"""

import sys

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions amical/oifits.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--------------------------------------------------------------------
"""

import datetime
import os
import sys
Expand Down
5 changes: 2 additions & 3 deletions amical/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
--------------------------------------------------------------------
"""

import math as m
import sys
import warnings
Expand Down Expand Up @@ -194,9 +195,7 @@ def gauss_2d_asym(X, param):
a = (np.cos(theta) ** 2) / (2 * sigma_x**2) + (np.sin(theta) ** 2) / (
2 * sigma_y**2
)
b = -(np.sin(2 * theta)) / (4 * sigma_x**2) + (np.sin(2 * theta)) / (
4 * sigma_y**2
)
b = -(np.sin(2 * theta)) / (4 * sigma_x**2) + (np.sin(2 * theta)) / (4 * sigma_y**2)
c = (np.sin(theta) ** 2) / (2 * sigma_x**2) + (np.cos(theta) ** 2) / (
2 * sigma_y**2
)
Expand Down
1 change: 1 addition & 0 deletions doc/example_IFS.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
channels individually and combine them afterward.
--------------------------------------------------------------------
"""

import os

import amical
Expand Down
8 changes: 2 additions & 6 deletions doc/example_NIRISS.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@

file_t = os.path.join(
datadir,
"t_binary_s={:2.1f}mas_mag=6.0_dm={:2.1f}_posang={:2.1f}__F430M_81_flat_x11__00.fits".format(
sep, dm, theta
),
f"t_binary_s={sep:2.1f}mas_mag=6.0_dm={dm:2.1f}_posang={theta:2.1f}__F430M_81_flat_x11__00.fits",
)
file_c = os.path.join(
datadir,
"c_binary_s={:2.1f}mas_mag=6.0_dm={:2.1f}_posang={:2.1f}__F430M_81_flat_x11__00.fits".format(
sep, dm, theta
),
f"c_binary_s={sep:2.1f}mas_mag=6.0_dm={dm:2.1f}_posang={theta:2.1f}__F430M_81_flat_x11__00.fits",
)

# Firslty, open fits files as cube: _t is for target (astronomical scene) and _c for calibrator (point source)
Expand Down
1 change: 1 addition & 0 deletions doc/example_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--------------------------------------------------------------------
"""

from matplotlib import pyplot as plt

import amical
Expand Down

0 comments on commit e104459

Please sign in to comment.