Skip to content
Snippets Groups Projects

Potentially fix datetime

Merged Julia Signell requested to merge js/fix-datetime into primarykeyv2

Trying to resolve this bug

shared/gsfc_landslides/FEDSpreprocessed/CONUS/VIIRS/20240405_PM.txt
2024-04-10 08:47:18,520 - fireatlas.FireLog - INFO - Running code for CONUS from [2024, 1, 1, 'AM'] to [2024, 4, 10, 'AM'] with source VIIRS
2024-04-10 08:47:18,783 - fireatlas.FireLog - INFO - func:read_preprocessed took: 89.44 ms
2024-04-10 08:47:18,866 - fireatlas.FireLog - INFO - func:read_preprocessed took: 82.28 ms
2024-04-10 08:47:18,972 - fireatlas.FireLog - INFO - func:read_preprocessed took: 105.56 ms
2024-04-10 08:47:19,054 - fireatlas.FireLog - INFO - func:read_preprocessed took: 82.03 ms
2024-04-10 08:47:22,452 - fireatlas.FireLog - INFO - func:read_allpixels took: 3.39 sec
2024-04-10 08:47:32,347 - fireatlas.FireLog - INFO - func:read_allfires_gdf took: 9.59 sec
2024-04-10 08:48:34,561 - fireatlas.FireLog - INFO - func:rehydrate took: 1.20 min
2024-04-10 08:48:34,561 - fireatlas.FireLog - INFO - --------------------
2024-04-10 08:48:34,562 - fireatlas.FireLog - INFO - Fire tracking at [2024, 4, 8, 'PM']
2024-04-10 09:01:07,256 - distributed.worker - WARNING - Compute Failed
Key:       job_fire_forward-1b06ae17-1a0b-48de-ae06-b0dda3d1685c
Function:  job_fire_forward
args:      ([None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, No
kwargs:    {}
Exception: 'TypeError("\'<=\' not supported between instances of \'str\' and \'datetime.datetime\'")'
Error in program being profiled:
 '<=' not supported between instances of 'str' and 'datetime.datetime'
Traceback (most recent call last):
  File "/opt/conda/envs/vanilla/lib/python3.10/site-packages/scalene/scalene_profiler.py", line 1731, in profile_code
    exec(code, the_globals, the_locals)
  File "/app/fireatlas_nrt/fireatlas/FireRunDaskCoordinator.py", line 142, in <module>
    Run([args.regnm, args.bbox], args.tst, args.ted)
  File "/app/fireatlas_nrt/fireatlas/utils.py", line 14, in wrap
    result = f(*args, **kwargs)
  File "/app/fireatlas_nrt/fireatlas/FireRunDaskCoordinator.py", line 124, in Run
    fire_forward_results.compute()
  File "/opt/conda/envs/vanilla/lib/python3.10/site-packages/dask/base.py", line 375, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/opt/conda/envs/vanilla/lib/python3.10/site-packages/dask/base.py", line 661, in compute
    results = schedule(dsk, keys, **kwargs)
  File "/app/fireatlas_nrt/fireatlas/FireRunDaskCoordinator.py", line 50, in job_fire_forward
    allfires, allpixels = Fire_Forward(tst=tst, ted=ted, region=region, restart=False)
  File "/app/fireatlas_nrt/fireatlas/utils.py", line 14, in wrap
    result = f(*args, **kwargs)
  File "/app/fireatlas_nrt/fireatlas/FireMain.py", line 590, in Fire_Forward
    allfires = Fire_Forward_one_step(allfires, allpixels, t, region)
  File "/app/fireatlas_nrt/fireatlas/utils.py", line 14, in wrap
    result = f(*args, **kwargs)
  File "/app/fireatlas_nrt/fireatlas/FireMain.py", line 470, in Fire_Forward_one_step
    allfires = Fire_expand_rtree(allfires, allpixels, tpixels, fids_ea)
  File "/app/fireatlas_nrt/fireatlas/utils.py", line 14, in wrap
    result = f(*args, **kwargs)
  File "/app/fireatlas_nrt/fireatlas/FireMain.py", line 276, in Fire_expand_rtree
    f.pixels = pd.concat([f.pixels, newpixels])
  File "/app/fireatlas_nrt/fireatlas/FireObj.py", line 488, in pixels
    & (self.allpixels["t"] <= t2dt(self.t))
  File "ops.pyx", line 107, in pandas._libs.ops.scalar_compare
TypeError: '<=' not supported between instances of 'str' and 'datetime.datetime'

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading