Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Nov 3, 2023
1 parent 8e3ef3b commit 0bb9089
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pint/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,11 @@ def make_fake_toas_fromMJDs(
times = MJDs
freq_array = np.tile(freqs, len(MJDs) // len(freqs) + 1)[: len(times)]
else:
times = np.repeat(MJDs, len(freqs))
times = (
time.Time(np.repeat(MJDs, len(freqs)))
if isinstance(MJDs, time.Time)
else np.repeat(MJDs, len(freqs))
)
freq_array = np.tile(freqs, len(MJDs))

clk_version = get_fake_toa_clock_versions(
Expand Down

0 comments on commit 0bb9089

Please sign in to comment.