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

Fix/polytope array parsing #87

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

peshence
Copy link
Collaborator

@peshence peshence commented Mar 4, 2025

Polytope was rejecting string arrays of dates ("yyyymmdd/yyyymmdd/...") due to coercion converting then to an array, and us reusing the mars date checking

@peshence peshence requested review from jameshawkes and sametd March 4, 2025 17:34
@peshence peshence force-pushed the fix/polytope-date-parsing branch from e3ae4d4 to ec6da64 Compare March 4, 2025 17:35
Comment on lines -207 to -219
# # Format time as HHMM
# time_str = f"{hour:02d}{minute:02d}"
# return time_str

# Validate hour and minute
if not (0 <= hour <= 23):
raise CoercionError("Hour must be between 0 and 23.")
if not (0 <= minute <= 59):
raise CoercionError("Minute must be between 0 and 59.")
if minute != 0:
# In your test cases, minute must be zero
raise CoercionError("Minute must be zero.")

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this code is repeated above

@peshence peshence changed the title Fix/polytope date parsing Fix/polytope array parsing Mar 7, 2025
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.

1 participant