file writing in the API example doesn't work
file writing when trying to run the API example here:https://code.usgs.gov/ghsc/geomag/geomag-algorithms/-/tree/master doesn't work. The error is below:
output_factory.write_file(
File "/home/dwilson/anaconda3/envs/geomagenv/lib/python3.10/site-packages/geomagio/iaga2002/IAGA2002Factory.py", line 96, in write_file IAGA2002Writer().write(fh, timeseries, channels) File "/home/dwilson/anaconda3/envs/geomagenv/lib/python3.10/site-packages/geomagio/iaga2002/IAGA2002Writer.py", line 47, in write out.write(self._format_headers(stats, channels).encode("utf8")) TypeError: descriptor 'encode' for 'str' objects doesn't apply to a 'bytes' object