edgi-govdata-archiving / ECHO-Cross-Program

Jupyter Notebooks for ECHO that use data from multiple EPA programs
https://colab.research.google.com/github/edgi-govdata-archiving/ECHO-Cross-Program/blob/master/ECHO-Cross-Programs.ipynb
GNU General Public License v3.0
8 stars 5 forks source link

Files have the directory slash encoded #141

Closed shansen5 closed 2 years ago

shansen5 commented 2 years ago

Describe the bug The write_dataset() function in ECHO_modules.utilities is encoding the filename to handle special characters that might get included. This encoding is also encoding the '/' character of the directory that the file should be written to.

Which Notebook? This shows up in ECHO-Cross-Program's cell 10.

To Reproduce Steps to reproduce the behavior:

  1. Pick any region and program.
  2. In cell 10 it should be writing output to CSVs/filename. Instead it is writing to CSVs%2Ffilename. The %2F is the encoding for the '/'.
  3. Go to '...'
  4. Click on '....'
  5. Scroll down to '....'
  6. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

shansen5 commented 2 years ago

Thank you @ctsiagkalis!