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

Avoid locale issues in generating forcing .mat files #48

Merged
merged 3 commits into from
Nov 15, 2022

Conversation

BSchilperoort
Copy link
Contributor

@BSchilperoort BSchilperoort commented Nov 7, 2022

This PR tackles issue #38. The problem is circumvented by removing the date string entirely and making it blank.

Note: PR includes commits of #45, to avoid merge conflicts and to have the Windows tests work.

Discussion of this "bug" on hdf5storage.


Tested on:

  • Windows
  • Linux
  • Octave
  • MATLAB

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -67,3 +67,23 @@ def to_absolute_path(
must_exist = os_name() == 'nt'

return pathlike.expanduser().resolve(strict=must_exist)


def sanitize_mat_file(filename):
Copy link
Member

Choose a reason for hiding this comment

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

Let's use another function name that shows what the function is doing, perhaps something like remove_dates_from_header

Copy link
Member

@SarahAlidoost SarahAlidoost left a comment

Choose a reason for hiding this comment

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

@BSchilperoort thanks, just a minor comment about the name of the function. I tested the PR on linux (my own laptop using exe and crib using ocatve), and with MATLAB on Snellius. 👍

@sonarcloud
Copy link

sonarcloud bot commented Nov 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@BSchilperoort BSchilperoort linked an issue Nov 15, 2022 that may be closed by this pull request
@BSchilperoort BSchilperoort merged commit e834e9e into main Nov 15, 2022
@BSchilperoort BSchilperoort deleted the forcing_mat branch November 15, 2022 07:37
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.

Error using load in Matlab
2 participants