Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/platform v2.2.0 #43

Draft
wants to merge 64 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
7db4eb3
Added function calls to the ktype service
Sep 16, 2024
5b139c0
Added backend check for existing ktypes
Sep 18, 2024
87b27b5
Merge branch 'main' of github.com:MI-FraunhoferIWM/dsms-python-sdk in…
Sep 18, 2024
ed618b5
Added additional methods to support ktype functionalities
Sep 20, 2024
d8d2e67
Example for ktype usage has been added.
Sep 24, 2024
c96381e
Fixed pylint errors
Sep 24, 2024
3d0f850
Fixed pylint errors
Sep 25, 2024
6bd9835
Delete testktype.py
arjungkk Sep 26, 2024
997549d
update ktype retrieval
MBueschelberger Sep 27, 2024
46daa6e
udpate pytests
MBueschelberger Sep 27, 2024
c70ba76
minorly refactor ktype enum for direct retrieval of ktype model
MBueschelberger Oct 1, 2024
5ade860
update ktype validation
MBueschelberger Oct 1, 2024
4284256
update setup.cfg and bring back underscore for private variable
MBueschelberger Oct 2, 2024
9c0b6c4
remove unneeded utils
MBueschelberger Oct 2, 2024
6dc696f
update jupyter notebook for docs
MBueschelberger Oct 2, 2024
a70ad66
update jupyter notebook for docs
MBueschelberger Oct 2, 2024
db4509b
remove unneeded private property assignment
MBueschelberger Oct 2, 2024
ffdac4a
update ktype validator
MBueschelberger Oct 2, 2024
a0e1e69
update jupyter notebooks for docs
MBueschelberger Oct 2, 2024
cffaeb3
bring accidentally deleted ktype.setter
MBueschelberger Oct 2, 2024
23c819f
Merge pull request #37 from MI-FraunhoferIWM/review/ktype-integration
arjungkk Oct 7, 2024
901dc73
Mapped webform to pydantic model
Oct 21, 2024
2b81fae
Delete test.py
arjungkk Oct 24, 2024
2af08a7
Added alias generator to webform inputs
Oct 24, 2024
97ef7e2
Merge branch 'dev/ktype-integration' of github.com:MI-FraunhoferIWM/d…
Oct 24, 2024
d2b4c5f
Updated README and removed duplicate files
Oct 24, 2024
a3b7c2e
Added pylint fixes
Oct 24, 2024
aac1be4
adapt sdk to new platform backend
MBueschelberger Nov 21, 2024
aa4f3e6
Bump version v2.0.4 -> v2.1.0dev0
MBueschelberger Nov 21, 2024
7f4bff9
make upper restriction for pydantic
MBueschelberger Nov 21, 2024
761c3e3
set max length of string-field names
MBueschelberger Nov 27, 2024
8796d2e
bump dev version tag
MBueschelberger Nov 27, 2024
02ab43e
Support for webform changes
Dec 2, 2024
aab928f
Support for webform
Dec 2, 2024
e5b3396
Merge pull request #41 from MI-FraunhoferIWM/dev/webform-support
arjungkk Dec 2, 2024
6efc6e5
add schema transformation function
MBueschelberger Dec 2, 2024
1977ed9
bump dev version
MBueschelberger Dec 2, 2024
63d7be2
make temporary compatibility with old webform model
MBueschelberger Dec 9, 2024
0d06906
temporary fix for custom properties
MBueschelberger Dec 10, 2024
79a7f0d
set upper limit for pydantic
MBueschelberger Dec 10, 2024
b61f472
merge from dev/ktype-integration
MBueschelberger Dec 12, 2024
d6c23b9
update custom properties model
MBueschelberger Dec 12, 2024
c06d45d
update webform kitem assignment and validation
MBueschelberger Dec 13, 2024
ddf2458
fix printing of values
MBueschelberger Dec 16, 2024
78c534b
debug custom properties and dataframe
MBueschelberger Dec 16, 2024
e9f3f58
update config
MBueschelberger Dec 16, 2024
1f60b4d
debug buffer context
MBueschelberger Dec 17, 2024
00999e4
bump dev version
MBueschelberger Dec 17, 2024
3893290
fix minor problems
MBueschelberger Dec 17, 2024
ae25109
remove 'NumericalDatatype', debug unit converion
MBueschelberger Dec 18, 2024
69ba134
bump dev version
MBueschelberger Dec 18, 2024
9738986
debug type check in entry
MBueschelberger Dec 18, 2024
75ff828
bump version
MBueschelberger Dec 18, 2024
0a40c39
debug serialization
MBueschelberger Dec 18, 2024
3cc313a
update webform and custom properties aliases
MBueschelberger Dec 18, 2024
a666346
bump version
MBueschelberger Dec 18, 2024
c2170f6
remove unneeded union
MBueschelberger Dec 18, 2024
7e83491
move function to sectionize metadata to sdk
MBueschelberger Dec 19, 2024
8871d71
bump version
MBueschelberger Dec 19, 2024
5eaf2aa
add pagination for kitem list and search
MBueschelberger Jan 8, 2025
a1db259
support pagination
MBueschelberger Jan 9, 2025
1f76b49
fix pylint
MBueschelberger Jan 9, 2025
02533c1
make relation iri optional
MBueschelberger Jan 9, 2025
8ca1ab8
do validation of kitems in the custom property fields of type kitem
MBueschelberger Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,6 @@ cython_debug/

.vscode/
examples/basic_usage.ipynb

