-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from Aydinhamedi/Beta-b
Beta b
- Loading branch information
Showing
12 changed files
with
5,423 additions
and
6,051 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
@echo off | ||
echo Generating requirements.txt... | ||
del requirements.txt >nul 2>&1 | ||
echo Y | pigar -l ERROR generate | ||
echo (Batch script) Generating requirements.txt... | ||
del requirements.txt >nul 2>&1 | ||
echo Y | pigar -l ERROR generate >nul 2>&1 | ||
|
||
rem Use PowerShell to remove the first line of requirements.txt and save to a temporary file | ||
powershell -Command "Get-Content requirements.txt | Select-Object -Skip 2 | Set-Content requirements_temp.txt" | ||
|
||
rem Replace the original file with the modified temporary file | ||
move /Y requirements_temp.txt requirements.txt >nul | ||
echo (Batch script) Done Generating requirements.txt. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
del "Model_T&T.ipynb" | ||
copy "BETA_E_Model_T&T.ipynb" "Model_T&T.ipynb" | ||
del "Model_T&T.ipynb" >nul 2>&1 | ||
copy "BETA_E_Model_T&T.ipynb" "Model_T&T.ipynb" >nul 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#pylibs | ||
import inspect | ||
import traceback | ||
from datetime import datetime | ||
from Utils.print_color_V2_NEW import print_Color_V2 | ||
from Utils.print_color_V1_OLD import print_Color | ||
#Debug | ||
def P_Debug(ID, DEBUG_IF, SFL: bool = True, Force: bool = False, SFCS: bool = True): | ||
""" | ||
This function is used for debugging purposes. It prints out various information about the data passed to it. | ||
Args: | ||
ID (Any): The identifier for the data. This could be any type, but is typically a string. | ||
DEBUG_IF (Any): The data that needs to be debugged. This could be any type. | ||
SFL (bool, optional): A flag to determine if the stack frame location should be included in the debug information. Defaults to True. | ||
SFCS (bool, optional): A flag to determine if the function call stack should be included in the debug information. Defaults to True. | ||
Returns: | ||
None | ||
""" | ||
try: | ||
frame_info = inspect.currentframe() | ||
stack_trace = traceback.format_stack() | ||
stack_trace_formated = '' | ||
for line in stack_trace[:-1]: | ||
stack_trace_formated += '--> [!>>>' + line | ||
location = f'{inspect.stack()[1].filename}:{frame_info.f_back.f_lineno}' if SFL else f'L:{frame_info.f_back.f_lineno}' | ||
Debug_data = \ | ||
f'\n~*--> ~*DEBUG INFO id: ~*[{str(ID)}]~*, ' \ | ||
f'Location: ~*[{location}]~*, ' \ | ||
f'time: ~*[{datetime.now().strftime("%Y/%m/%d | %H:%M:%S")}]\n~*--> ~*' \ | ||
f'Data: ~*{str(DEBUG_IF)}\n~*--> ~*' \ | ||
f'Data Type: ~*{type(DEBUG_IF)}\n~*--> ~*' \ | ||
f'Memory Address: ~*DEC>>>~*{id(DEBUG_IF)}~* | HEX>>>~*{hex(id(DEBUG_IF))}~* | BIN>>>~*{bin(id(DEBUG_IF))}\n' | ||
if SFCS: | ||
Debug_data += f'~*--> ~*Function Call Stack: ~*↓\n~*{stack_trace_formated}\n' | ||
print_Color(Debug_data, | ||
['red', 'magenta', 'green', 'magenta', 'yellow', 'magenta', 'yellow', | ||
'red', 'magenta', 'yellow', 'red', 'magenta', 'yellow', 'red', 'magenta', | ||
'cyan', 'yellow', 'cyan', 'yellow', 'cyan', 'yellow', 'red', 'magenta', 'green', 'yellow'] if SFCS else \ | ||
['red', 'magenta', 'green', 'magenta', 'yellow', 'magenta', 'yellow', | ||
'red', 'magenta', 'yellow', 'red', 'magenta', 'yellow', 'red', 'magenta', | ||
'cyan', 'yellow', 'cyan', 'yellow', 'cyan', 'yellow'], | ||
advanced_mode=True) | ||
except Exception as err: | ||
print_Color(f'~*[`Debug` func] --> ERROR: ~*{err}', ['red', 'yellow'], advanced_mode=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters