Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from ocni-dtu/chrk/6_ilcd_test_cases
Browse files Browse the repository at this point in the history
Chrk/6 ilcd test cases
  • Loading branch information
ocni-dtu authored Feb 5, 2024
2 parents 39db22f + 4d40dd1 commit d5a274e
Show file tree
Hide file tree
Showing 16 changed files with 23,897 additions and 164 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ jobs:
uses: ./.github/workflows/release_docs.yaml

publishPython:
if: (github.event_name != 'pull_request') && ${{ needs.createRelease.outputs.version != '' }}
if: github.event_name != 'pull_request' && ${{ needs.createRelease.outputs.version != '' }}
uses: ./.github/workflows/publish_python.yaml
needs:
- createRelease
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}

publishJavascript:
if: (github.event_name != 'pull_request') && ${{ needs.createRelease.outputs.version != '' }}
if: github.event_name != 'pull_request' && ${{ needs.createRelease.outputs.version != '' }}
uses: ./.github/workflows/publish_javascript.yaml
needs:
- createRelease
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/release_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ on:
workflow_call:

jobs:
deployDocs:
buildDocs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -41,9 +38,6 @@ jobs:
name: changelog
path: docs/

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -64,8 +58,24 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
name: 'docs'
path: './site'

deployDocs:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: 'docs'

- name: Deploy to GitHub Pages
if: github.event_name != 'pull_request'
id: deployment
Expand Down
26 changes: 26 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ schemars = { version = "0.8.16", features = ["chrono"] }
serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.111"
pyo3 = { version = "0.20.2", features = ["abi3-py310"], optional = true }
pkg-version = "1.0.0"

# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
Expand Down
320 changes: 178 additions & 142 deletions src/epd.rs

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions src/ilcd.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#[allow(dead_code)]
use serde::{Deserialize};
use serde::Serialize;


#[derive(Deserialize)]
Expand All @@ -24,7 +25,7 @@ pub struct Exchanges {
#[serde(rename_all = "camelCase")]
pub struct Exchange {
pub reference_to_flow_data_set: ReferenceToDescription,
pub mean_amount: f64,
pub mean_amount: Option<f64>,
pub resulting_amount: Option<f64>,
#[serde(alias = "dataSetInternalID")]
pub data_set_internal_id: Option<u32>,
Expand Down Expand Up @@ -52,13 +53,13 @@ pub struct FlowProperty {
pub unit_group_uuid: Option<String>
}

#[derive(Deserialize)]
#[derive(Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct MaterialProperty {
pub name: String,
pub value: String,
pub unit: String,
pub unit_description: String,
pub unit_description: Option<String>,
}

#[derive(Deserialize)]
Expand Down Expand Up @@ -87,7 +88,7 @@ pub struct ReferenceToDescription {
pub short_description: Vec<ValueLang>,
pub _type: String,
pub ref_object_id: String,
pub version: String
pub version: Option<String>
}


Expand Down
Loading

0 comments on commit d5a274e

Please sign in to comment.