diff --git a/audio.py b/transcoder/audio.py similarity index 100% rename from audio.py rename to transcoder/audio.py diff --git a/edit_distance.py b/transcoder/edit_distance.py similarity index 100% rename from edit_distance.py rename to transcoder/edit_distance.py diff --git a/main.py b/transcoder/main.py similarity index 97% rename from main.py rename to transcoder/main.py index 5e10bcb..1856c45 100644 --- a/main.py +++ b/transcoder/main.py @@ -2,8 +2,7 @@ import argparse -import movie - +from transcoder import movie parser = argparse.ArgumentParser( description='Transcode videos to ][Vision format.') diff --git a/movie.py b/transcoder/movie.py similarity index 97% rename from movie.py rename to transcoder/movie.py index a9aee81..29892e1 100644 --- a/movie.py +++ b/transcoder/movie.py @@ -2,9 +2,7 @@ from typing import Iterable, Iterator -import audio -import opcodes -import video +from transcoder import video, opcodes, audio class Movie: diff --git a/opcodes.py b/transcoder/opcodes.py similarity index 99% rename from opcodes.py rename to transcoder/opcodes.py index ea5767b..d5a456e 100644 --- a/opcodes.py +++ b/transcoder/opcodes.py @@ -2,8 +2,7 @@ import enum import numpy as np from typing import Iterator, Tuple -import screen -import symbol_table +from transcoder import screen, symbol_table class CycleCounter: diff --git a/opcodes_test.py b/transcoder/opcodes_test.py similarity index 94% rename from opcodes_test.py rename to transcoder/opcodes_test.py index beb0199..795422e 100644 --- a/opcodes_test.py +++ b/transcoder/opcodes_test.py @@ -1,6 +1,6 @@ import unittest -import opcodes +from transcoder import opcodes class TestOpcodes(unittest.TestCase): diff --git a/screen.py b/transcoder/screen.py similarity index 100% rename from screen.py rename to transcoder/screen.py diff --git a/symbol_table.py b/transcoder/symbol_table.py similarity index 100% rename from symbol_table.py rename to transcoder/symbol_table.py diff --git a/symbol_table_test.py b/transcoder/symbol_table_test.py similarity index 96% rename from symbol_table_test.py rename to transcoder/symbol_table_test.py index 965b36c..64a924d 100644 --- a/symbol_table_test.py +++ b/transcoder/symbol_table_test.py @@ -1,7 +1,7 @@ import io import unittest -import symbol_table +from transcoder import symbol_table DEBUG_FILE = """ version major=2,minor=0 diff --git a/video.py b/transcoder/video.py similarity index 99% rename from video.py rename to transcoder/video.py index 6009910..3d961ab 100644 --- a/video.py +++ b/transcoder/video.py @@ -12,9 +12,7 @@ from PIL import Image import numpy as np import skvideo.io -import edit_distance -import opcodes -import screen +from transcoder import opcodes, screen, edit_distance class Video: diff --git a/video_test.py b/transcoder/video_test.py similarity index 99% rename from video_test.py rename to transcoder/video_test.py index a5f8d87..c6fe6d4 100644 --- a/video_test.py +++ b/transcoder/video_test.py @@ -1,10 +1,6 @@ import unittest -import numpy as np - -import opcodes -import screen -import video +from transcoder import video class TestHammingWeight(unittest.TestCase):