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

Tuturial read me #1

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Temporary Items
# folder form Pycharm
.idea/
env
venv

.coverage

Expand Down
1 change: 1 addition & 0 deletions Mocked_3d_model.json

Large diffs are not rendered by default.

433 changes: 433 additions & 0 deletions Mocked_data_results.xml

Large diffs are not rendered by default.

626 changes: 595 additions & 31 deletions README.md

Large diffs are not rendered by default.

Binary file removed README_image.jpg
Binary file not shown.
Binary file added Read_me_files/Animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Read_me_files/Connection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Read_me_files/Credentials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Read_me_files/Credentials_popup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 25 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@

from viktor import ViktorController
from viktor.parametrization import ViktorParametrization, NumberField
from viktor.views import GeometryAndDataView, GeometryAndDataResult, DataItem, DataGroup
from viktor.views import GeometryAndDataView
from viktor.views import GeometryAndDataResult
from viktor.views import DataItem
from viktor.views import DataGroup
from viktor.views import GeometryResult
from viktor.views import DataResult
from viktor.views import DataView
from viktor.views import GeometryView
from viktor.external.generic import GenericAnalysis
from viktor.external.dynamo import DynamoFile, convert_geometry_to_glb, get_dynamo_result
from viktor.external.dynamo import DynamoFile
from viktor.external.dynamo import get_dynamo_result
from viktor.external.dynamo import convert_geometry_to_glb
from viktor.core import File
from pathlib import Path

Expand Down Expand Up @@ -98,3 +107,17 @@ def convert_dynamo_file_to_data_items(input_file: DynamoFile, output_file: File)
DataItem(label="CO₂ emission", value=round(float(co2), 2), suffix="ton CO₂"),
)
return data_group














Loading