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

8784 Check if string column should be date when reading from excel #8791

Merged
merged 3 commits into from Apr 4, 2024

Conversation

par456
Copy link
Collaborator

@par456 par456 commented Mar 28, 2024

Resolves #8785

Made it check every column with a string data type, checking until it finds an entry that cannot be parsed to a date. If all the cells can be read as dates, the column data type is then changed. Uses the DateUtilities system to determine if something is a date.

@par456 par456 requested a review from ric394 April 3, 2024 01:48
Copy link
Contributor

@ric394 ric394 left a comment

Choose a reason for hiding this comment

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

These new methods will need unit tests.

@ric394 ric394 merged commit 435954a into APSIMInitiative:master Apr 4, 2024
2 checks passed
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.

APSIM not detecting values as dates if they are listed as 'general' in excel
2 participants