mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 02:35:22 +08:00
Take scene finding messages out of constants
This commit is contained in:
@ -70,19 +70,6 @@ OBLIQUE = 'OBLIQUE'
|
|||||||
BOLD = 'BOLD'
|
BOLD = 'BOLD'
|
||||||
|
|
||||||
|
|
||||||
SCENE_NOT_FOUND_MESSAGE = """
|
|
||||||
{} is not in the script
|
|
||||||
"""
|
|
||||||
CHOOSE_NUMBER_MESSAGE = """
|
|
||||||
Choose number corresponding to desired scene/arguments.
|
|
||||||
(Use comma separated list for multiple entries)
|
|
||||||
Choice(s): """
|
|
||||||
INVALID_NUMBER_MESSAGE = "Fine then, if you don't want to give a valid number I'll just quit"
|
|
||||||
|
|
||||||
NO_SCENE_MESSAGE = """
|
|
||||||
There are no scenes inside that module
|
|
||||||
"""
|
|
||||||
|
|
||||||
LOW_QUALITY_CAMERA_CONFIG = {
|
LOW_QUALITY_CAMERA_CONFIG = {
|
||||||
"pixel_height": 480,
|
"pixel_height": 480,
|
||||||
"pixel_width": 854,
|
"pixel_width": 854,
|
||||||
|
@ -4,7 +4,6 @@ import logging
|
|||||||
|
|
||||||
from manimlib.scene.scene import Scene
|
from manimlib.scene.scene import Scene
|
||||||
from manimlib.config import get_custom_defaults
|
from manimlib.config import get_custom_defaults
|
||||||
import manimlib.constants
|
|
||||||
|
|
||||||
|
|
||||||
class BlankScene(Scene):
|
class BlankScene(Scene):
|
||||||
@ -79,9 +78,7 @@ def get_scenes_to_render(scene_classes, scene_config, config):
|
|||||||
if not found and (scene_name != ""):
|
if not found and (scene_name != ""):
|
||||||
logging.log(
|
logging.log(
|
||||||
logging.ERROR,
|
logging.ERROR,
|
||||||
manimlib.constants.SCENE_NOT_FOUND_MESSAGE.format(
|
f"No scene named {scene_name} found",
|
||||||
scene_name
|
|
||||||
),
|
|
||||||
file=sys.stderr
|
file=sys.stderr
|
||||||
)
|
)
|
||||||
if result:
|
if result:
|
||||||
|
Reference in New Issue
Block a user