Skip to content

Small changes for bookkeeping #618

Merged
martinkilbinger merged 18 commits intoCosmoStat:developfrom
fabianhervaspeters:fabian_simu
Jul 18, 2023
Merged

Small changes for bookkeeping #618
martinkilbinger merged 18 commits intoCosmoStat:developfrom
fabianhervaspeters:fabian_simu

Conversation

@fabianhervaspeters
Copy link
Copy Markdown
Contributor

@fabianhervaspeters fabianhervaspeters commented Feb 23, 2023

Summary

I wanted to do this in two different pull requests but did not manage. This PR makes a few small changes in the modules for bookkeeping and adds config files to the example folder in cfis_simu which allowed me to run the simulated images through shapepipe.

Reviewer Checklist

Reviewers should tick the following boxes before approving and merging the PR.

  • The PR targets the develop branch
  • The PR is assigned to the developer
  • The PR has appropriate labels
  • The PR is included in appropriate projects and/or milestones
  • The PR includes a clear description of the proposed changes
  • If the PR addresses an open issue the description includes "closes #"
  • The code and documentation style match the current standards
  • Documentation has been added/updated consistently with the code
  • All CI tests are passing
  • API docs have been built and checked at least once (if relevant)
  • All changed files have been checked and comments provided to the developer
  • All of the reviewer's comments have been satisfactorily addressed by the developer

Comment thread example/cfis_simu/config_tile.mask Outdated
@@ -0,0 +1,90 @@
# Mask module config file for tiles
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this config file being used?

@@ -0,0 +1,462 @@
#!/usr/bin/env bash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should be in the scripts/sh directory.

Can this be merged with job_sp.bash?

@@ -0,0 +1,24 @@
-11.5 68
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think some of those files used for masking (e.g. Messier & NGC objects) are not used.

"""

def __init__(self, img_tile_path, output_path, w_log, colnum):
def __init__(self, img_tile_path, output_path, w_log, colnum, prefix):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Update class doc string

colnum = config.getint(module_config_sec, 'COLNUM')

# Give the prefix of exposures
exp_prefix = config.get(module_config_sec, 'EXP_PREFIX')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Update doc string in init.py

Comment thread shapepipe/modules/mask_package/mask.py Outdated
)
external_flag.open()
if final_mask is not None:
final_mask=final_mask.astype(np.int16, copy=False)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

spaces around '='.

@martinkilbinger
Copy link
Copy Markdown
Contributor

Write a brief summary of the PR, and set the assignment and label.

@fabianhervaspeters fabianhervaspeters self-assigned this Feb 23, 2023
@fabianhervaspeters fabianhervaspeters added the enhancement New feature or request label Feb 23, 2023
@martinkilbinger martinkilbinger added this to the Re-run 2023 milestone Jul 3, 2023
Copy link
Copy Markdown
Contributor

@martinkilbinger martinkilbinger left a comment

Choose a reason for hiding this comment

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

OK

@martinkilbinger
Copy link
Copy Markdown
Contributor

image

@martinkilbinger martinkilbinger merged commit 3c76fa4 into CosmoStat:develop Jul 18, 2023
@fabianhervaspeters fabianhervaspeters deleted the fabian_simu branch July 18, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants