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

BUG: Reading serialized event requires conversion of dates #3528

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

hjmjohnson
Copy link
Contributor

@hjmjohnson hjmjohnson commented Oct 26, 2022

This patch attempts to convert string date representations back to datetime.date objects to that computations
can be done on them.

Summary

Partially Fixes #3527

List of changes proposed in this PR (pull request)

After fixing the string-to-date object crash, other crashes began to appear. Hopefully, a more knowledgeable person can identify what needs to happen quickly.

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Patch coverage has no change and project coverage change: -0.03% ⚠️

Comparison is base (2ffd002) 63.17% compared to head (1458032) 63.15%.

❗ Current head 1458032 differs from pull request most recent head c749dbf. Consider uploading reports for the commit c749dbf to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3528      +/-   ##
==========================================
- Coverage   63.17%   63.15%   -0.03%     
==========================================
  Files         308      308              
  Lines       40813    40829      +16     
  Branches     5654     5658       +4     
==========================================
  Hits        25784    25784              
- Misses      14016    14032      +16     
  Partials     1013     1013              
Files Changed Coverage Δ
nipype/utils/draw_gantt_chart.py 10.90% <0.00%> (-1.18%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies
Copy link
Member

@shnizzedy Is this something you're familiar with at all? I've never used the gantt chart functionality.

@shnizzedy
Copy link
Member

I'll take a look at this when I have a chance.

In the meantime, @hjmjohnson check out #3290. You might be able to get these charts drawn from there, although I'm not sure if #3527 (comment) is from a change newer than when I drafted that PR

This patch attempts to convert string date representations
back to datetime.date objects so that compuations
can be done on them.
@hjmjohnson
Copy link
Contributor Author

@shnizzedy I think this is still a relevant issue and that the code fixes the bug. Could you please review?

@hjmjohnson hjmjohnson added the bug label Aug 8, 2023
@hjmjohnson hjmjohnson added this to the 1.8.0 milestone Aug 8, 2023
@hjmjohnson hjmjohnson merged commit b066807 into nipy:master Nov 15, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate_gantt_chart fails to convert strings to datetime objects
4 participants