ChaterJee 0.5.3__py3-none-any.whl → 0.5.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ChaterJee/ChaterJee.py +19 -11
- {chaterjee-0.5.3.dist-info → chaterjee-0.5.5.dist-info}/METADATA +1 -1
- chaterjee-0.5.5.dist-info/RECORD +6 -0
- chaterjee-0.5.3.dist-info/RECORD +0 -6
- {chaterjee-0.5.3.dist-info → chaterjee-0.5.5.dist-info}/WHEEL +0 -0
- {chaterjee-0.5.3.dist-info → chaterjee-0.5.5.dist-info}/top_level.txt +0 -0
ChaterJee/ChaterJee.py
CHANGED
@@ -440,7 +440,7 @@ class NoteLogs:
|
|
440
440
|
self.logIMAGE = None
|
441
441
|
self.logDICT = None
|
442
442
|
|
443
|
-
def write(self, jobNAME: str, logDIR: str = None, logSTRING: str = None, logFILE: str = 'log_file.out', logIMAGE: str = 'log_file.png'
|
443
|
+
def write(self, jobNAME: str, logDIR: str = None, logSTRING: str = None, logFILE: str = 'log_file.out', logIMAGE: str = 'log_file.png'):
|
444
444
|
if logDIR is None:
|
445
445
|
pwd = Path.cwd()
|
446
446
|
_logDIR = pwd / jobNAME
|
@@ -461,10 +461,9 @@ class NoteLogs:
|
|
461
461
|
self.logDIR = logDIR
|
462
462
|
self.logFILE = logFILE
|
463
463
|
self.logIMAGE = logIMAGE
|
464
|
-
self.logDICT = logDICT
|
465
464
|
self.save_job_JSON()
|
466
465
|
|
467
|
-
def save_job_JSON(self):
|
466
|
+
def save_job_JSON(self, logDICT: str = None):
|
468
467
|
_data = self.home / ".data"
|
469
468
|
_data.mkdir(exist_ok=True)
|
470
469
|
jobs_file = _data / "JOB_status.json"
|
@@ -473,13 +472,22 @@ class NoteLogs:
|
|
473
472
|
jobs = json.load(ffr)
|
474
473
|
except FileNotFoundError:
|
475
474
|
jobs = {}
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
475
|
+
try:
|
476
|
+
jobD = jobs[self.jobNAME]
|
477
|
+
except KeyError:
|
478
|
+
jobs[self.jobNAME] = {}
|
479
|
+
jobD = {}
|
480
|
+
if self.logDIR is not None:
|
481
|
+
jobD["logDIR"] = self.logDIR
|
482
|
+
if self.logFILE is not None:
|
483
|
+
jobD["logFILE"] = self.logFILE
|
484
|
+
if self.logIMAGE is not None:
|
485
|
+
jobD["logIMAGE"] = self.logIMAGE
|
486
|
+
if logDICT is not None:
|
487
|
+
jobD["logDICT"] = logDICT
|
488
|
+
if len(jobD):
|
489
|
+
jobs[self.jobNAME] = jobD
|
490
|
+
with open(jobs_file, 'w') as ffw:
|
491
|
+
json.dump(jobs, ffw, indent=4)
|
484
492
|
|
485
493
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
ChaterJee/ChaterJee.py,sha256=pfUHdF8vmAKeLTIBbXtEJKst1swKBHqzu3VsCvXqQJE,19952
|
2
|
+
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
+
chaterjee-0.5.5.dist-info/METADATA,sha256=oSCj7QjFvZD6DqA9aQbL59uN-HrOSLd8kj8UdNFk69Y,6723
|
4
|
+
chaterjee-0.5.5.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
+
chaterjee-0.5.5.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
+
chaterjee-0.5.5.dist-info/RECORD,,
|
chaterjee-0.5.3.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
ChaterJee/ChaterJee.py,sha256=SX5GMijhukAs8fp-IH3AHM_IR2vh5iuSFNkXrhT1OOo,19693
|
2
|
-
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
-
chaterjee-0.5.3.dist-info/METADATA,sha256=sn74rD6LqCLw98WlXwE8Le9-nnNot4atPEvYWM1b95o,6723
|
4
|
-
chaterjee-0.5.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
-
chaterjee-0.5.3.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
-
chaterjee-0.5.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|