Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
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
FINAM
finam
Commits
48fda194
Commit
48fda194
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
remove unused function, test datetime conversion
parent
18c24494
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!235
No xarray!
Pipeline
#134734
passed with stages
in 5 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/data/tools.py
+0
-26
0 additions, 26 deletions
src/finam/data/tools.py
with
0 additions
and
26 deletions
src/finam/data/tools.py
+
0
−
26
View file @
48fda194
...
@@ -21,32 +21,6 @@ _UNIT_CACHE = {}
...
@@ -21,32 +21,6 @@ _UNIT_CACHE = {}
_UNIT_PAIRS_CACHE
=
{}
_UNIT_PAIRS_CACHE
=
{}
def
_gen_dims
(
ndim
,
info
):
"""
Generate dimension names.
Parameters
----------
ndim : int
Number of dimensions.
info : Info
Info associated with the data.
Returns
-------
list
Dimension names.
"""
# create correct dims (time always first)
dims
=
[
"
time
"
]
if
isinstance
(
info
.
grid
,
grid_spec
.
NoGrid
):
# xarray has dim_0, dim_1 ... as default names
dims
+=
[
f
"
dim_
{
i
}
"
for
i
in
range
(
ndim
)]
else
:
dims
+=
info
.
grid
.
data_axes_names
return
dims
def
to_xarray
(
data
,
info
,
time_entries
=
1
,
force_copy
=
False
):
def
to_xarray
(
data
,
info
,
time_entries
=
1
,
force_copy
=
False
):
"""
"""
Convert data to a xarray.DataArray.
Convert data to a xarray.DataArray.
...
...
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