Skip to content

Commit

Permalink
improved Time_Series__Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Feb 8, 2025
1 parent 2054ab7 commit 05caa2a
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 172 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
from typing import Optional
from mgraph_db.mgraph.actions.MGraph__Edit import MGraph__Edit
from mgraph_db.mgraph.actions.MGraph__Index import MGraph__Index
from mgraph_db.mgraph.actions.MGraph__Index import MGraph__Index
from mgraph_db.mgraph.domain.Domain__MGraph__Node import Domain__MGraph__Node
from mgraph_db.providers.time_series.schemas.Schema__MGraph__Node__Time_Point import Schema__MGraph__Node__Time_Point
from mgraph_db.providers.time_series.schemas.Schema__MGraph__Node__Value__Int import Schema__MGraph__Node__Value__Int
from mgraph_db.providers.time_series.schemas.Schema__MGraph__TimeSeries__Edges import Schema__MGraph__Time_Series__Edge__Year, Schema__MGraph__Time_Series__Edge__Month, Schema__MGraph__Time_Series__Edge__Day, Schema__MGraph__Time_Series__Edge__Hour, Schema__MGraph__Time_Series__Edge__Minute
from osbot_utils.decorators.methods.cache_on_self import cache_on_self
from osbot_utils.decorators.methods.cache_on_self import cache_on_self
from osbot_utils.helpers.Obj_Id import Obj_Id


class MGraph__Time_Series__Edit(MGraph__Edit):

def create_time_point(self, year : int , # Create a complete time point
month : Optional[int] ,
day : Optional[int] ,
hour : Optional[int] ,
def create_time_point(self, year : Optional[int] = None, # Create a complete time point
month : Optional[int] = None,
day : Optional[int] = None,
hour : Optional[int] = None,
minute : Optional[int] = None
) -> Domain__MGraph__Node:
time_point = self.new_node(node_type = Schema__MGraph__Node__Time_Point) # Create a new time point with specified components
Expand Down
Loading

0 comments on commit 05caa2a

Please sign in to comment.