-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
Codecov Report
@@ 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. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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).