Skip to content

Commit

Permalink
#3 replace "tools" with "kit"
Browse files Browse the repository at this point in the history
  • Loading branch information
jschalk committed Aug 29, 2023
1 parent 5711006 commit 3a6f416
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Edit5Issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ui.System5IssueUI import Ui_Form
from PyQt5 import QtWidgets as qtw
from PyQt5 import QtCore as qtc
from src.pyqt5_tools.pyqt_func import lw_diplay
from src.pyqt5_kit.pyqt_func import lw_diplay
from src.agent.agent import AgentUnit
from src.agent.group import groupunit_shop
from src.agent.member import memberlink_shop
Expand Down
2 changes: 1 addition & 1 deletion EditAgenda.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from PyQt5.QtCore import pyqtSignal as qsig
from PyQt5.QtWidgets import QWidget as qw
from PyQt5.QtWidgets import QTableWidgetItem as qti
from src.pyqt5_tools.pyqt_func import num2str, lw_diplay
from src.pyqt5_kit.pyqt_func import num2str, lw_diplay
from src.agent.hreg_time import (
SuffFactUnitHregTime,
_get_time_hreg_weekday_idea,
Expand Down
2 changes: 1 addition & 1 deletion EditIdeaUnit.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from src.agent.group import GroupLink, GroupName
from src.agent.required import Road
from src.agent.hreg_time import get_24hr, get_60min
from src.pyqt5_tools.pyqt_func import (
from src.pyqt5_kit.pyqt_func import (
num2str,
bool_val,
str2float,
Expand Down
2 changes: 1 addition & 1 deletion EditMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from PyQt5.QtWidgets import QTableWidgetItem as qtw1
from EditIdeaUnit import EditIdeaUnit
from EditMember import EditMember
from src.pyqt5_tools.pyqt_func import (
from src.pyqt5_kit.pyqt_func import (
lw_diplay,
get_pyqttree,
str2float as pyqt_func_str2float,
Expand Down
2 changes: 1 addition & 1 deletion EditMember.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from PyQt5 import QtWidgets as qtw
from PyQt5 import QtCore as qtc
from EditMember2bd import EditMember2bd
from src.pyqt5_tools.pyqt_func import lw_diplay
from src.pyqt5_kit.pyqt_func import lw_diplay
from src.agent.agent import AgentUnit
from src.agent.group import groupunit_shop
from src.agent.member import memberlink_shop
Expand Down
2 changes: 1 addition & 1 deletion EditProblem.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from PyQt5.QtWidgets import QTableWidgetItem as qti
from EditIdeaUnit import EditIdeaUnit
from EditMember import EditMember
from src.pyqt5_tools.pyqt_func import lw_diplay, get_pyqttree, num2str
from src.pyqt5_kit.pyqt_func import lw_diplay, get_pyqttree, num2str
from src.agent.group import groupunit_shop, grouplink_shop
from src.agent.idea import IdeaKid
from src.agent.road import Road, get_walk_from_road, get_terminus_node_from_road
Expand Down
2 changes: 1 addition & 1 deletion main_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from src.agent.agent import AgentUnit, get_from_json
from src.agent.examples.get_agent_examples_dir import get_agent_examples_dir
from src.agent.hreg_time import convert1440toHHMM
from src.pyqt5_tools.pyqt_func import (
from src.pyqt5_kit.pyqt_func import (
lw_diplay as pyqt_func_lw_diplay,
str2float as pyqt_func_str2float,
num2str as pyqt_func_num2str,
Expand Down
4 changes: 2 additions & 2 deletions main_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
QMainWindow,
)
from src.system.system import SystemUnit
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
create_example_systems_list,
setup_test_example_environment,
create_example_system,
Expand All @@ -24,7 +24,7 @@
open_file as x_func_open_file,
dir_files as x_func_dir_files,
)
from src.pyqt5_tools.pyqt_func import lw_diplay
from src.pyqt5_kit.pyqt_func import lw_diplay


class MainApp(QApplication):
Expand Down
2 changes: 1 addition & 1 deletion src/agent/test_/test_x_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
count_files as x_func_count_files,
return1ifnone as x_func_return1ifnone,
)
from src.system.examples.person_env_tools import (
from src.system.examples.person_env_kit import (
person_dir_setup_cleanup,
get_temp_person_dir,
create_agent_file_for_person,
Expand Down
2 changes: 1 addition & 1 deletion src/agent/test_agent/test_agent_bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
save_file as x_func_save_file,
open_file as x_func_open_file,
)
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
env_dir_setup_cleanup,
get_temp_env_dir,
)
Expand Down
4 changes: 1 addition & 3 deletions src/agent/test_agent/test_agent_time.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import contextlib
import itertools
from src.agent.agent import AgentUnit
from datetime import datetime
from random import randint
Expand Down Expand Up @@ -73,7 +71,7 @@ def test_get_time_dt_from_min_WorksCorrectly():
_check_time_conversion_works_with_random_inputs(g_lw)
_check_time_conversion_works_with_random_inputs(g_lw)

# for year, month, day, hr, min in itertools.product(
# for year, month, day, hr, min in .product(
# range(479, 480), range(1, 3), range(20, 28), range(12, 14), range(1430, 1440)
# ):
# # for day in range(1, 32):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/system/test_person/test_person_.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from src.agent.agent import AgentUnit
from src.agent.idea import IdeaRoot
import src.system.examples.example_persons as example_persons
from src.system.examples.person_env_tools import (
from src.system.examples.person_env_kit import (
person_dir_setup_cleanup,
get_temp_person_dir,
create_agent_file_for_person,
Expand Down
4 changes: 2 additions & 2 deletions src/system/test_person/test_person_agentlink.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from src.system.person import personunit_shop
import src.system.examples.example_persons as example_persons
from src.system.examples.person_env_tools import (
from src.system.examples.person_env_kit import (
person_dir_setup_cleanup,
get_temp_person_dir,
create_agent_file_for_person,
)
from src.system.examples.env_tools import get_temp_env_name
from src.system.examples.env_kit import get_temp_env_name
from src.system.system import SystemUnit
from os import path as os_path, scandir as os_scandir
from pytest import raises as pytest_raises
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_person/test_person_digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
get_agent_with_4_levels as example_agents_get_agent_with_4_levels,
)
import src.system.examples.example_persons as example_persons
from src.system.examples.person_env_tools import (
from src.system.examples.person_env_kit import (
person_dir_setup_cleanup,
get_temp_person_dir,
)
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_person/test_person_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
)
from src.agent.x_func import x_is_json, x_get_dict
from json import loads as json_loads
from src.system.examples.person_env_tools import (
from src.system.examples.person_env_kit import (
person_dir_setup_cleanup,
get_temp_person_dir,
)
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_bank_sqlstr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from src.system.system import SystemUnit
from src.agent.agent import AgentUnit
from src.agent.member import memberunit_shop
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_name,
get_test_systems_dir,
env_dir_setup_cleanup,
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_system_.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from src.system.system import SystemUnit
from src.agent.x_func import delete_dir as x_func_delete_dir
from os import path as os_path
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_name,
get_test_systems_dir,
rename_example_system,
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_system_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
)
import src.system.examples.example_persons as example_persons
from os import path as os_path
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_name,
get_test_systems_dir,
create_person_file_for_systems,
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_system_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from src.agent.member import memberlink_shop
from src.agent.x_func import delete_dir as x_func_delete_dir
from os import path as os_path
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_name,
get_test_systems_dir,
env_dir_setup_cleanup,
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_system_bank_river.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from src.system.system import SystemUnit
from src.agent.agent import AgentUnit
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_name,
get_test_systems_dir,
env_dir_setup_cleanup,
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_system_gen_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
_delete_and_set_ex3,
_delete_and_set_ex4,
_delete_and_set_ex5,
Expand Down
4 changes: 2 additions & 2 deletions src/system/test_system/test_system_person.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from src.system.system import SystemUnit
from src.system.person import personunit_shop
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_dir,
get_temp_env_name,
env_dir_setup_cleanup,
Expand Down Expand Up @@ -47,7 +47,7 @@ def test_system_load_personunit_RaisesErrorWhenPersonDoesNotExist(
)


def test_system_env_tools_create_person_file_for_systems_WorksCorrectly(
def test_system_env_kit_create_person_file_for_systems_WorksCorrectly(
env_dir_setup_cleanup,
):
# GIVEN
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_system_person_dest_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
get_6node_agent as example_persons_get_6node_agent,
)
from os import path as os_path
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_name,
get_test_systems_dir,
create_person_file_for_systems,
Expand Down
2 changes: 1 addition & 1 deletion src/system/test_system/test_system_person_task_received.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from src.system.system import SystemUnit
from src.system.person import personunit_shop
from src.system.examples.env_tools import (
from src.system.examples.env_kit import (
get_temp_env_dir,
get_temp_env_name,
env_dir_setup_cleanup,
Expand Down

0 comments on commit 3a6f416

Please sign in to comment.