Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
image-compression
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
image-compression
Commits
e0758036
Commit
e0758036
authored
Jul 13, 2022
by
Bryce Hepner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added documentation
parent
36b27599
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
RunningInParallel.py
RunningInParallel.py
+5
-0
WorkingPyDemo.py
WorkingPyDemo.py
+1
-1
No files found.
RunningInParallel.py
View file @
e0758036
'''Note: This does not work.
I'm not too sure what happened, but I ran small tests and they seemed to be fine,
but on the big one in created an n-1 number of identical files plus an empty one.
Not sure what happened there.'''
from
ipyparallel
import
Client
from
WorkingPyDemo
import
*
from
time
import
time
...
...
WorkingPyDemo.py
View file @
e0758036
...
...
@@ -524,7 +524,7 @@ if __name__ == "__main__":
# list_dic = np.load("first_dic.npy", allow_pickle="TRUE")
bins
=
[
21
,
32
,
48
]
np
.
save
(
"first_dict.npy"
,
list_dic
)
for
i
in
range
(
0
,
3
):
for
i
in
range
(
len
(
images
)
):
image
,
new_error
,
diff
=
huffman
(
images
[
i
],
4
,
False
)
encoded_string
=
encoder
(
new_error
,
list_dic
,
diff
,
bins
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment