Skip to content

Commit

Permalink
Test setting dtype and encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Dec 17, 2024
1 parent 65a9c74 commit 6ca4f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/io/model/readers/generic_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def read_simple_ascii_density(
fname,
skip_header=1,
names=("index", "velocity", "density"),
dtype=None,
encoding=None,
dtype=[('index', 'i8'), ('velocity', 'f8'), ('density', 'f8')],
encoding='utf-8',
)
velocity = (data["velocity"] * u.km / u.s).to("cm/s")
mean_density = (data["density"] * u.Unit("g/cm^3"))[1:]
Expand Down

0 comments on commit 6ca4f8c

Please sign in to comment.