Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pycomsdk
Project
Project
Details
Activity
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
com
pycomsdk
Commits
00e5f8f3
Commit
00e5f8f3
authored
Jul 09, 2020
by
Anton Pershin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed numerous bugs due to the introduction of transfer functions, selectors etc.
parent
dc6980a9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
comaux.py
comsdk/comaux.py
+5
-6
edge.py
comsdk/edge.py
+0
-0
graph.py
comsdk/graph.py
+0
-0
No files found.
comsdk/comaux.py
View file @
00e5f8f3
...
...
@@ -202,12 +202,6 @@ def create_file_mkdir(filepath):
os
.
makedirs
(
dirpath
)
return
open
(
filepath
,
'w'
)
def
get_templates_path
():
'''
Returns the absolute path to templates directory. It is useful when the module is imported from elsewhere.
'''
return
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)),
'templates'
)
def
merge_dicts
(
*
dict_args
):
'''
Given any number of dicts, shallow copy and merge into a new dict,
...
...
@@ -454,3 +448,8 @@ def load_from_json(cls: Type[JsonSerializable], path_to_jsons: str = 'jsons') ->
with
open
(
filename
,
'r'
)
as
f
:
obj_as_dict
=
json
.
load
(
f
)
return
cls
.
from_json
(
obj_as_dict
)
def
print_msg_if_allowed
(
msg
,
allow
=
False
):
if
allow
:
print
(
msg
)
comsdk/edge.py
View file @
00e5f8f3
This diff is collapsed.
Click to expand it.
comsdk/graph.py
View file @
00e5f8f3
This diff is collapsed.
Click to expand it.
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