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

Add echopype working directory #896

Merged
merged 3 commits into from
Dec 8, 2022
Merged

Conversation

lsetiawan
Copy link
Member

Overview

This PR is an idea I had in regards to a hidden working directory for echopype. This directory can be used for any temp files/configs/helper files or sub directories, etc that we may need. It's hidden but can still be easily found in the user directory.

echopype/tests/test_core.py Outdated Show resolved Hide resolved
@emiliom
Copy link
Collaborator

emiliom commented Dec 8, 2022

I like it. Granted, this new user folder would be hidden, so users would need to be made aware of it, say, to clean it up occasionally. But if the official temp space (tempfile.TemporaryDirectory()) is not guaranteed to always clean up, at least this one is a little more visible.

@leewujung
Copy link
Member

Two things that should follow from this:

  • move all the temp directories and temp zarr files into this hidden directory, instead of the current temp_echopype_output directory
  • move all the testing framework and files into this hidden directory

@codecov-commenter
Copy link

codecov-commenter commented Dec 8, 2022

Codecov Report

Merging #896 (cdccbf3) into dev (b0b1490) will decrease coverage by 58.35%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##              dev     #896       +/-   ##
===========================================
- Coverage   78.54%   20.18%   -58.36%     
===========================================
  Files          53       53               
  Lines        5112     5117        +5     
===========================================
- Hits         4015     1033     -2982     
- Misses       1097     4084     +2987     
Flag Coverage Δ
unittests 20.18% <100.00%> (-58.36%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
echopype/core.py 88.23% <100.00%> (+2.02%) ⬆️
echopype/metrics/summary_statistics.py 0.00% <0.00%> (-96.43%) ⬇️
echopype/calibrate/ecs_parser.py 0.00% <0.00%> (-95.50%) ⬇️
echopype/utils/uwa.py 6.12% <0.00%> (-87.76%) ⬇️
echopype/convert/set_groups_ad2cp.py 14.85% <0.00%> (-84.00%) ⬇️
echopype/convert/set_groups_ek80.py 13.50% <0.00%> (-83.13%) ⬇️
echopype/calibrate/calibrate_ek.py 13.02% <0.00%> (-80.99%) ⬇️
echopype/echodata/zarr_combine.py 18.26% <0.00%> (-77.63%) ⬇️
echopype/convert/parse_azfp.py 14.88% <0.00%> (-76.79%) ⬇️
echopype/convert/set_groups_azfp.py 21.51% <0.00%> (-75.95%) ⬇️
... and 32 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@lsetiawan lsetiawan merged commit 9bdf03b into OSOceanAcoustics:dev Dec 8, 2022
@lsetiawan lsetiawan deleted the epwd branch December 8, 2022 18:36
lsetiawan added a commit to lsetiawan/echopype that referenced this pull request Feb 27, 2023
* Add echopype working directory

* Update test var names

* Fix .cleanup call
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.

4 participants