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 tests to check machine files #874

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Aug 15, 2022

No description provided.

@njzjz
Copy link
Member Author

njzjz commented Aug 15, 2022

@HuangJiameng, @hongriTianqi, @felix5572: I modified some of the machine files you just added to make the tests pass.

}
}
},
"resources": {
"local_root":"./",
"batch_type": "Lebesgue",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why delete "local_root", and add "batch_type"? Shouldn't "batch_type" be added in "machine" block?

Copy link
Member Author

@njzjz njzjz Aug 15, 2022

Choose a reason for hiding this comment

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

I don't see why you added local_root. It's never a parameter of resources.

Copy link
Member Author

Choose a reason for hiding this comment

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

batch_type is used for checking as different types have different parameters.

Copy link
Contributor

@hongriTianqi hongriTianqi Aug 16, 2022

Choose a reason for hiding this comment

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

I don't see why you added local_root. It's never a parameter of resources.

This machine.json file was obtained from dpgen users in AISI, local_root was set from the very beginning. I will check with them.

Copy link
Contributor

Choose a reason for hiding this comment

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

batch_type is used for checking as different types have different parameters.

batch_type has been set in the machine block, is it necessary to repeat this information in resources block?

Copy link
Member Author

Choose a reason for hiding this comment

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

@y1xiaoc do you think it is possible to use an argument in another block as the variant key?

Copy link
Contributor

Choose a reason for hiding this comment

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

@y1xiaoc do you think it is possible to use an argument in another block as the variant key?

In principle yes but I may need to redesign current dargs code structure. Are these two keys always have to be the same? Currently one way to enforce that is to set the extra_check parameter in their comment parent argument.

@wanghan-iapcm wanghan-iapcm merged commit cb926e1 into deepmodeling:devel Aug 17, 2022
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.

5 participants