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

rm old files when performing dp model-devi #1332

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Sep 13, 2023

dp model-devi appends output into the existing file instead of overwriting it, so if there is an existing file (maybe caused by restart), there might be errors in reading it.

rm -f does not check if the file exists and always returns exit code 0.

`dp model-devi` appends output into the existing file instead of overwriting it, so if there is an existing file (maybe caused by restart), there might be errors in reading it.

`rm -f` does not check if the file exists and always returns exit code 0.

Signed-off-by: Jinzhe Zeng <[email protected]>
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (ff402bb) 48.54% compared to head (71c0eee) 48.54%.
Report is 1 commits behind head on devel.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #1332   +/-   ##
=======================================
  Coverage   48.54%   48.54%           
=======================================
  Files          82       82           
  Lines       14659    14659           
=======================================
  Hits         7116     7116           
  Misses       7543     7543           
Files Changed Coverage Δ
dpgen/simplify/simplify.py 46.09% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wanghan-iapcm wanghan-iapcm merged commit a714d79 into deepmodeling:devel Sep 14, 2023
5 checks passed
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