Skip to content

Commit

Permalink
fsspec file handles apparently return bytes, need to be converted to …
Browse files Browse the repository at this point in the history
…strings before writing to output file
  • Loading branch information
jameswilburlewis committed Jan 15, 2025
1 parent b65f6e6 commit 7fef5dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyspedas/projects/maven/download_files_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ def merge_orbit_files():
f.readline()
f.readline()
skip_2_lines = True
code.write(f.read())
content=f.read()
if type(content) is bytes:
code.write(str(content))
else:
code.write(content)

return

Expand Down

0 comments on commit 7fef5dd

Please sign in to comment.