-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Folder #199
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
☔ View full report in Codecov by Sentry. |
opem/Functions.py
Outdated
if not os.path.exists(Folder): | ||
os.mkdir(Folder) |
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.
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.
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.
fixed in 4745d34
os.mkdir(Folder) | ||
sim_folder = os.path.join(Folder, Title) | ||
if not os.path.exists(sim_folder): | ||
os.mkdir(sim_folder) |
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.
What is this for?
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.
fixed in 4745d34
opem/Functions.py
Outdated
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) |
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.
similar 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.
fixed in 4745d34
opem/Functions.py
Outdated
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) |
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.
and 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.
fixed in 4745d34
Reference Issues/PRs
#174
What does this implement/fix? Explain your changes.
Folder
parameter added toStatic_Analysis
functionFolder
parameter added toDynamic_Analysis
functionAny other comments?