Skip to content
Snippets Groups Projects
Commit ae9a8ad8 authored by Alejandra Gonzalez's avatar Alejandra Gonzalez
Browse files

added function to read csv files for the old data

parent 57f0e481
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,22 @@ from scipy.signal import tukey
from watpy.wave.wave import rinf_str_to_float
import re
from scipy import integrate
import csv
# Constants
Msun_sec = 4.925794970773135e-06
def csv_reader(filename):
"""
Read a CSV file using csv.DictReader
"""
data = []
with open(filename) as f:
reader = csv.DictReader(f, delimiter=',')
for line in reader:
data.append(line)
return data
## 3PN energy and ang. mom
# from https://journals.aps.org/prd/pdf/10.1103/PhysRevD.65.124009
# Eq. (3) and (4), for spins add Eq. (13)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment