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

[WIP] Add time histories #104

Merged
merged 25 commits into from
Dec 13, 2017
Merged

[WIP] Add time histories #104

merged 25 commits into from
Dec 13, 2017

Conversation

bryanwweber
Copy link
Member

Changes proposed in this pull request:

  • This PR adds a time-histories field to encapsulate all of the time-varying properties of an experiment, including pressure, temperature, volume, absorption, emission, and piston position

@pr-omethe-us/chemked

@kyleniemeyer
Copy link
Member

Was this expected to fail (if still in progress), or no?

@bryanwweber
Copy link
Member Author

It's a flake8 failure, so I'd say, yes because WIP, but not expected 😄

clearance:
- 2.5 cm
compression-ratio:
- '12.0'
Copy link
Member

Choose a reason for hiding this comment

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

are the quote marks needed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, no, shouldn't be, I was testing a weird failure mode. Thanks for the catch

Copy link
Member

@kyleniemeyer kyleniemeyer left a comment

Choose a reason for hiding this comment

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

Looks good, other than my few comments

def _validate_isvalid_quantity(self, isvalid_quantity, field, value):
"""Checks for valid given value and appropriate units.

Args:
isvalid_quantity (`bool`): flag from schema indicating quantity to be checked.
field (`str`): property associated with quantity in question.
value (`str`): string of the value of the quantity
value (`list`): list with the first element a string of value with units
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't read correctly to me: list with the first element a string of value with units

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh yeah, that's really bad grammar hah

@codecov
Copy link

codecov bot commented Dec 12, 2017

Codecov Report

Merging #104 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #104   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines         878    951   +73     
  Branches      212    228   +16     
=====================================
+ Hits          878    951   +73
Impacted Files Coverage Δ
pyked/converters.py 100% <100%> (ø) ⬆️
pyked/validation.py 100% <100%> (ø) ⬆️
pyked/chemked.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 810da1c...f047fc7. Read the comment docs.

@bryanwweber
Copy link
Member Author

Once the tests pass, this should be good to merge 👍

@kyleniemeyer kyleniemeyer merged commit d3053cf into pr-omethe-us:master Dec 13, 2017
@bryanwweber bryanwweber deleted the add_time_histories branch December 14, 2017 23:57
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.

2 participants