Skip to content

Commit

Permalink
Merge pull request #157 from george0st/change
Browse files Browse the repository at this point in the history
Add new projects, renames, tune description
  • Loading branch information
george0st authored May 3, 2024
2 parents 67a258b + c079345 commit e304b5f
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 17 deletions.
2 changes: 1 addition & 1 deletion 01-model/01-project/01-agate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate",
"description": "The A-GATE, focus on these targets Redis, Parquet, CSV",
"description": "The A-GATE, focus on these targets Redis, Parquet, CSV targets",
"labels": {
"temp": "True"
},
Expand Down
12 changes: 12 additions & 0 deletions 01-model/01-project/01/01.01-agate-csv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "agate-csv",
"description": "The A-GATE with csv target",
"labels": {
"temp": "True"
},
"kind": "project",
"parent": "agate",
"spec": {
"targets": ["csv"]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-parquet",
"description": "The A-GATE with parquet",
"description": "The A-GATE with parquet target",
"labels": {
"temp": "True"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-redis",
"description": "The A-GATE with redis",
"description": "The A-GATE with redis target",
"labels": {
"temp": "True"
},
Expand Down
12 changes: 12 additions & 0 deletions 01-model/01-project/01/01.04-agate-mysql.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "agate-mysql",
"description": "The A-GATE with mysql target",
"labels": {
"temp": "True"
},
"kind": "project",
"parent": "agate",
"spec": {
"targets": ["mysql"]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-kafka",
"description": "The A-GATE with kafka",
"description": "The A-GATE with kafka target",
"labels": {
"temp": "True"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-redis-csv",
"description": "The A-GATE with redis and csv",
"description": "The A-GATE with redis and csv targets",
"labels": {
"temp": "True"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-redis-parquet",
"description": "The A-GATE with redis and parquet",
"description": "The A-GATE with redis and parquet targets",
"labels": {
"temp": "True"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-mysql-csv",
"description": "The A-GATE with mysql and csv",
"description": "The A-GATE with mysql and csv targets",
"labels": {
"temp": "True"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-mysql-parquet",
"description": "The A-GATE with mysql and parquet",
"description": "The A-GATE with mysql and parquet targets",
"labels": {
"temp": "True"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-postgres-csv",
"description": "The A-GATE with postgres and csv",
"description": "The A-GATE with postgres and csv targets",
"labels": {
"temp": "True"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agate-postgres-parquet",
"description": "The A-GATE with postgres and parquet",
"description": "The A-GATE with postgres and parquet targets",
"labels": {
"temp": "True"
},
Expand Down
2 changes: 1 addition & 1 deletion 01-model/01-project/02-bgate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bgate",
"description": "The B-GATE, focus on these targets Redis, Parquet, CSV",
"description": "The B-GATE, focus on these targets Redis, Parquet, CSV targets",
"labels": {
"temp": "True"
},
Expand Down
2 changes: 1 addition & 1 deletion 01-model/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The machine learning meta-model with synthetic data (useful for MLOps/feature store), part of the quality gate concept.",
"kind": "model",
"spec": {
"version": "0.2.3",
"version": "0.2.4",
"CSV_SEPARATOR": ",",
"CSV_DECIMAL": "."
}
Expand Down
4 changes: 2 additions & 2 deletions generator/basic_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Sentiment(Enum):
class BasicCommunication(BaseData):

NAME = "07-basic-communication"
COMMUNICATION_HISTORY_DAYS = 90
MAX_COMMUNICATION_HISTORY_DAYS = 90

def __init__(self, path, gmodel):
super().__init__(path, gmodel, BasicCommunication.NAME)
Expand All @@ -35,7 +35,7 @@ def generate(self, count):
# only 3 months back history
# generate communication with history EVENT_HISTORY_DAYS
party_customer=party['party-type'] == "Customer"
communication_date = self.now - datetime.timedelta(days=float(BasicCommunication.COMMUNICATION_HISTORY_DAYS))
communication_date = self.now - datetime.timedelta(days=float(BasicCommunication.MAX_COMMUNICATION_HISTORY_DAYS))

# iteration cross days
while True:
Expand Down
4 changes: 2 additions & 2 deletions generator/basic_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class BasicEvent(BaseData):

NAME = "06-basic-event"
EVENT_HISTORY_DAYS = 90
MAX_EVENT_HISTORY_DAYS = 90

def __init__(self, path, gmodel):
super().__init__(path, gmodel, BasicEvent.NAME)
Expand Down Expand Up @@ -71,7 +71,7 @@ def generate(self, count):

# generate event with history EVENT_HISTORY_DAYS
party_customer=party['party-type'] == "Customer"
event_date = self.now - datetime.timedelta(days=float(BasicEvent.EVENT_HISTORY_DAYS))
event_date = self.now - datetime.timedelta(days=float(BasicEvent.MAX_EVENT_HISTORY_DAYS))

# iteration cross days
while True:
Expand Down
2 changes: 1 addition & 1 deletion generator/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Store the version here so:

__version__ = '0.2.2'
__version__ = '0.2.3'

0 comments on commit e304b5f

Please sign in to comment.