You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small thing: maybe also a chance to rename the module to something like jigsaw_to_mpas. Python convention is no capital letters in modules. Underscores are frowned upon but seem hard to avoid here.
@xylar I think we could call this, say, mesh_creation_tools, for consistency with mesh_conversion_tools, etc. There's also support for non-JIGSAW workflows here (i.e. Triangle) that should be kept I think.
Let me make an initial PR to MPAS-Tools that combines this move with some related changes needed for ICoM meshing.
@dengwirda, go ahead, but please put it as a module of conda_package/mpas_tools, not at the same level as mesh_conversion_tools. While I can't help the legacy of how the repo is laid out, I would like all new python tools to be part of the conda package.
@dengwirda, I would also be careful about putting in a ton of work before having a discussion with the folks (e.g. @pwolfram and @sbrus89) that would also be affected by us making this move. Maybe they already know.
@dengwirda and I previously discussed this issue, which is related to moving some key grid generation features out of the model into tools. @sbrus89, please let us know your thoughts. If we can tag a version of the conda environment to each COMPASS case, ensure this with an assert, then we should be able to work around issues related to previously having all code contained inside a single repo.
To me, it feels like jigsaw_to_MPAS belongs in MPAS_Tools. So, I'm in favor of this as long as @xylar thinks the additional overhead for maintaining it inside MPAS_Tools isn't prohibitive. I also like the change to mesh_creation_tools.
As @pwolfram mentioned, we'll have to come up with a strategy for how to make sure existing COMPASS cases use the correct version of the conda environment. I believe this is the reason we haven't made this shift already. Perhaps, this can be done by extending #482. We could have COMPASS generate this script separately for each case, based on a version tag in the case xml files.
@sbrus89, if you're good with this change, I'm good with it for sure! It's a bit more work for me but I'm more worried about others. I'm used to the 4-step workflow I outlined above but I figured others would be intimidated.
Regarding keeping things synced, yes, as long as you have the right compass environment, it will have one and only one version of mpas_tools. So there is essentially no difference. The whole point of having compass as a metapackage was to make sure that the tools (which could include mesh_creation_tools now) stay in sync with MPAS-Model.
@dengwirda, I've given it some thought and I'm not sure I like the idea of moving jigsaw_to_MPAS into MPAS-Tools in conjunction with other changes. I think that sounds dangerous, time consuming and difficult to debug. My preference would be to move exactly what we have over, likely with a rename, and to then make changes within MPAS-Tools as part of follow-on work. I think that would be the least disruptive approach.
Would that be an approach you could get behind? I would, of course, include you as a reviewer on the pull request to make that initial move so that you could make sure none of that work was incompatible with the changes you envision making after that.
@dengwirda, great! I started work on this yesterday in the hopes you'd be okay with it. I'll make a couple of pull requests later today or tomorrow. The one to MPAS-Tools will include a stub developer's guide (not yet written) with some instructions on how to update, build and test the conda package.
Activity
xylar commentedon May 7, 2020
cc @dengwirda, @proteanplanet, @sbrus89, @pwolfram, @mark-petersen, @jonbob
xylar commentedon May 7, 2020
Small thing: maybe also a chance to rename the module to something like
jigsaw_to_mpas. Python convention is no capital letters in modules. Underscores are frowned upon but seem hard to avoid here.dengwirda commentedon May 7, 2020
@xylar I think we could call this, say,
mesh_creation_tools, for consistency withmesh_conversion_tools, etc. There's also support for non-JIGSAWworkflows here (i.e.Triangle) that should be kept I think.Let me make an initial PR to MPAS-Tools that combines this move with some related changes needed for ICoM meshing.
xylar commentedon May 7, 2020
@dengwirda, go ahead, but please put it as a module of
conda_package/mpas_tools, not at the same level asmesh_conversion_tools. While I can't help the legacy of how the repo is laid out, I would like all new python tools to be part of the conda package.xylar commentedon May 7, 2020
And
mesh_creation_toolsworks for me, but I called the wrappers for themesh_conversion_toolsjustconversionunder the conda package.xylar commentedon May 7, 2020
@dengwirda, I would also be careful about putting in a ton of work before having a discussion with the folks (e.g. @pwolfram and @sbrus89) that would also be affected by us making this move. Maybe they already know.
pwolfram commentedon May 7, 2020
@dengwirda and I previously discussed this issue, which is related to moving some key grid generation features out of the model into tools. @sbrus89, please let us know your thoughts. If we can tag a version of the conda environment to each COMPASS case, ensure this with an
assert, then we should be able to work around issues related to previously having all code contained inside a single repo.sbrus89 commentedon May 7, 2020
To me, it feels like
jigsaw_to_MPASbelongs inMPAS_Tools. So, I'm in favor of this as long as @xylar thinks the additional overhead for maintaining it insideMPAS_Toolsisn't prohibitive. I also like the change tomesh_creation_tools.As @pwolfram mentioned, we'll have to come up with a strategy for how to make sure existing COMPASS cases use the correct version of the conda environment. I believe this is the reason we haven't made this shift already. Perhaps, this can be done by extending #482. We could have COMPASS generate this script separately for each case, based on a version tag in the case xml files.
xylar commentedon May 7, 2020
@sbrus89, if you're good with this change, I'm good with it for sure! It's a bit more work for me but I'm more worried about others. I'm used to the 4-step workflow I outlined above but I figured others would be intimidated.
Regarding keeping things synced, yes, as long as you have the right
compassenvironment, it will have one and only one version ofmpas_tools. So there is essentially no difference. The whole point of havingcompassas a metapackage was to make sure that the tools (which could includemesh_creation_toolsnow) stay in sync with MPAS-Model.xylar commentedon May 16, 2020
@dengwirda, I've given it some thought and I'm not sure I like the idea of moving
jigsaw_to_MPASinto MPAS-Tools in conjunction with other changes. I think that sounds dangerous, time consuming and difficult to debug. My preference would be to move exactly what we have over, likely with a rename, and to then make changes within MPAS-Tools as part of follow-on work. I think that would be the least disruptive approach.Would that be an approach you could get behind? I would, of course, include you as a reviewer on the pull request to make that initial move so that you could make sure none of that work was incompatible with the changes you envision making after that.
dengwirda commentedon May 18, 2020
@xylar Yes, happy to do this in two stages as you suggest.
Also want to check whether there's any specific build / make instructions on hand for MPAS-Tools?
xylar commentedon May 18, 2020
@dengwirda, great! I started work on this yesterday in the hopes you'd be okay with it. I'll make a couple of pull requests later today or tomorrow. The one to MPAS-Tools will include a stub developer's guide (not yet written) with some instructions on how to update, build and test the conda package.
Merge PR MPAS-Dev#563 'xylar/ocean/remove_jigsaw_to_mpas' into ocean/…
xylar commentedon Nov 6, 2020
This happened in #563
Merge PR MPAS-Dev#563 'xylar/ocean/remove_jigsaw_to_mpas' into ocean/…