Skip to content

Zarr New #25

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Zarr New #25

wants to merge 1 commit into from

Conversation

Thechopsee
Copy link

No description provided.

} catch (IOException | ModuleException e) {
myLogger.error("Some error accessing the reference service and dataset: "+e.getMessage());
} catch (ExecutionException e) {
e.printStackTrace();
Copy link
Member

Choose a reason for hiding this comment

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

use logger

@@ -181,6 +181,7 @@ public static void writeN5File(final AbstractSequenceDescription<?, ?, ?> seq,
int numCompletedTasks = 0;

final ExecutorService executorService = Executors.newFixedThreadPool( numCellCreatorThreads );
//TODO FIND N5 WRITER AND MAKE HIM CHANGABLE
Copy link
Member

Choose a reason for hiding this comment

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

It is possible to make TODO before pull request.


di.compression = this.compression.equals("none") ? "raw" : this.compression;

//TODO totally random solution
Copy link
Member

Choose a reason for hiding this comment

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

Is it still true - it should not be in a master branch this kind of solution.

@@ -134,7 +137,14 @@ public void run() {
di.channelResolution = new DatasetInfo.ResolutionWithOwnUnit(channel_res, channel_unit);
di.angleResolution = new DatasetInfo.ResolutionWithOwnUnit(angle_res, angle_unit);

di.compression = this.compression.equals("none") ? "raw" : this.compression;
//di.compression = this.compression.equals("none") ? "raw" : this.compression;
Copy link
Member

Choose a reason for hiding this comment

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

Remove commented part of code before integration.

@Override
public void run() {
//logging facility
myLogger = mainLogger.subLogger("HPC CreateDataset", LogLevel.INFO);

try {
final HttpURLConnection connection = (HttpURLConnection)new URL("http://"+this.url+"/datasets").openConnection();
String add="/datasets";
Copy link
Member

Choose a reason for hiding this comment

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

why the local variable is introduced?

@@ -105,7 +105,9 @@ protected void updateSpatialRanges() {
/** updates currentResLevel given the current choice in resolutionLevelsAsStr,
sets currentResLevel to null when resolutionLevelsAsStr is not valid */
protected void matchResLevel() {
//TODO CLEAR
Copy link
Member

Choose a reason for hiding this comment

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

make todo

myLogger.info("going to match against: "+resolutionLevelsAsStr);
System.out.println(resolutionLevelsAsStr);
Copy link
Member

Choose a reason for hiding this comment

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

do not use println for logging.

@@ -32,6 +32,7 @@ public class DatasetInfo {
public List<Integer> versions;
public String label;


Copy link
Member

Choose a reason for hiding this comment

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

white space may be removed.

@Thechopsee
Copy link
Author

Cleaned up from old TODOS etc.
+added explanation to solution

@Thechopsee Thechopsee requested a review from kozusznik April 21, 2023 15:45
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.

None yet

2 participants