Skip to content

Remove os.mknod in deepmd/{raw.py,comp.py}#149

Merged
amcadmus merged 3 commits into
deepmodeling:develfrom
AnguseZhang:devel
May 10, 2021
Merged

Remove os.mknod in deepmd/{raw.py,comp.py}#149
amcadmus merged 3 commits into
deepmodeling:develfrom
AnguseZhang:devel

Conversation

@AnguseZhang

Copy link
Copy Markdown
Collaborator

os.mknod method is not supported on MacOS and Windows.
See
https://stackoverflow.com/questions/32115715/os-mknod-fails-on-macos

Suggest use "with open" method

method os.mknod is not supported for MacOS and Windows.
@AnguseZhang AnguseZhang requested a review from njzjz May 6, 2021 04:01
@codecov-commenter

codecov-commenter commented May 6, 2021

Copy link
Copy Markdown

Codecov Report

Merging #149 (d91af65) into devel (0ef2e4b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##            devel     #149   +/-   ##
=======================================
  Coverage   84.56%   84.56%           
=======================================
  Files          28       28           
  Lines        3375     3376    +1     
=======================================
+ Hits         2854     2855    +1     
  Misses        521      521           
Impacted Files Coverage Δ
dpdata/deepmd/comp.py 96.93% <100.00%> (+0.03%) ⬆️
dpdata/deepmd/raw.py 93.93% <100.00%> (+0.09%) ⬆️
dpdata/vasp/outcar.py 96.26% <0.00%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ef2e4b...d91af65. Read the comment docs.

Comment thread dpdata/deepmd/comp.py Outdated
@amcadmus amcadmus merged commit e979419 into deepmodeling:devel May 10, 2021
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