detquantlib 3.8.0__tar.gz → 3.8.1__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.
Files changed (21) hide show
  1. {detquantlib-3.8.0 → detquantlib-3.8.1}/PKG-INFO +1 -1
  2. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/figures/plotly_figures.py +12 -11
  3. {detquantlib-3.8.0 → detquantlib-3.8.1}/pyproject.toml +1 -1
  4. {detquantlib-3.8.0 → detquantlib-3.8.1}/LICENSE.txt +0 -0
  5. {detquantlib-3.8.0 → detquantlib-3.8.1}/README.md +0 -0
  6. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/__init__.py +0 -0
  7. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/data/__init__.py +0 -0
  8. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/data/databases/detdatabase.py +0 -0
  9. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/data/entsoe/entsoe.py +0 -0
  10. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/data/sftp/sftp.py +0 -0
  11. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/dates/__init__.py +0 -0
  12. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/dates/dates.py +0 -0
  13. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/figures/__init__.py +0 -0
  14. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/outputs/__init__.py +0 -0
  15. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/outputs/outputs_interface.py +0 -0
  16. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/stats/__init__.py +0 -0
  17. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/stats/data_analysis.py +0 -0
  18. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/tradable_products/__init__.py +0 -0
  19. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/tradable_products/tradable_products.py +0 -0
  20. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/utils/__init__.py +0 -0
  21. {detquantlib-3.8.0 → detquantlib-3.8.1}/detquantlib/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: detquantlib
3
- Version: 3.8.0
3
+ Version: 3.8.1
4
4
  Summary: An internal library containing functions and classes that can be used across Quant models.
5
5
  License-File: LICENSE.txt
6
6
  Author: DET
@@ -30,10 +30,7 @@ def set_standard_layout(fig: go.Figure) -> go.Figure:
30
30
 
31
31
 
32
32
  def save_plotly_fig_to_json(
33
- fig: go.Figure,
34
- filename: str,
35
- folder_dir: Path = PathDefinitions.get_outputs_plotly_folder_dir(),
36
- standard_layout: bool = True,
33
+ fig: go.Figure, filename: str, folder_dir: Path = None, standard_layout: bool = True
37
34
  ):
38
35
  """
39
36
  Saves a plotly figure object to a json file.
@@ -44,6 +41,9 @@ def save_plotly_fig_to_json(
44
41
  folder_dir: Folder directory where the json file will be saved
45
42
  standard_layout: If true, enforces a standard plotly layout
46
43
  """
44
+ if folder_dir is None:
45
+ PathDefinitions.get_outputs_plotly_folder_dir()
46
+
47
47
  # Create plotly folder if it doesn't exist yet
48
48
  folder_dir.mkdir(parents=True, exist_ok=True)
49
49
 
@@ -61,10 +61,7 @@ def save_plotly_fig_to_json(
61
61
 
62
62
 
63
63
  def save_plotly_fig_to_html(
64
- fig: go.Figure,
65
- filename: str,
66
- folder_dir: Path = PathDefinitions.get_outputs_plotly_folder_dir(),
67
- standard_layout: bool = True,
64
+ fig: go.Figure, filename: str, folder_dir: Path = None, standard_layout: bool = True
68
65
  ):
69
66
  """
70
67
  Saves a plotly figure object to an html file.
@@ -75,6 +72,9 @@ def save_plotly_fig_to_html(
75
72
  folder_dir: Folder directory where the html file will be saved
76
73
  standard_layout: If true, enforces a standard plotly layout
77
74
  """
75
+ if folder_dir is None:
76
+ folder_dir = PathDefinitions.get_outputs_plotly_folder_dir()
77
+
78
78
  # Create plotly folder if it doesn't exist yet
79
79
  folder_dir.mkdir(parents=True, exist_ok=True)
80
80
 
@@ -89,9 +89,7 @@ def save_plotly_fig_to_html(
89
89
  fig.write_html(file_dir)
90
90
 
91
91
 
92
- def show_plotly_fig_json(
93
- filename: str, folder_dir: Path = PathDefinitions.get_outputs_plotly_folder_dir()
94
- ):
92
+ def show_plotly_fig_json(filename: str, folder_dir: Path = None):
95
93
  """
96
94
  Short helper function to display a plotly figure stored in a json file.
97
95
 
@@ -99,6 +97,9 @@ def show_plotly_fig_json(
99
97
  filename: Name of json file containing the plotly figure
100
98
  folder_dir: Folder directory containing the json file
101
99
  """
100
+ if folder_dir is None:
101
+ PathDefinitions.get_outputs_plotly_folder_dir()
102
+
102
103
  # Get json file directory
103
104
  file_dir = folder_dir.joinpath(f"{filename}.json")
104
105
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "detquantlib"
3
- version = "3.8.0"
3
+ version = "3.8.1"
4
4
  description = "An internal library containing functions and classes that can be used across Quant models."
5
5
  authors = ["DET"]
6
6
  readme = "README.md"
File without changes
File without changes