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

Quickfix #77

Closed
wants to merge 12 commits into from
Closed

Quickfix #77

wants to merge 12 commits into from

Conversation

opotowsky
Copy link
Member

No description provided.

@opotowsky
Copy link
Member Author

Pinging @gidden @rwcarlsen @mbmcgarry @scopatz for review; not sure if this is an appropriate solution for 1.3.newer!

@@ -908,12 +908,13 @@ def parse_args(argv):
def setup(ns):
"""Ensure that we are ready to perform code generation. Returns typesystem."""
# load raw table
dbtypes_json = os.path.join(ns.build_dir, 'dbtypes.json')
dbtypes_json = os.path.join(ns.src_dir, 'dbtypes.json')
Copy link
Member

Choose a reason for hiding this comment

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

is there a reason this has to be in the src_dir? why not hold the .js file and write the json file to the build dir? that would keep things "mostly" the same.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess I assumed that the .js and .json files should be together, but that was probably silly to assume! I'll update it to be created in the build directory.

Copy link
Member

Choose a reason for hiding this comment

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

The .js file is input and the json file is the result of some processing
(and can be easily regenerated).

On Fri, Jun 5, 2015 at 1:03 PM, opotowsky notifications@github.com wrote:

In genapi.py
#77 (comment):

@@ -908,12 +908,13 @@ def parse_args(argv):
def setup(ns):
"""Ensure that we are ready to perform code generation. Returns typesystem."""
# load raw table

  • dbtypes_json = os.path.join(ns.build_dir, 'dbtypes.json')
  • dbtypes_json = os.path.join(ns.src_dir, 'dbtypes.json')

I guess I assumed that the .js and .json files should be together, but
that was probably silly to assume! I'll update it to be created in the
build directory.


Reply to this email directly or view it on GitHub
https://github.com/cyclus/cymetric/pull/77/files#r31836270.

Matthew Gidden, Ph.D.
Postdoctoral Associate, Nuclear Engineering
The University of Wisconsin -- Madison
Ph. 225.892.3192

@scopatz
Copy link
Member

scopatz commented Jun 8, 2015

This is not a good fix because it duplicated information across different sources in the ecosystem. Preferably they should be only one canonical location (aside from the source code itself) where this information is garnered from. The correct fix is in cyclus/cyclus.github.com#157

@opotowsky
Copy link
Member Author

Closing since #79, #80, and #81 fix this issue in a better way

@opotowsky opotowsky closed this Jul 6, 2015
@opotowsky opotowsky deleted the quickfix branch August 11, 2015 17:16
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.

3 participants