Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dasf-messaging-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DASF Data Analytics Software Framework
dasf-messaging-python
Commits
abbf6780
Verified
Commit
abbf6780
authored
3 weeks ago
by
Philipp S. Sommer
Browse files
Options
Downloads
Patches
Plain Diff
add missing type annotations
parent
93aa1cc2
No related branches found
No related tags found
No related merge requests found
Pipeline
#512232
passed
3 weeks ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demessaging/NetCDFDecoder.py
+3
-2
3 additions, 2 deletions
demessaging/NetCDFDecoder.py
with
3 additions
and
2 deletions
demessaging/NetCDFDecoder.py
+
3
−
2
View file @
abbf6780
...
...
@@ -12,6 +12,7 @@ import struct
from
typing
import
List
import
numpy
as
np
import
numpy.typing
as
npt
import
xarray
as
xr
...
...
@@ -35,8 +36,8 @@ def decode(netcdfObject: str) -> xr.Dataset:
extent
=
netcdf_json
[
"
extent
"
]
# init latitude and longitude arrays
lons
=
[]
lats
=
[]
lons
:
npt
.
ArrayLike
=
np
.
array
([],
dtype
=
float
)
lats
:
npt
.
ArrayLike
=
np
.
array
([],
dtype
=
float
)
dataset
=
{}
for
parameter
in
parameters
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment