Skip to content

Commit

Permalink
3.5.7 push
Browse files Browse the repository at this point in the history
  • Loading branch information
dkundih committed Dec 1, 2021
1 parent 3ec56f1 commit a11e294
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,7 @@ CHANGELOG

3.5.6 (01/12/2021)
- functionality resolved using pypyxl.
- duality.dualityCLI and python __main__.py now officially work.
- duality.dualityCLI and python __main__.py now officially work.

3.5.7 (01/12/2021)
- added block = False to plt.show() in order to unlock further actions after a graph in dualityCLI.
1 change: 1 addition & 0 deletions duality/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def dualityCLI():

#MonteCarlo client extension.
def MonteCarloCLI():
import matplotlib.pyplot as plt
from duality.objects import MonteCarlo
import pandas as pd
file = input('File path: ').replace("'", '"').strip('"')
Expand Down
2 changes: 1 addition & 1 deletion duality/misc/_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

]
__license__ = 'Copyright © 2021- 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 duality documentation linked at https://github.com/dkundih/duality and https://pypi.org/project/duality'
__version__ = '3.5.6'
__version__ = '3.5.7'
__documentation__ = 'https://github.com/dkundih/duality | https://pypi.org/project/duality'
__contact__ = '[email protected] | [email protected]'
__donate__ = 'https://patreon.com/dkundih | https://buymeacoffee.com/dkundih'
4 changes: 2 additions & 2 deletions duality/objects/montecarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def graph(self, graph_title = 'Monte Carlo simulation', x_title = 'X axis', y_ti
plt.axhline(y = self.results[0][0], color = 'k', linestyle = 'solid')
plt.xlabel(x_title, fontsize = 18, weight = 'semibold')
plt.ylabel(y_title, fontsize = 18, weight = 'semibold')
plt.show()
plt.show(block = False)
print('MonteCarlo() plotting finished.')

#DEVELOPER MODE - @classLog('get_stats()')
Expand Down Expand Up @@ -267,7 +267,7 @@ def hist(self, graph_title = 'Histogram of value frequencies', x_title = 'X axis
plt.hist(self.results, bins = self.time_seq , ec = 'm')
plt.xlabel(x_title, weight = 'semibold')
plt.ylabel(y_title, weight= 'semibold')
plt.show()
plt.show(block = False)
print('Histogram plotting finished.')

#DEVELOPER MODE - @classLog('get_logs()')
Expand Down

0 comments on commit a11e294

Please sign in to comment.