-
Notifications
You must be signed in to change notification settings - Fork 18
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
🩹 Fix save_result crashes on Windows if input data are on a different drive than result #931
🩹 Fix save_result crashes on Windows if input data are on a different drive than result #931
Conversation
On windows if ``source_path`` and ``base_path`` are on different drives, it will return the absolute posix path to the file.
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.5.0 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Codecov Report
@@ Coverage Diff @@
## main #931 +/- ##
=====================================
Coverage 85.1% 85.1%
=====================================
Files 85 85
Lines 4796 4799 +3
Branches 921 921
=====================================
+ Hits 4082 4085 +3
Misses 562 562
Partials 152 152
Continue to review full report at Codecov.
|
Using |
e431760
to
9e3a581
Compare
I dropped e431760 since it causes the examples to fail when reoptimizing a result for some reason. |
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.
Some typos to correct and suggest to do some sanity investigation on the other platforms we target.
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.56%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Kudos, SonarCloud Quality Gate passed!
|
⬆️ Update version number to 0.5.1 Prepare patch release fixing two bugs: - 🩹 Bugfix Use normalized initial_concentrations in result creation for decay megacomplex (glotaran#927) - 🩹 Fix save_result crashes on Windows if input data are on a different drive than result (glotaran#931)
⬆️ Update version number to 0.5.1 Prepare patch release fixing two bugs: - 🩹 Bugfix Use normalized initial_concentrations in result creation for decay megacomplex (glotaran#927) - 🩹 Fix save_result crashes on Windows if input data are on a different drive than result (glotaran#931)
This fixes the crash of
save_result
when the original data and the result path are on different drives on windows.The commit e431760 is optional.Change summary
- ♻️ Changed save_result folder to use the result.data for scheme.dataChecklist
Closes issues
closes #924