Skip to content

Commit

Permalink
perf: don't do two object checks
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Oct 21, 2024
1 parent a33e0c2 commit e4158f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hera_sim/visibilities/simulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def from_config(
# Don't reorder the blt axis, because each simulator might do it differently.
logger.info("Initializing UVData object...")
uvdata, beams, beam_ids = initialize_uvdata_from_params(
config_file, reorder_blt_kw={}, check_kw={"run_check_acceptability": False}
config_file, reorder_blt_kw={},
check_kw={"run_check_acceptability": False, 'check_extra': False}
)

# Set rectangularity if it's not already set. Required for some simulators.
Expand All @@ -201,9 +202,7 @@ def from_config(
)[0]

logger.info("Completing UVData object...")
_complete_uvdata(
uvdata, inplace=True, check_kw={"run_check_acceptability": False}
)
_complete_uvdata(uvdata, inplace=True, check_kw=False)

return ModelData(
uvdata=uvdata,
Expand Down

0 comments on commit e4158f8

Please sign in to comment.