Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails if directory for storing csv report does not exist. #8

Open
RemingtonRohel opened this issue Oct 18, 2023 · 1 comment · May be fixed by #12
Open

Fails if directory for storing csv report does not exist. #8

RemingtonRohel opened this issue Oct 18, 2023 · 1 comment · May be fixed by #12

Comments

@RemingtonRohel
Copy link
Contributor

Running borealis_gaps.py new on sdc-serv yielded the following error:

Traceback (most recent call last):
  File "/home/dataman/borealis-data-utils/borealis_gaps.py", line 453, in <module>
    print_gaps(gaps_dict, first_timestamp, last_timestamp, gap_spacing, print_filename)
  File "/home/dataman/borealis-data-utils/borealis_gaps.py", line 289, in print_gaps
    with open(print_filename, "a") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/dataman/borealis_gaps/20230920_20231017_sas_rawacf_gaps.csv'

since the directory /home/dataman/borealis_gaps/ did not exist. This script should check and create if necessary.

@tjk584
Copy link

tjk584 commented Jan 17, 2024

Came here to make this exact issue. Just got me after waiting 1.5 hours to process 6 days of downtimes at clyde.

@RemingtonRohel RemingtonRohel linked a pull request Sep 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants