Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fireatlas_nrt
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gcorradini
fireatlas_nrt
Merge requests
!43
simple pickle test
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
simple pickle test
feature/inspect-pickles
into
conus-dps
Overview
0
Commits
1
Pipelines
0
Changes
1
Closed
gcorradini
requested to merge
feature/inspect-pickles
into
conus-dps
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
conus-dps
conus-dps (base)
and
latest version
latest version
b8e3872a
1 commit,
2 years ago
1 file
+
15
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
test.py
0 → 100644
+
15
−
0
Options
import
pickle
from
FireObj
import
*
import
glob
def
identify_pickle_objects
(
pickle_file
):
with
open
(
pickle_file
,
'
rb
'
)
as
file
:
try
:
obj
=
pickle
.
load
(
file
)
print
(
f
'
Successfully loaded object of type:
{
type
(
obj
)
}
'
)
except
(
EOFError
,
Exception
)
as
e
:
print
(
f
'
Failed to load object:
{
e
}
'
)
# shared-buckets/gsfc_landslides/FEDSoutput-s3-conus/CONUS_NRT_DPS/2023/Serialization/20230101AM_full.pkl
for
item
in
glob
.
glob
(
'
shared-buckets/gsfc_landslides/FEDSoutput-s3-conus/CONUS_NRT_DPS/2023/Serialization/*.pkl
'
):
identify_pickle_objects
(
item
)
Loading