Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilZaim authored Oct 23, 2023
1 parent 78a991c commit 4b8b4ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion Examples/Tests/field_probe/analysis_field_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

# Open data file
df = pd.read_csv(filename, sep=' ')
df.columns = df.columns.str.replace('#', '', n=1)
df = df.sort_values(by=['[2]part_x_lev0(m)'])

# Select position and Intensity of timestep 500
Expand Down
5 changes: 4 additions & 1 deletion Source/Diagnostics/ReducedDiags/FieldProbe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ FieldProbe::FieldProbe (std::string rd_name)

// write header row
int c = 0;
ofs << "#";
// No "#" symbol in FieldProbe header, because the recommended way to read FieldProbe
// output is to use pandas, which requires reading the header rather than treating it as a
// commented line.
// ofs << "#";
ofs << "[" << c++ << "]step()";
ofs << m_sep;
ofs << "[" << c++ << "]time(s)";
Expand Down

0 comments on commit 4b8b4ec

Please sign in to comment.