Skip to content
Snippets Groups Projects
Commit a2b1e5bd authored by Andre Offringa's avatar Andre Offringa Committed by Andre Offringa
Browse files

Reformat code with newest black version

parent 61ef445c
No related branches found
No related tags found
1 merge request!279Reformat code with newest black version
Pipeline #43573 passed with warnings
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Options affecting listfile parsing # Options affecting listfile parsing
# ---------------------------------- # ----------------------------------
with section("parse"): with section("parse"):
# Specify structure for custom cmake functions # Specify structure for custom cmake functions
additional_commands = { additional_commands = {
"foo": { "foo": {
...@@ -24,7 +23,6 @@ with section("parse"): ...@@ -24,7 +23,6 @@ with section("parse"):
# Options affecting formatting. # Options affecting formatting.
# ----------------------------- # -----------------------------
with section("format"): with section("format"):
# Disable formatting entirely, making cmake-format a no-op # Disable formatting entirely, making cmake-format a no-op
disable = False disable = False
...@@ -122,7 +120,6 @@ with section("format"): ...@@ -122,7 +120,6 @@ with section("format"):
# Options affecting comment reflow and formatting. # Options affecting comment reflow and formatting.
# ------------------------------------------------ # ------------------------------------------------
with section("markup"): with section("markup"):
# What character to use for bulleted lists # What character to use for bulleted lists
bullet_char = "*" bullet_char = "*"
...@@ -166,7 +163,6 @@ with section("markup"): ...@@ -166,7 +163,6 @@ with section("markup"):
# Options affecting the linter # Options affecting the linter
# ---------------------------- # ----------------------------
with section("lint"): with section("lint"):
# a list of lint codes to disable # a list of lint codes to disable
disabled_codes = [] disabled_codes = []
...@@ -223,7 +219,6 @@ with section("lint"): ...@@ -223,7 +219,6 @@ with section("lint"):
# Options affecting file encoding # Options affecting file encoding
# ------------------------------- # -------------------------------
with section("encode"): with section("encode"):
# If true, emit the unicode byte-order mark (BOM) at the start of the file # If true, emit the unicode byte-order mark (BOM) at the start of the file
emit_byteorder_mark = False emit_byteorder_mark = False
...@@ -238,7 +233,6 @@ with section("encode"): ...@@ -238,7 +233,6 @@ with section("encode"):
# Miscellaneous configurations options. # Miscellaneous configurations options.
# ------------------------------------- # -------------------------------------
with section("misc"): with section("misc"):
# A dictionary containing any per-command configuration overrides. Currently # A dictionary containing any per-command configuration overrides. Currently
# only `command_case` is supported. # only `command_case` is supported.
per_command = {} per_command = {}
...@@ -504,7 +504,10 @@ def main(): ...@@ -504,7 +504,10 @@ def main():
element_select=element_select, element_select=element_select,
) )
# Please note that freqs have to be converted from MHz to Hz! # Please note that freqs have to be converted from MHz to Hz!
F, pT, = fit_and_write_lobes_coeffs( (
F,
pT,
) = fit_and_write_lobes_coeffs(
h5data["theta"], h5data["theta"],
h5data["phi"], h5data["phi"],
h5data["freq"] * 1e6, h5data["freq"] * 1e6,
...@@ -536,7 +539,10 @@ def main(): ...@@ -536,7 +539,10 @@ def main():
positions = read_lofar_antenna_positions(f"{station}LBA") positions = read_lofar_antenna_positions(f"{station}LBA")
simdata = read_simulation_files(path) simdata = read_simulation_files(path)
F, pT, = fit_and_write_lobes_coeffs( (
F,
pT,
) = fit_and_write_lobes_coeffs(
simdata["theta"], simdata["theta"],
simdata["phi"], simdata["phi"],
simdata["freq"], simdata["freq"],
......
...@@ -63,7 +63,6 @@ if debug: ...@@ -63,7 +63,6 @@ if debug:
# Parse all freqs # Parse all freqs
for freq in tqdm(freqs): for freq in tqdm(freqs):
A = None A = None
for i, pol in enumerate(("x", "y")): for i, pol in enumerate(("x", "y")):
......
...@@ -105,7 +105,6 @@ def F41(m, n, theta, phi, beta): ...@@ -105,7 +105,6 @@ def F41(m, n, theta, phi, beta):
def F42(m, n, theta, phi, beta): def F42(m, n, theta, phi, beta):
if m != 0: if m != 0:
C = ( C = (
beta beta
......
...@@ -17,6 +17,7 @@ from setuptools.command.build_ext import build_ext ...@@ -17,6 +17,7 @@ from setuptools.command.build_ext import build_ext
# Set the location where data files are to be installed # Set the location where data files are to be installed
EVERYBEAM_DATADIR = os.path.join("share", "everybeam") EVERYBEAM_DATADIR = os.path.join("share", "everybeam")
# A CMakeExtension needs a sourcedir instead of a file list. # A CMakeExtension needs a sourcedir instead of a file list.
# The name must be the _single_ output extension from the CMake build. # The name must be the _single_ output extension from the CMake build.
# If you need multiple extensions, see scikit-build. # If you need multiple extensions, see scikit-build.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment