Skip to content

Commit

Permalink
replace recfromtext with genfromtxt
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Nov 25, 2024
1 parent 481dc14 commit be3d28f
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 @@ -3,7 +3,7 @@
import numpy as np
import pandas as pd
from astropy import units as u
from numpy import recfromtxt
from numpy import genfromtxt
from radioactivedecay import Nuclide
from radioactivedecay.utils import Z_DICT, elem_to_Z

Expand Down Expand Up @@ -44,7 +44,7 @@ def read_simple_ascii_density(
time_of_model_string = fh.readline().strip()
time_of_model = parse_quantity(time_of_model_string)

data = recfromtxt(
data = genfromtxt(
fname,
skip_header=1,
names=("index", "velocity", "density"),
Expand Down

0 comments on commit be3d28f

Please sign in to comment.