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

Folder #199

Merged
merged 34 commits into from
Nov 9, 2023
Merged

Folder #199

merged 34 commits into from
Nov 9, 2023

Conversation

sepandhaghighi
Copy link
Contributor

@sepandhaghighi sepandhaghighi commented Oct 27, 2023

Reference Issues/PRs

#174

What does this implement/fix? Explain your changes.

  • Folder parameter added to Static_Analysis function
  • Folder parameter added to Dynamic_Analysis function
  • Document modified

Any other comments?

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (63f72e9) 92.70% compared to head (59ef7aa) 92.86%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #199      +/-   ##
===========================================
+ Coverage    92.70%   92.86%   +0.16%     
===========================================
  Files           22       22              
  Lines         1657     1666       +9     
===========================================
+ Hits          1536     1547      +11     
+ Misses         121      119       -2     
Files Coverage Δ
opem/Dynamic/Chakraborty.py 94.36% <100.00%> (ø)
opem/Dynamic/Padulles1.py 93.72% <100.00%> (ø)
opem/Dynamic/Padulles2.py 92.60% <100.00%> (ø)
opem/Dynamic/Padulles_Amphlett.py 93.20% <100.00%> (ø)
opem/Dynamic/Padulles_Hauer.py 92.25% <100.00%> (ø)
opem/Functions.py 89.53% <100.00%> (+0.91%) ⬆️
opem/Static/Amphlett.py 94.78% <100.00%> (ø)
opem/Static/Chamberline_Kim.py 91.46% <100.00%> (ø)
opem/Static/Larminie_Dicks.py 91.31% <100.00%> (ø)
opem/Test/test_Amphlett.py 100.00% <ø> (ø)
... and 8 more

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

Comment on lines 308 to 309
if not os.path.exists(Folder):
os.mkdir(Folder)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Imagine the case that Folder='path/to/folder' and we do not have the path folder. In that case it would raise error FileNotFoundError: [Errno 2] No such file or directory: 'path/to/folder'.
It works just for one layer of folder creation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in 4745d34

os.mkdir(Folder)
sim_folder = os.path.join(Folder, Title)
if not os.path.exists(sim_folder):
os.mkdir(sim_folder)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in 4745d34

Comment on lines 344 to 348
if not os.path.exists(Folder):
os.mkdir(Folder)
sim_folder = os.path.join(Folder, Title)
if not os.path.exists(sim_folder):
os.mkdir(sim_folder)
Copy link
Collaborator

Choose a reason for hiding this comment

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

similar here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in 4745d34

Comment on lines 384 to 388
if not os.path.exists(Folder):
os.mkdir(Folder)
sim_folder = os.path.join(Folder, Title)
if not os.path.exists(sim_folder):
os.mkdir(sim_folder)
Copy link
Collaborator

Choose a reason for hiding this comment

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

and here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in 4745d34

@sepandhaghighi sepandhaghighi marked this pull request as ready for review November 7, 2023 22:55
@sadrasabouri sadrasabouri merged commit b847be6 into develop Nov 9, 2023
@sadrasabouri sadrasabouri deleted the folder branch November 9, 2023 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants