Skip to content

Commit

Permalink
Keep the dtype the same as in recfromtxt
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Jan 17, 2025
1 parent b461570 commit 42f83fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tardis/io/model/readers/generic_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def read_simple_ascii_density(
fname,
skip_header=1,
names=("index", "velocity", "density"),
dtype=[('index', 'i8'), ('velocity', 'f8'), ('density', 'f8')],
encoding='utf-8',
)
velocity = (data["velocity"] * u.km / u.s).to("cm/s")
Expand Down

0 comments on commit 42f83fd

Please # to comment.