There are a few minor issues with the main file __main__.py and the class Main:
In __main__.py, the CLI entry point functions contain very few lines of code using certain classes (or functions). However, unlike other classes, the Main class used for the CLI command run is not imported from another module, but defined in the module __main__.py itself. We should consider moving it to a separate module in order to be consistent and keep the entry point logic separate from the execution logic.
If modalities is used as a package, the Main class has to be imported by from modalities.__main__ import Main. We should enable from modalities import Main.
The class Main should perhaps be renamed to something more meaningful.
There are a few minor issues with the main file
__main__.py
and the classMain
:__main__.py
, the CLI entry point functions contain very few lines of code using certain classes (or functions). However, unlike other classes, theMain
class used for the CLI commandrun
is not imported from another module, but defined in the module__main__.py
itself. We should consider moving it to a separate module in order to be consistent and keep the entry point logic separate from the execution logic.Main
class has to be imported byfrom modalities.__main__ import Main
. We should enablefrom modalities import Main
.Main
should perhaps be renamed to something more meaningful.