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

Add function for updating IO types against each other in ARC #227

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

HLWeil
Copy link
Member

@HLWeil HLWeil commented Oct 6, 2023

closes #150

@HLWeil HLWeil changed the base branch from main to developer October 6, 2023 13:26
@@ -285,6 +285,40 @@ type ArcTable(name: string, headers: ResizeArray<CompositeHeader>, values: Syste
fun (table:ArcTable) ->
table.TryGetColumnByHeader(header)

member this.GetInputColumn() =
Copy link
Collaborator

Choose a reason for hiding this comment

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

use TryGetInputColumn here and add match case with descriptive error message

fun (table:ArcTable) ->
table.TryGetInputColumn()

member this.GetOutputColumn() =
Copy link
Collaborator

Choose a reason for hiding this comment

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

use TryGetOutputColumn here and add match case with descriptive error message

/// E.g. RawDataFile is more specific than Source, but less specific than DerivedDataFile.
///
/// E.g. Sample is equally specific to RawDataFile.
member this.UpdateIO() =
Copy link
Collaborator

Choose a reason for hiding this comment

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

I expected you to do this update only on deprecated header formats (Without "Input"/"Output"). Should this function not only exist on the read-in functions?

I cannot find it, where do we handle deprecated headers again?

Copy link
Collaborator

Choose a reason for hiding this comment

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

And should the whole logic not be based on:

Output with same id as Input overwrites input IOType

Because this would resolve deprecation?

Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed and added some documentation. I would keep it here, as it can also be used to check up on erroneous, non-deprecated arcs. And also the functionality needs to be spanning across files, making it infeasible to keep only in ISA IO.

@HLWeil HLWeil merged commit 5fa2559 into developer Oct 6, 2023
2 checks passed
@HLWeil HLWeil deleted the developer_updateIO branch October 6, 2023 14:38
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.

[Feature Request] ARCTables: Update input and output types against each other
2 participants