Skip to content

Commit

Permalink
added a modification in the import statements to have relative paths …
Browse files Browse the repository at this point in the history
…for the package. This is likely going to be changed for the __main__ file to make it executable as package as well as normal python file
  • Loading branch information
ArJaVer committed Oct 14, 2024
1 parent ae8de6b commit c9e2af1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/evaluix/CreateEvaluixConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import inspect
import ast
import yaml
import EvaluationFunctions
from . import EvaluationFunctions
import pathlib

own_path = pathlib.Path(__file__).parent.absolute()
Expand Down
2 changes: 0 additions & 2 deletions src/evaluix/FileLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# optical MOKE hysteresis (data points and images); always apply normalization
# VSM hysteresis (only apply hysteresis if onw wishes to)

from PyQt6 import QtWidgets

# %%
"""
following functions are capable of reading in:
Expand Down
6 changes: 3 additions & 3 deletions src/evaluix/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def str_to_bool(s):
macros = yaml.safe_load(file)

# Selfmade modules. Some of these may need the config dictionary so it has to updated before importing/calling them
from CustomWidgets import (
from .CustomWidgets import (
InfoSettingsButton,
DragDropTableWidget,
ConsoleWidget,
Expand All @@ -85,9 +85,9 @@ def str_to_bool(s):
FitPointsTable,
FunctionViewer,
)
from FileLoader import read_file, Dataset, Data, deepcopy_with_unit
from .FileLoader import read_file, Dataset, Data, deepcopy_with_unit
data = Data()
from EvaluationFunctions import *
from .EvaluationFunctions import *

#TODO: Create just one update function for everything (table_metadata, table_datapkg, table_data, tabl
# e_loglist, canvas) and call it in the respective functions
Expand Down
2 changes: 1 addition & 1 deletion src/evaluix/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.1.18"
__version__ = "0.9.1.19"

0 comments on commit c9e2af1

Please sign in to comment.