Skip to content

Commit

Permalink
debug read
Browse files Browse the repository at this point in the history
  • Loading branch information
xumi1993 committed Jul 12, 2024
1 parent 890d27a commit 3ab06ae
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions pytomoatt/src_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,20 @@ def src_points(self, value):
if value is None or isinstance(value, pd.DataFrame):
self._src_points = value
if not self._src_points.empty:
self._src_points = self._src_points.astype(
{
"evla": float,
"evlo": float,
"evdp": float,
"mag": float,
"num_rec": int,
"event_id": str,
"weight": float,
}
)
try:
self._src_points = self._src_points.astype(
{
"evla": float,
"evlo": float,
"evdp": float,
"mag": float,
"num_rec": int,
"event_id": str,
"weight": float,
}
)
except:
pass
self._src_points.index.name = "src_index"
else:
raise TypeError("src_points should be in DataFrame")
Expand Down

0 comments on commit 3ab06ae

Please sign in to comment.