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

Mini snap make folders #620

Merged
merged 7 commits into from
Aug 10, 2022
Merged

Mini snap make folders #620

merged 7 commits into from
Aug 10, 2022

Conversation

mkolopanis
Copy link
Member

Organizes the mini-snap catcher to write data to folders based on the JD.

Tried to sure up some logic to reduce the amount of logger warnings about data timeouts.

On site verified that data is written to the expected folders but haven't verified the logger is any less talkative yet (currently taking data at time of writing).

@codecov
Copy link

codecov bot commented Aug 10, 2022

Codecov Report

Merging #620 (92d5ca0) into main (b00eb83) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #620   +/-   ##
=======================================
  Coverage   98.14%   98.14%           
=======================================
  Files          35       35           
  Lines        5130     5130           
=======================================
  Hits         5035     5035           
  Misses         95       95           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@bhazelton bhazelton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable.


folder_name = f"{int(np.floor(date)):d}"

# make the fold for the JD if it does not exist
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fold for -> folder?

folder_name = f"{int(np.floor(date)):d}"

# make the fold for the JD if it does not exist
folder = Path(args.outdir) / folder_name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this works, I would normally use os.path.join myself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I like the object based interface for the pathlib.Path object. It does resolve to os.path.join eventually I bet.

@bhazelton bhazelton merged commit 8ef5a5c into main Aug 10, 2022
@bhazelton bhazelton deleted the mini_snap_make_folders branch August 10, 2022 22:59
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 this pull request may close these issues.

2 participants