Skip to content

Conversation

@imMoya
Copy link

@imMoya imMoya commented Nov 24, 2025

Relevant issue or PR

Description of changes

Testing done

@PasteurBot
Copy link
Contributor

PasteurBot commented Nov 24, 2025

CLA signatures confirmed

All contributors have signed the Contributor License Agreement.
Posted by the CLA Assistant Lite bot.

@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.45%. Comparing base (4d9beb3) to head (6f20384).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #399      +/-   ##
==========================================
+ Coverage   76.42%   76.45%   +0.03%     
==========================================
  Files          29       29              
  Lines        3359     3364       +5     
  Branches      526      526              
==========================================
+ Hits         2567     2572       +5     
  Misses        558      558              
  Partials      234      234              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines 25 to 27
config: InputFileReference = Field(
description="Configuration file"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depedning on the number of variables here, id would be cleaner to write the parameters as a Pydantic model instead of passing a config file. But this is just fine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, just saw the config file. That seems like the right way to do it!


data: list[str | Path] = Field(
description="List of npz files containing point-cloud data, simulation parameters and/or QoIs"
) # TODO: Change input type to be list[InputFileReference] (as outputs are inside the qoi_dataset... How can we make this?)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think list[InputFileReference] should work

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Value error, Invalid input file reference: /Users/ignaciomoyaredondo/Documents/git/qoi/qoi_wf/qoi_dataset/outputs/dataset/0.npz. Expected path to be relative to /Users/ignaciomoyaredondo/Documents/git/qoi/qoi_wf/qoi_train/inputs, but got /Users/ignaciomoyaredondo/Documents/git/qoi/qoi_wf/qoi_dataset/outputs/dataset/0.npz. File references have to be relative to --input-path. [type=value_error, input_value='/Users/ignaciomoyaredond...t/outputs/dataset/0.npz', input_type=str]

My inputs live out of the train tesseract (they have been dumped in a folder inside the dataset tesseract)... Is there a way to link both? Should I create a copy inside the train tesseract?

class OutputSchema(BaseModel):

qoi : list[Array[(None, ), Float32]] = Field(
description="QoIs",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to make this a 2D array instead, as this schema is non differentiable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but this depends weather we want to have this option in the future, there would also be some changes required to the input schema.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it to Array 2D array.
Also dumping it to outputs folder

@imMoya
Copy link
Author

imMoya commented Nov 25, 2025

@PasteurBot I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants