Skip to content

Commit

Permalink
4.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dkundih committed Apr 9, 2023
1 parent b7c0ee1 commit b58ec75
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 6 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,16 @@ CHANGELOG
- now also inits colorama colors before other packages to avoid conflicts.

3.8.10 (07/08/2022)
- changes to coloring policies
- changes to coloring policies.
- aligned paint_text to duality._paint_text changes.

3.8.11 (13/08/2022)
- aligned to recent logistics and duality changes.

4.0.0 (09/04/2023)
Hello everyone, I am back with great news after a few months:
- MonteCarlo now has a GUI. Call it as python -m vandal -e montecarlogui. It is in testing phase so stay patient.

4.0.9 (09/04/2023)
- Attempt on fixing GUI issues.
- Currently avalable through "python -m vandal -e montecarlogui" or manually running .pyw file from GitHub.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ pip install vandal
pip install vandal -r requirements.txt
```

<h3>GUI applications</h3>

vandal provides an option of being run within any terminal as a data science/machine learning application in the form of a GUI.

```sh
# terminal app entry choices for GUI apps.
python -m vandal -e montecarlogui / python -m vandal --entry montecarlogui
```

<h3>Terminal CLI application</h3>

Expand All @@ -52,6 +60,10 @@ python -m vandal -e / python -m vandal --entry
# terminal app entry example.
python -m vandal -e montecarlo / python -m vandal --entry montecarlo
```
**Example use**

<b>TERMINAL USE #1</b>
![vandal-terminalgui](https://raw.githubusercontent.com/dkundih/vandal/master/_logistics/MCGUI.png)

**Example use**

Expand Down
Binary file added _logistics/MCGUI.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
logistics >= 0.0.15
colorama
logistics >= 0.0.15
pandas >= 1.2.3
numpy >= 1.19.5
matplotlib >= 3.4.3
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
keywords = 'data science, machine learning, data manipulation, artificial intelligence, AI, unin, duality, duality-py, duality.py, vandal, vandal-py, vandal.py',
packages = find_packages(),
install_requires = [
'logistics >= 0.0.15',
'colorama',
'logistics >= 0.0.15',
'pandas >= 1.2.3',
'numpy >= 1.19.5',
'matplotlib >= 3.4.3',
Expand Down
3 changes: 3 additions & 0 deletions vandal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
)
from vandal.objects.dijkstra import Dijkstra

from vandal.apps import montecarlo_gui

# hub toolkit imports.
from vandal.hub.toolkit import (
random_value,
Expand Down Expand Up @@ -173,6 +175,7 @@
'linear_regression',
'MonteCarlo',
'MCapp',
'MonteCarloGUI'
'EOQ',
'EOQapp',
'Dijkstra',
Expand Down
12 changes: 11 additions & 1 deletion vandal/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
init,
)

import tkinter as tk

init()

# imports all relevant contents.
Expand All @@ -15,6 +17,9 @@
eoq,
)

# MC app import.
from vandal.apps import montecarlo_gui

# imports plugins.
from logistics.plugins.metaclass import Meta

Expand All @@ -26,7 +31,7 @@
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-e', '--entry', help = 'start the desired application.', type = str,
choices = ['montecarlo', 'eoq'])
choices = ['montecarlo', 'eoq', 'montecarlogui'])
args = parser.parse_args()

if args.entry == 'montecarlo':
Expand All @@ -35,3 +40,8 @@
elif args.entry == 'eoq':
print(Fore.YELLOW + '=== ENTERING ECONOMIC ORDER QUANTITY CLIENT... ===\n', Fore.RESET)
vandal.objects.eoq.EOQapp()
elif args.entry == 'montecarlogui':
print(Fore.YELLOW + '=== ENTERING MONTECARLO GUI... ===\n', Fore.RESET)
master = tk.Tk()
vandal.apps.montecarlo_gui.MonteCarloGUI(master = master)
master.mainloop()
Binary file added vandal/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions vandal/misc/_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
'dkundih <https://github.com/dkundih>',

]
__license__ = 'Copyright © 2021-2022 David Kundih. All rights reserved. Licensed under the Apache License, Version 2.0 | For more details about the license and terms of use visit the official vandal documentation linked at https://github.com/dkundih/vandal and https://pypi.org/project/vandal'
__version__ = '3.8.11'
__license__ = 'Copyright © 2021-2023 David Kundih. All rights reserved. Licensed under the Apache License, Version 2.0 | For more details about the license and terms of use visit the official vandal documentation linked at https://github.com/dkundih/vandal and https://pypi.org/project/vandal'
__version__ = '4.0.9'
__documentation__ = 'https://github.com/dkundih/vandal | https://pypi.org/project/vandal'
__contact__ = 'dakundih@unin.hr | kundihdavid@gmail.com'
__donate__ = 'https://patreon.com/dkundih | https://buymeacoffee.com/dkundih'
Expand Down

0 comments on commit b58ec75

Please sign in to comment.