0.2.0
Bug Fixes¶
| Issue Ref | Summary | Description |
|---|---|---|
| 9 | Correct gatherUsageStats env variable |
onecode-start used wrong variable name to prevent sending stats. |
| [No ref] | kind is now a property of the InputElement and OutputElement |
kind would have potentially been overwritten while extracting element through onecode-extract. |
Enhancements¶
| Issue Ref | Summary | Description |
|---|---|---|
| 5 | Improving DeepLearning example | Allow initialization of NeuralNetInput custom element with different layer specs. |
| 10 | Allow for custom import and init statements in InputElement and OutputElement | Streamlit app.py generated through onecode-start now has placeholders for import and init statements. See imports() and init() static methods in InputElement and OutputElement. |
| [No ref] | Allow meta-data for elements | Meta-data can now be attached to any Input/Output element through **kwargs. |
| [No ref] | Namespace logging | Logger (info, warning, critical and debug) now uses a namespace |OneCode| rather than the root logging. |
New Features¶
| Issue Ref | Summary | Description |
|---|---|---|
| 1 | New input element FolderInput |
FolderInput allows folder selection. LASConverter example showcases it. |
| 2 | New output element PlotlyOutput |
PlotlyOutput allows to visualize Plotly charts. ExperimentalVariography example showcases it. |
| [No ref] | Setup Project configuration through environment variables | Allow additional way to setup Project configuration options from command line. |
Breaking changes¶
-
10 introduces a potential breaking change if you have custom
InputElementorOutputElementwhere thestreamlit()method relies on one of these statements being present inapp.py:If this is the case, simply inheritimport tkinter as tk from tkinter import filedialog import numpy as np from pyarrow import csv as pacsv _root = tk.Tk()import()and/orinit()static methods so that they return the relevant statements. SeeFileInput.imports()andFileInput.init()as examples. -
Custom
InputElementorOutputElementcan no longer initialized with an argument namedkind: it now is a reserved attribute. This change was triggered by a bug fix askindwas potentially overwritten when extracting element throughonecode-extract. Upgrade your custom element by changing your argument name.