Skip to content

Commit

Permalink
pandas changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 6, 2023
1 parent a42b0c5 commit c41103b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ def append_measurements_for_condition(
elif observable_id == 'obs_x1withsigma':
noise_parameter = ['x1withsigma_sigma'] * model.nt()

measurement_df = measurement_df.append(pd.DataFrame(
measurement_df = pd.concat([measurement_df, pd.DataFrame(
{ptc.OBSERVABLE_ID: [observable_id] * model.nt(),
ptc.SIMULATION_CONDITION_ID: [condition_id] * model.nt(),
ptc.TIME: np.array(model.getTimepoints()),
ptc.MEASUREMENT: rdata['y'][:, iy],
ptc.OBSERVABLE_PARAMETERS: scaling_parameter * model.nt(),
ptc.NOISE_PARAMETERS: noise_parameter
}), ignore_index=True, sort=False)
})], ignore_index=True, sort=False)
return measurement_df


Expand Down

0 comments on commit c41103b

Please sign in to comment.