-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move cycling metadata to subclass (#113)
- Loading branch information
Showing
9 changed files
with
89 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Describing cycling protocol""" | ||
from datetime import date | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class CyclingProtocol(BaseModel, extra='allow'): | ||
"""Test protocol for cell cycling""" | ||
cycler: Optional[str] = Field(None, description='Name of the cycling machine') | ||
start_date: Optional[date] = Field(None, description="Date the initial test on the cell began") | ||
set_temperature: Optional[float] = Field(None, description="Set temperature for the battery testing equipment. Units: C") | ||
schedule: Optional[str] = Field(None, description="Schedule file used for the cycling machine") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Error Checking (``battdat.consistency``) | ||
======================================== | ||
|
||
.. automodule:: battdat.consistency | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Base (``b.consistency.base``) | ||
----------------------------- | ||
|
||
.. automodule:: battdat.consistency.base | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Current (``b.consistency.current``) | ||
------------------------------------ | ||
|
||
.. automodule:: battdat.consistency.current | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters