Skip to content

Commit 20aa2b6

Browse files
author
Kyle Skolfield
committed
blank inits for new dictionary structures
1 parent 3c374b8 commit 20aa2b6

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

gtep/time_nest_data.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import awkward as ak
2+
import logging
3+
import pathlib
4+
5+
logger = logging.getLogger("time_nest_data")
26

37
# build helper wrapper thingy for awkward arrays
48
# how to interface with config?
5-
# one thing it should do is send itself to config, most notably the time dict shenanigans
9+
# one thing it should do is send itself to config, most notably the time dict shenanigans
10+
611

712
class timeNestData(object):
813
def __init__(self):
9-
pass
14+
pass

gtep/time_period_data.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import awkward as ak
2+
import logging
3+
import pathlib
4+
5+
logger = logging.getLogger("time_period_data")
6+
7+
# build helper wrapper thingy for awkward arrays
8+
# how to interface with config?
9+
# one thing it should do is send itself to config, most notably the time dict shenanigans
10+
11+
12+
class timePeriodData(object):
13+
@staticmethod
14+
def empty_time_period_dict():
15+
"""_summary_
16+
17+
Returns:
18+
_type_: _description_
19+
"""
20+
return {"name": None, "level": None}
21+
22+
def __init__(self, source=None, file_type=None):
23+
"""
24+
Create a new timePeriodData object to wrap a * dictionary with some helper methods.
25+
26+
Parameters
27+
----------
28+
source: dict, str, timePeriodData, or None (optional)
29+
If dict, an initial * dictionary
30+
If str, a path to a file parsable as a dictionary
31+
If timePeriodData, the original is copied into the new timePeriodData
32+
If None, a blank dictionary is created
33+
"""
34+
pass

0 commit comments

Comments
 (0)