Comments (4)
I would like to extend this proposal and state the goal that every object from frontend to backend have file i/o methods. Where possible, these should include yaml
readers/writers, but pickle
should be available everywhere. Additionally I would like to introduce a mode
attribute to the to_file
/from_file
methods to state whether the target/source file is in yaml/pickle or whatever other format we might introduce in the future. Dedicated methods for different file formats might still exist, but this way we have a single point of entry for saving and loading progress.
from pyrates.
commits 572f127 and fd9892b fix the current implementation of IR pickling and allow to pickle IR instances. In principle all kinds of IR instances are supported, but only CircuitIR is actively tested.
- Still need to test, whether backend stuff is supported.
- Also need to include yaml i/o into these functions
from pyrates.
It might be useful to implement dependent tests, where test 1 creates a network (with backend) and saves the result to file; and test 2 loads that from file and computes. That might cover some relevant use cases.
from pyrates.
I implemented yaml-based i/o methods that allow to save AbstractTemplate
instances to a yaml file such that it can be loaded back into Python via AbstractTemplate.from_yaml
again. Further I/O methods do not make much sense after the backend restructuring, in my opinion, since intermediate representation always have to be build on the fly during a new simulation/file generation call.
from pyrates.
Related Issues (20)
- Allow additional (modulating) source nodes in edges HOT 3
- Add variable setter method to CircuitIR HOT 1
- Found test problem caused by changes of working directory in backend HOT 4
- Removing parts of pyrates from sys.modules in the backend causes troubles in other parts of the pipeline HOT 3
- Improving user friendliness and stability of PyRates HOT 2
- Add possibility to CircuitTemplate.apply() method to change constants HOT 3
- Enable purely scalar network models by disabling vectorization HOT 2
- Implement logging
- Trouble reproducing Jansen-Rit model dynamics in current version HOT 8
- Unexpected behavior of a zero-weighted edge with delay HOT 6
- Inheriting from an operator more than once causes operator key errors HOT 1
- Remove unnecessary indexing operations and variable definitions from equation file HOT 1
- error running jansenrit.py (jrc.compile) on MacOS HOT 3
- issues when running the example codes HOT 2
- Continuous data generation HOT 3
- Rework delay-coupling implementations HOT 3
- is there an option to get an ouput of the non-state variable? HOT 2
- error while using delay DE HOT 4
- issue with time-varying edge variables when multiple nodes are used HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrates.