alcrene / smttask Goto Github PK
View Code? Open in Web Editor NEWMaintain an electronic lab book for computational research
Home Page: https://sumatratask.readthedocs.io
Maintain an electronic lab book for computational research
Home Page: https://sumatratask.readthedocs.io
Pydantic v2 has may improvements over v1.
In particular it should make #1 obsolete, since there are no json_encoders
in v2.
Most of the work for this actually needs to be done in scityping #2.
Although pickling simple minimal tasks sometimes works, this a) is untested and b) fails as soon as inputs or outputs involve dynamically created types (which are quite common in smttask). Thus we need
The main use case I see for supporting pickle is to allow parallelizing task execution with the multiprocessing module.
Relevant SO question: Pickling dynamically generated classes?
Although many users would install them anyway, they seem superfluous for this package.
A user of Pydantic would reasonably expect that if they use a Pydantic type as Task input, the json encoders for that type would be used to encode its attributes. At present this is not the case: since Task inputs are combined into one big Pydantic BaseModel, the global encoder dict defined in smttask.typing.json_encoders is always used. Beyond being unexpected, this has at least two drawbacks:
Relevant test is added here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.