Skip to content

Commit

Permalink
Add comment on flattening
Browse files Browse the repository at this point in the history
Co-authored-by: Juan M. Cruz-Martinez <[email protected]>
  • Loading branch information
APJansen and scarlehoff authored Feb 22, 2024
1 parent 44901f0 commit a7dfc0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion n3fit/src/n3fit/model_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ def _generate_observables(
# Loop over replicas
for replica in self.exp_info:
if key in ["expdata", "expdata_vl"]:
replica_data.append(replica[i][key].flatten())
# Save the data with shape (ndata) instead of (1, ndata)
replica_data.append(replica[i][key][0])
else:
replica_data.append(replica[i][key])
# Stack
Expand Down

0 comments on commit a7dfc0d

Please sign in to comment.