PSC-PublicHealth / pyrhea

1 stars 0 forks source link

generic_diagnosis_constants violates schema #2

Closed jvd10 closed 7 years ago

jvd10 commented 7 years ago

After applying cbe9b9d851fe0f815ccae421ae304de1ba4dcf04 (from the master branch) to the distributed_disease_registry branch the error below results:

(pyrhea) jmac:sim depasse$ PYTHONPATH=~/prj/psc/quilt/src:~/prj/psc/phacsl/phacsl-utils/src:~/prj/psc/pyRHEA/src ./pyrhea.py week_run_ChicagoLand.yaml
[0] ERROR - <no patchGroup yet> exception during initialization: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml; traceback follows
Traceback (most recent call last):
  File "./pyrhea.py", line 728, in main
    policyClassList = loadPolicyImplementations(inputDict['policyImplementationDir'])
  File "./pyrhea.py", line 216, in loadPolicyImplementations
    requiredAttrList=['getPolicyClasses']):
  File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 76, in loadModulesFromDir
    newMod = load_source(name, os.path.join(implementationDir, fname))
  File "../sim/policyImplementations/cre_bundle_diagnostic.py", line 23, in <module>
    from generic_diagnostic import GenericDiagnosticPolicy
  File "../sim/policyImplementations/generic_diagnostic.py", line 182, in <module>
    _constants_schema)
  File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 56, in importConstants
    (valuePath, schemaPath))
RuntimeError: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml
Exception during initialization
jswelling commented 7 years ago

Fixed. The code and schema change have been pushed, but a needed change to the constants file has not yet been pushed.

jswelling commented 7 years ago

Jay, see the slack:general conversation. Maybe I don't have privs to push to the submodule?

On Tue, Aug 1, 2017 at 5:48 PM, jvd10 notifications@github.com wrote:

After applying cbe9b9d851fe0f815ccae421ae304de1ba4dcf04 (from the master branch) to the distributed_disease_registry branch the error below results:

(pyrhea) jmac:sim depasse$ PYTHONPATH=~/prj/psc/quilt/src:~/prj/psc/phacsl/phacsl-utils/src:~/prj/psc/pyRHEA/src ./pyrhea.py week_run_ChicagoLand.yaml [0] ERROR - exception during initialization: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml; traceback follows Traceback (most recent call last): File "./pyrhea.py", line 728, in main policyClassList = loadPolicyImplementations(inputDict['policyImplementationDir']) File "./pyrhea.py", line 216, in loadPolicyImplementations requiredAttrList=['getPolicyClasses']): File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 76, in loadModulesFromDir newMod = load_source(name, os.path.join(implementationDir, fname)) File "../sim/policyImplementations/cre_bundle_diagnostic.py", line 23, in from generic_diagnostic import GenericDiagnosticPolicy File "../sim/policyImplementations/generic_diagnostic.py", line 182, in _constants_schema) File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 56, in importConstants (valuePath, schemaPath)) RuntimeError: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml Exception during initialization

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PSC-PublicHealth/pyRHEA/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ANjAOZNmnHQIcohYwD1KYPLGQp8eiqeRks5sT50ygaJpZM4OqVrN .

shots47s commented 7 years ago

Jenn has responded and is taking care of it

On Aug 1, 2017 7:05 PM, "Joel Welling" notifications@github.com wrote:

Jay, see the slack:general conversation. Maybe I don't have privs to push to the submodule?

On Tue, Aug 1, 2017 at 5:48 PM, jvd10 notifications@github.com wrote:

After applying cbe9b9d851fe0f815ccae421ae304de1ba4dcf04 (from the master branch) to the distributed_disease_registry branch the error below results:

(pyrhea) jmac:sim depasse$ PYTHONPATH=~/prj/psc/quilt/ src:~/prj/psc/phacsl/phacsl-utils/src:~/prj/psc/pyRHEA/src ./pyrhea.py week_run_ChicagoLand.yaml [0] ERROR - exception during initialization: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/ generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml; traceback follows Traceback (most recent call last): File "./pyrhea.py", line 728, in main policyClassList = loadPolicyImplementations(inputDict[' policyImplementationDir']) File "./pyrhea.py", line 216, in loadPolicyImplementations requiredAttrList=['getPolicyClasses']): File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 76, in loadModulesFromDir newMod = load_source(name, os.path.join(implementationDir, fname)) File "../sim/policyImplementations/cre_bundle_diagnostic.py", line 23, in from generic_diagnostic import GenericDiagnosticPolicy File "../sim/policyImplementations/generic_diagnostic.py", line 182, in

_constants_schema) File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 56, in importConstants (valuePath, schemaPath)) RuntimeError: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/ generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml Exception during initialization — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/PSC-PublicHealth/pyRHEA/issues/2#issuecomment-319521595, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAl9_FdPjXssR3CDLIM8tYDCk_xNGosks5sT69UgaJpZM4OqVrN .

jswelling commented 7 years ago

OK, change was merged! Thanks Jenn!

On Tue, Aug 1, 2017 at 7:05 PM, Joel Welling welling@psc.edu wrote:

Jay, see the slack:general conversation. Maybe I don't have privs to push to the submodule?

On Tue, Aug 1, 2017 at 5:48 PM, jvd10 notifications@github.com wrote:

After applying cbe9b9d851fe0f815ccae421ae304de1ba4dcf04 (from the master branch) to the distributed_disease_registry branch the error below results:

(pyrhea) jmac:sim depasse$ PYTHONPATH=~/prj/psc/quilt/src:~/prj/psc/phacsl/phacsl-utils/src:~/prj/psc/pyRHEA/src ./pyrhea.py week_run_ChicagoLand.yaml [0] ERROR - exception during initialization: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml; traceback follows Traceback (most recent call last): File "./pyrhea.py", line 728, in main policyClassList = loadPolicyImplementations(inputDict['policyImplementationDir']) File "./pyrhea.py", line 216, in loadPolicyImplementations requiredAttrList=['getPolicyClasses']): File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 76, in loadModulesFromDir newMod = load_source(name, os.path.join(implementationDir, fname)) File "../sim/policyImplementations/cre_bundle_diagnostic.py", line 23, in from generic_diagnostic import GenericDiagnosticPolicy File "../sim/policyImplementations/generic_diagnostic.py", line 182, in _constants_schema) File "/Users/depasse/prj/pyRHEA/src/sim/pyrheautils.py", line 56, in importConstants (valuePath, schemaPath)) RuntimeError: /Users/depasse/prj/pyRHEA/models/ChicagoLand/constants/generic_diagnosis_constants.yaml does not satisfy the schema generic_diagnosis_constants_schema.yaml Exception during initialization

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PSC-PublicHealth/pyRHEA/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ANjAOZNmnHQIcohYwD1KYPLGQp8eiqeRks5sT50ygaJpZM4OqVrN .

jvd10 commented 7 years ago

Linking the slack conversation in case it's useful for future reference...

https://pscpha.slack.com/archives/C480XUD9S/p1501612717878297