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 13, 2025
1 parent c7a709b commit e96f30c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 1 addition & 3 deletions scripts/run_profile_pyuvsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@

parser = argparse.ArgumentParser(
description=(
"A command-line script "
"to execute a pyuvsim simulation for"
"profiling purposes."
"A command-line script to execute a pyuvsim simulation forprofiling purposes."
)
)

Expand Down
15 changes: 7 additions & 8 deletions src/pyuvsim/simsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,16 +1086,16 @@ def _construct_beam_list(
"""
beam_list = []
assert isinstance(
beam_ids, np.ndarray | list | tuple
), "beam_ids must be a list, tuple or numpy array."
assert isinstance(beam_ids, np.ndarray | list | tuple), (
"beam_ids must be a list, tuple or numpy array."
)
beam_ids = np.asarray(beam_ids, dtype=int)
assert isinstance(telconfig, dict), "telconfig must be a dict."

if freq_range is not None:
assert isinstance(
freq_range, np.ndarray | list | tuple
), "If passed, freq_range must be a list, tuple or numpy array"
assert isinstance(freq_range, np.ndarray | list | tuple), (
"If passed, freq_range must be a list, tuple or numpy array"
)
freq_range = np.asarray(freq_range, dtype=float).squeeze()
if freq_range.size != 2:
raise ValueError("If passed, freq_range have 2 elements")
Expand Down Expand Up @@ -1649,8 +1649,7 @@ def parse_time_params(time_params):
if not it:
if not dd:
raise ValueError(
"Either duration or integration time "
"must be specified: " + kws_used
"Either duration or integration time must be specified: " + kws_used
)
# In seconds
time_params["integration_time"] = (
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def download_sim(target_dir, sim_name):
api_url = "https://repository.library.brown.edu/api/collections/bdr:wte2qah8/?q="

print(
f"\nquerying BDR collection for items matching {sim_name} via api: {api_url+sim_name}"
f"\nquerying BDR collection for items matching {sim_name} via api: {api_url + sim_name}"
)
response = robust_response(api_url + sim_name)

Expand Down

0 comments on commit e96f30c

Please sign in to comment.