randomclassifier 0.1.1__tar.gz → 0.1.2__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.
Potentially problematic release.
This version of randomclassifier might be problematic. Click here for more details.
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/PKG-INFO +1 -1
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/pyproject.toml +1 -1
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/dl_lab/__init__.py +1 -1
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier/__init__.py +4 -6
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/PKG-INFO +1 -1
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/README.md +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/setup.cfg +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/dl_lab/data.py +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/dl_lab/programs.py +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier/programs.py +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/SOURCES.txt +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/dependency_links.txt +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/requires.txt +0 -0
- {randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/top_level.txt +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
from dl_lab.programs import PROGRAM_TITLES, show_program
|
|
2
2
|
|
|
3
|
-
__version__ = "0.1.
|
|
3
|
+
__version__ = "0.1.2"
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
def models():
|
|
7
7
|
"""List all available programs with their numbers and titles."""
|
|
8
8
|
for number, title in PROGRAM_TITLES.items():
|
|
9
9
|
print(f"{number}. {title}")
|
|
10
|
-
return PROGRAM_TITLES.copy()
|
|
11
10
|
|
|
12
11
|
|
|
13
|
-
def model(number: int | None = None)
|
|
14
|
-
"""Print
|
|
12
|
+
def model(number: int | None = None):
|
|
13
|
+
"""Print the exact source code for the requested program number (1-8)."""
|
|
15
14
|
if number is None:
|
|
16
15
|
models()
|
|
17
16
|
try:
|
|
@@ -19,10 +18,9 @@ def model(number: int | None = None) -> str:
|
|
|
19
18
|
number = int(val)
|
|
20
19
|
except (ValueError, EOFError):
|
|
21
20
|
print("Please provide a valid number between 1 and 8.")
|
|
22
|
-
return
|
|
21
|
+
return
|
|
23
22
|
source = show_program(number)
|
|
24
23
|
print(source)
|
|
25
|
-
return source
|
|
26
24
|
|
|
27
25
|
|
|
28
26
|
__all__ = ["models", "model"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/requires.txt
RENAMED
|
File without changes
|
{randomclassifier-0.1.1 → randomclassifier-0.1.2}/src/randomclassifier.egg-info/top_level.txt
RENAMED
|
File without changes
|