#Test files
test.py
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ disable= no-name-in-module,
too-many-public-methods,
too-many-locals,
no-value-for-parameter,
too-many-branches,
too-many-lines,
too-many-statements,



Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ Please have a look at our tutorials on _readthedocs_:
* [6. Apps](https://dsms-python-sdk.readthedocs.io/en/latest/dsms_sdk/tutorials/6_apps.html)

Or try our Jupyter Notebooks:
* [1. Introduction](examples/tutorials/1_introduction.ipynb)
* [2. Creation](examples/tutorials/2_creation.ipynb)
* [3. Updation](examples/tutorials/3_updation.ipynb)
* [4. Deletion](examples/tutorials/4_deletion.ipynb)
* [5. Search](examples/tutorials/5_search.ipynb)
* [6. Apps](examples/tutorials/6_apps.ipynb)
* [1. Introduction](docs/dsms_sdk/tutorials/1_introduction.ipynb)
* [2. Creation](docs/dsms_sdk/tutorials/2_creation.ipynb)
* [3. Updation](docs/dsms_sdk/tutorials/3_updation.ipynb)
* [4. Deletion](docs/dsms_sdk/tutorials/4_deletion.ipynb)
* [5. Search](docs/dsms_sdk/tutorials/5_search.ipynb)
* [6. Apps](docs/dsms_sdk/tutorials/6_apps.ipynb)
* [7. KTypes](docs/dsms_sdk/tutorials/7_ktypes.ipynb)

## Authors

Expand All @@ -65,6 +66,8 @@ Or try our Jupyter Notebooks:

[Priyabrat Mishra](mailto:[email protected]) (Fraunhofer Institute for Mechanics of Materials IWM)

[Arjun Gopalakrishnan](mailto:[email protected]) (Fraunhofer Institute for Mechanics of Materials IWM)

## License

This project is licensed under the BSD 3-Clause. See the LICENSE file for more information.
Expand Down
110 changes: 94 additions & 16 deletions docs/dsms_sdk/tutorials/1_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"from dsms import DSMS, KItem"
"from dsms import DSMS"
]
},
{
Expand All @@ -37,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -60,7 +60,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand All @@ -69,7 +69,7 @@
"[]"
]
},
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -98,16 +98,94 @@
"name": "stdout",
"output_type": "stream",
"text": [
"KTypes.Organization\n",
"KTypes.App\n",
"KTypes.Dataset\n",
"KTypes.DatasetCatalog\n",
"KTypes.Expert\n",
"KTypes.Test\n",
"KTypes.Specimen\n",
"KTypes.Batch\n",
"KTypes.Resource\n",
"KTypes.TestingMachine\n"
"Organization(\n",
"\tid=organization,\n",
"\tname=None,\n",
"\twebform=None,\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-05-06T13:01:42.756035,\n",
"\tupdated_at=2024-05-06T13:01:42.756035\n",
")\n",
"App(\n",
"\tid=app,\n",
"\tname=None,\n",
"\twebform=None,\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-05-06T13:01:42.756035,\n",
"\tupdated_at=2024-05-06T13:01:42.756035\n",
")\n",
"Dataset(\n",
"\tid=dataset,\n",
"\tname=dataset,\n",
"\twebform=None,\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-05-06T13:01:42.756035,\n",
"\tupdated_at=2024-05-06T13:01:42.756035\n",
")\n",
"DatasetCatalog(\n",
"\tid=dataset-catalog,\n",
"\tname=dataset catalog,\n",
"\twebform=None,\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-05-06T13:01:42.756035,\n",
"\tupdated_at=2024-05-06T13:01:42.756035\n",
")\n",
"Expert(\n",
"\tid=expert,\n",
"\tname=expert,\n",
"\twebform={\n",
"\t\tname=dict(annotation=Union[str, NoneType] required=False default=None),\n",
"\t\tskills=dict(annotation=Union[str, NoneType] required=False default=None)\n",
"\t},\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-05-06T13:01:42.756035,\n",
"\tupdated_at=2024-05-06T17:09:46.125058\n",
")\n",
"Test(\n",
"\tid=test,\n",
"\tname=test,\n",
"\twebform=None,\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-05-14T07:45:38.051796,\n",
"\tupdated_at=2024-05-14T07:45:38.051796\n",
")\n",
"Specimen(\n",
"\tid=specimen,\n",
"\tname=Specimen,\n",
"\twebform={\n",
"\t\tsampletype=dict(annotation=Union[str, NoneType] required=False default=None),\n",
"\t\tsampleinformation=dict(annotation=Union[str, NoneType] required=False default=None),\n",
"\t\tsampleproductionprocess=dict(annotation=Union[str, NoneType] required=False default=None)\n",
"\t},\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-05-22T07:19:24.079365,\n",
"\tupdated_at=2024-05-22T07:20:08.774884\n",
")\n",
"Resource(\n",
"\tid=resource,\n",
"\tname=Resource,\n",
"\twebform=None,\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-06-10T10:17:31.071959,\n",
"\tupdated_at=2024-06-10T10:17:40.156104\n",
")\n",
"TestingMachine(\n",
"\tid=testing-machine,\n",
"\tname=Testing Machine,\n",
"\twebform=None,\n",
"\tjson_schema=None,\n",
"\trdf_mapping=None,\n",
"\tcreated_at=2024-08-19T17:13:57.534570,\n",
"\tupdated_at=2024-08-19T18:11:40.465640\n",
")\n"
]
}
],
Expand All @@ -133,7 +211,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.12.2"
}
},
"nbformat": 4,
Expand Down
Loading
Loading