model: Rename directory property to location
See original GitHub issueSupport Archive Storage for Models
The goal of this project is the modify Models and DataFlows to support saving
and loading from archives (such as .zip
and .tar
for example).
Currently all DFFML models have a directory
property, which is where they
store the contents of the model’s state. It does not currently hold a copy of
the model’s config.
We’ll want to modify the Model’s context entry and exit code to have it
pack/unpack it’s config and its saved state directory from/into the archive at
location
.
Skills
- Python
Difficulty
Beginner/Intermediate
Related Readings
Getting Started
- Read the contributing guidelines
- Go through the quickstart
- Go trough the model tutorials
- Go through the model plugins
- Start programming to understand better what will need to happen. The following
is a rough guide meant to give you some activities that will help you better
understand what needs to be done so you can write a more complete proposal.
- Rename the
directory
property tolocation
for all models. - On
__aenter__()
ofdffml.model.model.Model
, iflocation
has an extension, such as zip or tar, extract it to a temporary directory. - Write a method,
get_directory()
, which returns the location of the temporary directory property on theModel
class. - On
__aexit__()
, pack the model state directory into thelocation
, along with it’s config. - Understand where all the code for models are that will potentially need to
be changed (
dffml/model
andmodel/
) - Make this work with test cases for the SLR model.
- Rename the
Potential Mentors
Tracking and Discussion
This project is related to the following issues. Please discuss and ask questions in the issue comments. Please also ping mentors on Gitter when you post on the following issues so that they are sure to see that you’ve commented.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
How can I rename a project folder from within Visual Studio?
Open the properties window for the project (highlight the project and press Alt + Enter or F4 , or right-click > properties). Set...
Read more >Rename refactorings | IntelliJ IDEA Documentation - JetBrains
Use the Rename refactoring to change names of symbols, files, directories, packages, modules and all the references to them throughout code.
Read more >Rename profile in model - MATLAB renameProfile - MathWorks
This MATLAB function renames a profile on a model from oldProfileName to newProfileName to make it consistent if the name of the profile...
Read more >Safely rename a project folder Visual Studio - Medium
Click on the project name and press the “F4” key to open project properties. Now rename the file path as shown below. Step...
Read more >Rename-ADObject (ActiveDirectory) - Microsoft Learn
This parameter sets the Name property of the Active Directory object. The LDAP display name (ldapDisplayName) of this property is name. Type: String....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pdxjohnny I’ll work on #655 first and then come back to this!
Hey @ren276 !! This issue has been closed and is already implemented. Please pick any other open issue