diff --git a/src/plotid/create_id.py b/src/plotid/create_id.py index fa7febcde918750391e4c6c1c38ad61fe99047e1..450e2dae6c2608a210849d5120c692986c3a7da4 100644 --- a/src/plotid/create_id.py +++ b/src/plotid/create_id.py @@ -3,7 +3,7 @@ Create an identifier to print it on a plot. Functions: - create_id(int) -> string + create_id(str) -> string """ import time import uuid diff --git a/src/plotid/example.py b/src/plotid/example.py index fcf7713916dc9ffc92ff7b9508f8b2d8778dcb7a..5187d2b76f5ec6a546d1ff2bf6237f28b9482f58 100644 --- a/src/plotid/example.py +++ b/src/plotid/example.py @@ -11,8 +11,8 @@ the function publish. import numpy as np # import h5py as h5 import matplotlib.pyplot as plt -from plotid.tagplot import tagplot -from plotid.publish import publish +from src.plotid.tagplot import tagplot +from src.plotid.publish import publish # %% Set Project ID PROJECT_ID = "MR04_" diff --git a/src/plotid/publish.py b/src/plotid/publish.py index 41b4ae149f20c9a53f6dc73206b657b0ff1fa160..f7a59e40083e6fd048e4d02bce36af8d14f21546 100644 --- a/src/plotid/publish.py +++ b/src/plotid/publish.py @@ -15,7 +15,7 @@ import os import shutil import sys import warnings -import plotid.save_plot as save_plot +from src.plotid.save_plot import save_plot def publish(src_datapath, dst_path, figure, plot_name, data_storage): diff --git a/src/plotid/tagplot.py b/src/plotid/tagplot.py index 695d2b143d12ba3c47eafc592d836806d3559d22..429a1e7fe57409204ca603898ff0f139e0315093 100644 --- a/src/plotid/tagplot.py +++ b/src/plotid/tagplot.py @@ -11,8 +11,8 @@ Functions: """ import warnings -from plotid.plotoptions import PlotOptions -from plotid.tagplot_matplotlib import tagplot_matplotlib +from src.plotid.plotoptions import PlotOptions +from src.plotid.tagplot_matplotlib import tagplot_matplotlib def tagplot(figs, engine, prefix='', id_method='time', location='east'): diff --git a/src/plotid/tagplot_matplotlib.py b/src/plotid/tagplot_matplotlib.py index b67acfcf8bfb8205a107ae94f36138f7825009fe..1b1ba9adc97ae2fc4d3eb314dbce009cae2ba673 100644 --- a/src/plotid/tagplot_matplotlib.py +++ b/src/plotid/tagplot_matplotlib.py @@ -8,8 +8,8 @@ Functions: import matplotlib import matplotlib.pyplot as plt -import plotid.create_id as create_id -from plotid.plotoptions import PlotOptions +import src.plotid.create_id as create_id +from src.plotid.plotoptions import PlotOptions def tagplot_matplotlib(plotid_object): diff --git a/tests/test_tagplot_matplotlib.py b/tests/test_tagplot_matplotlib.py index 4a6abf265ff2c5fc6f62e23c0e7a61e6db5a00e8..78e3d14425efd28680ef4068cc2e4a7f9e82db88 100644 --- a/tests/test_tagplot_matplotlib.py +++ b/tests/test_tagplot_matplotlib.py @@ -7,8 +7,8 @@ Unittests for TagPlot_matplotlib import unittest import matplotlib.pyplot as plt from matplotlib.figure import Figure -from tagplot_matplotlib import tagplot_matplotlib -from plotoptions import PlotOptions +from src.plotid.tagplot_matplotlib import tagplot_matplotlib +from src.plotid.plotoptions import PlotOptions FIG1 = plt.figure()