Skip to content

Commit

Permalink
Options for genfromtxt
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Dec 4, 2024
1 parent 608e8fe commit d099de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tardis/io/model/readers/generic_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def read_simple_ascii_density(
fname,
skip_header=1,
names=("index", "velocity", "density"),
dtype=(int, float, float),
dtype=None,
encoding=None,
)
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 d099de3

Please sign in to comment.