Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plot Serializer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RDM Tools
Plot Serializer
Commits
851098af
Commit
851098af
authored
1 month ago
by
Julius
Browse files
Options
Downloads
Patches
Plain Diff
revert
parent
850bfaf4
No related branches found
No related tags found
1 merge request
!44
Resolve "Add doc for when to call via serializer, when to call plt"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plot_serializer/serializer.py
+1
-3
1 addition, 3 deletions
plot_serializer/serializer.py
with
1 addition
and
3 deletions
plot_serializer/serializer.py
+
1
−
3
View file @
851098af
...
...
@@ -418,9 +418,7 @@ class Serializer:
if
self
.
_written_to_file
:
raise
NotImplementedError
(
"
You can only write the figure into the JSON once! Multiple tries were attempted
"
)
if
isinstance
(
file
,
str
):
directory
=
os
.
path
.
dirname
(
file
)
if
directory
:
os
.
makedirs
(
directory
,
exist_ok
=
True
)
os
.
makedirs
(
os
.
path
.
dirname
(
file
),
exist_ok
=
True
)
with
open
(
file
,
"
w
"
)
as
file
:
self
.
write_json_file
(
file
)
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment