ChaterJee 0.5.4__tar.gz → 0.5.6__tar.gz
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-0.5.4 → chaterjee-0.5.6}/ChaterJee/ChaterJee.py +8 -6
- {chaterjee-0.5.4 → chaterjee-0.5.6}/ChaterJee.egg-info/PKG-INFO +1 -1
- {chaterjee-0.5.4 → chaterjee-0.5.6}/PKG-INFO +1 -1
- {chaterjee-0.5.4 → chaterjee-0.5.6}/setup.py +1 -1
- {chaterjee-0.5.4 → chaterjee-0.5.6}/ChaterJee/__init__.py +0 -0
- {chaterjee-0.5.4 → chaterjee-0.5.6}/ChaterJee.egg-info/SOURCES.txt +0 -0
- {chaterjee-0.5.4 → chaterjee-0.5.6}/ChaterJee.egg-info/dependency_links.txt +0 -0
- {chaterjee-0.5.4 → chaterjee-0.5.6}/ChaterJee.egg-info/requires.txt +0 -0
- {chaterjee-0.5.4 → chaterjee-0.5.6}/ChaterJee.egg-info/top_level.txt +0 -0
- {chaterjee-0.5.4 → chaterjee-0.5.6}/README.md +0 -0
- {chaterjee-0.5.4 → chaterjee-0.5.6}/setup.cfg +0 -0
@@ -134,7 +134,10 @@ class ChatLogs:
|
|
134
134
|
logDIR = Path(jobs[job_name]['logDIR'])
|
135
135
|
logFILE = jobs[job_name]['logFILE']
|
136
136
|
logIMAGE = jobs[job_name]['logIMAGE']
|
137
|
-
|
137
|
+
try:
|
138
|
+
logDICT = jobs[job_name]['logDICT']
|
139
|
+
except KeyError:
|
140
|
+
logDICT = None
|
138
141
|
|
139
142
|
self.txt = self.get_last_line(logDIR / logFILE)
|
140
143
|
|
@@ -440,7 +443,7 @@ class NoteLogs:
|
|
440
443
|
self.logIMAGE = None
|
441
444
|
self.logDICT = None
|
442
445
|
|
443
|
-
def write(self, jobNAME: str, logDIR: str = None, logSTRING: str = None, logFILE: str = 'log_file.out', logIMAGE: str = 'log_file.png'
|
446
|
+
def write(self, jobNAME: str, logDIR: str = None, logSTRING: str = None, logFILE: str = 'log_file.out', logIMAGE: str = 'log_file.png'):
|
444
447
|
if logDIR is None:
|
445
448
|
pwd = Path.cwd()
|
446
449
|
_logDIR = pwd / jobNAME
|
@@ -461,10 +464,9 @@ class NoteLogs:
|
|
461
464
|
self.logDIR = logDIR
|
462
465
|
self.logFILE = logFILE
|
463
466
|
self.logIMAGE = logIMAGE
|
464
|
-
self.logDICT = logDICT
|
465
467
|
self.save_job_JSON()
|
466
468
|
|
467
|
-
def save_job_JSON(self):
|
469
|
+
def save_job_JSON(self, logDICT: str = None):
|
468
470
|
_data = self.home / ".data"
|
469
471
|
_data.mkdir(exist_ok=True)
|
470
472
|
jobs_file = _data / "JOB_status.json"
|
@@ -484,8 +486,8 @@ class NoteLogs:
|
|
484
486
|
jobD["logFILE"] = self.logFILE
|
485
487
|
if self.logIMAGE is not None:
|
486
488
|
jobD["logIMAGE"] = self.logIMAGE
|
487
|
-
if
|
488
|
-
jobD["logDICT"] =
|
489
|
+
if logDICT is not None:
|
490
|
+
jobD["logDICT"] = logDICT
|
489
491
|
if len(jobD):
|
490
492
|
jobs[self.jobNAME] = jobD
|
491
493
|
with open(jobs_file, 'w') as ffw:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|