From 5de6d8c1648a7fb8f5740a6b0fba8a8d891afade Mon Sep 17 00:00:00 2001 From: MGA041 Date: Wed, 28 Jun 2023 14:33:32 +0200 Subject: [PATCH 1/5] Added title to image in show_reference_image function --- opensd_project/visualize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opensd_project/visualize.py b/opensd_project/visualize.py index 15d0b0a..53b71ea 100644 --- a/opensd_project/visualize.py +++ b/opensd_project/visualize.py @@ -23,6 +23,7 @@ def show_reference_image(images, points=[], roi_size=None, bit_depth=12): if points: ax.scatter(np.array(points)[:, 1], np.array(points)[:, 0], marker='.', color='r') + ax.set_title('Show reference image') if roi_size is not None: for point in np.array(points): From b09b9d00760f2cdf9f9864e290fb32bb3b005eef Mon Sep 17 00:00:00 2001 From: MGA041 Date: Wed, 28 Jun 2023 14:44:25 +0200 Subject: [PATCH 2/5] removed previous change, added test comment --- opensd_project/visualize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensd_project/visualize.py b/opensd_project/visualize.py index 53b71ea..a7e3faa 100644 --- a/opensd_project/visualize.py +++ b/opensd_project/visualize.py @@ -18,12 +18,12 @@ def show_reference_image(images, points=[], roi_size=None, bit_depth=12): Returns: fig: Matplotlib figure. """ + # test comment fig, ax = plt.subplots() ax.imshow(images[0], cmap='gray', vmin=0, vmax=2**bit_depth) if points: ax.scatter(np.array(points)[:, 1], np.array(points)[:, 0], marker='.', color='r') - ax.set_title('Show reference image') if roi_size is not None: for point in np.array(points): From 2dca4a6a9382f30f99496ef80a3d80c74a22848c Mon Sep 17 00:00:00 2001 From: MGA041 Date: Wed, 28 Jun 2023 14:57:11 +0200 Subject: [PATCH 3/5] new comment added --- opensd_project/visualize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opensd_project/visualize.py b/opensd_project/visualize.py index a7e3faa..e8ae57d 100644 --- a/opensd_project/visualize.py +++ b/opensd_project/visualize.py @@ -51,6 +51,7 @@ def animate_video(images, fps=30, bit_depth=12): # display data for first image im = plt.imshow(images[0], cmap='gray', vmin=0, vmax=2**bit_depth, animated=True) + # added second comment def updatefig(i): im.set_array(images[i]) return im, From 38da3d7c1fa7257dfac12f8e0a758596a93f47cd Mon Sep 17 00:00:00 2001 From: MGA041 Date: Wed, 28 Jun 2023 16:32:16 +0200 Subject: [PATCH 4/5] modifications done --- docs/source/conf.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 0f38a15..eeb3d9e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -20,9 +20,9 @@ # -- Project information ----------------------------------------------------- -project = 'Image-EMA project' -copyright = '2019, Janko Slavič, Domen Gorjup, Klemen Zaletelj' -author = 'Janko Slavič, Domen Gorjup, Klemen Zaletelj' +project = 'OpenSDproject' +copyright = '2023, Marko Gantar' +author = 'Marko Gantar' # The short X.Y version version = '' @@ -133,8 +133,8 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'Image-EMAproject.tex', 'Image-EMA project Documentation', - 'Janko Slavič, Domen Gorjup, Klemen Zaletelj', 'manual'), + (master_doc, 'OpenSDproject.tex', 'OpenSDproject Documentation', + 'Marko Gantar', 'manual'), ] @@ -143,7 +143,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - (master_doc, 'image-emaproject', 'Image-EMA project Documentation', + (master_doc, 'OpenSDproject', 'OpenSDproject Documentation', [author], 1) ] @@ -154,8 +154,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'Image-EMAproject', 'Image-EMA project Documentation', - author, 'Image-EMAproject', 'One line description of project.', + (master_doc, 'OpenSDproject', 'OpenSDproject Documentation', + author, 'OpenSDproject', 'One line description of project.', 'Miscellaneous'), ] From b81282a76569cfa528b72678d5ebbe3fd67fbe05 Mon Sep 17 00:00:00 2001 From: MGA041 Date: Wed, 28 Jun 2023 16:33:11 +0200 Subject: [PATCH 5/5] modifications done 2 --- CONTRIBUTING.rst | 1 + README.rst | 1 + requirements.txt | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 CONTRIBUTING.rst create mode 100644 README.rst diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/CONTRIBUTING.rst @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..8318c86 --- /dev/null +++ b/README.rst @@ -0,0 +1 @@ +Test \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b7610ac..665fc82 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,7 @@ scipy>=1.0.0 tqdm>=4.10.0 imageio>=2.2.0 piexif>=1.0.13 -pyMRAW \ No newline at end of file +pyMRAW + +sphinx +sphinx/rtd/theme \ No newline at end of file