Skip to content

Commit

Permalink
Allow comments in measurement files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Schopfer committed Jun 11, 2021
1 parent aa319ec commit 4c752fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
parser.add_argument('file', type=str, help='file containing the data to plot')
args = parser.parse_args()

data = pd.read_csv(args.file, usecols=['Time', 'CO2[ppm]'], converters={'Time': datetime.fromisoformat}, index_col='Time')
data = pd.read_csv(args.file, usecols=['Time', 'CO2[ppm]'], converters={'Time': datetime.fromisoformat}, index_col='Time', comment='#')

# Plot line
data.plot(ylabel='CO2 [ppm]', legend=False, color='black', linewidth=2)
Expand Down

0 comments on commit 4c752fe

Please sign in to comment.